File zathura.spec of Package zathura

#
# spec file for package zathura
#
# Copyright (c) 2014 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.3.7
Release:        0
License:        Zlib
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:  file-devel
BuildRequires:  ncurses-utils
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(girara-gtk3) >= 0.2.6
BuildRequires:  pkgconfig(glib-2.0) >= 2.32
BuildRequires:  pkgconfig(gmodule-no-export-2.0)
BuildRequires:  pkgconfig(gthread-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.6
BuildRequires:  pkgconfig(sqlite3)
%if 0%{?suse_version} > 1320
BuildRequires:  pkgconfig(synctex)
%endif
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
Recommends:     %{name}-lang
Recommends:     zathura-pdf-poppler-plugin
Suggests:       zathura-pdf-mupdf-plugin
Suggests:       zathura-cb-plugin
Suggests:       zathura-djvu-plugin
Suggests:       zathura-ps-plugin
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}"
export LIBDIR=%{_libdir}
make WITH_SQLITE=1 %{?_smp_mflags} COLOR=0 VERBOSE=1 SFLAGS=""

%install
%make_install LIBDIR=%{_libdir} COLOR=0 SFLAGS=""
%find_lang %{name} %{?no_lang_C}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc README LICENSE AUTHORS
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/interfaces/org.pwmt.%{name}.xml
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man5/%{name}rc.5.*

%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