File zathura.spec of Package zathura

#
# spec file for package zathura
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           zathura
Version:        0.1.2
Release:        0
License:        BSD
Summary:        A highly customizable PDF reader
Url:            http://pwmt.org/projects/zathura/
Group:          Productivity/Office/Other
Source:         http://pwmt.org/projects/zathura/download/%{name}-%{version}.tar.gz
BuildRequires:  girara-devel pkg-config
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
Recommends:       %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
zathura is a highly customizable and functional document viewer. It provides a minimalistic and space saving interface as well as an easy usage that mainly focuses on keyboard interaction.

%package devel
Summary:        Development files for zathura
Requires:       %{name} == %{version}
Group:          Development/Libraries/GNOME

%description devel
Development and Header files for package zathura

%lang_package

%prep
%setup -q

%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}

%install
%make_install LIBDIR=%{_libdir}
%find_lang %{name} %{?no_lang_C}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc README LICENSE AUTHORS
%{_bindir}/zathura
%{_datadir}/applications/zathura.desktop
%{_mandir}/man1/zathura.1.gz
%{_mandir}/man5/zathurarc.5.gz

%files devel
%defattr (-,root,root,-)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}.pc

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by