File zathura.spec of Package zathura
#
# spec file for package zathura
#
# Copyright (c) 2018 SUSE LINUX 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.8
Release: 0
Summary: A highly customizable document viewer
License: Zlib
Group: Productivity/Office/Other
Url: http://pwmt.org/projects/zathura/
Source: http://pwmt.org/projects/zathura/download/%{name}-%{version}.tar.gz
BuildRequires: file-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(girara-gtk3) >= 0.2.8
BuildRequires: pkgconfig(sqlite3)
Recommends: %{name}-lang
Recommends: zathura-pdf-poppler-plugin
Suggests: zathura-cb-plugin
Suggests: zathura-djvu-plugin
Suggests: zathura-ps-plugin
%if 0%{?suse_version} >= 1330
BuildRequires: pkgconfig(synctex)
%endif
%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
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%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} APPDATAPREFIX=%{_datadir}/appdata COLOR=0 SFLAGS=""
%find_lang %{name} %{?no_lang_C}
%files
%doc README LICENSE AUTHORS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/dbus-1/interfaces/org.pwmt.%{name}.xml
%{_mandir}/man1/%{name}.1%{ext_man}
%{_mandir}/man5/%{name}rc.5%{ext_man}
%files devel
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}.pc
%files lang -f %{name}.lang
%changelog