|
|
|
@ -1,32 +1,27 @@
|
|
|
|
|
Name: zathura
|
|
|
|
|
Version: 0.3.7
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 0.3.9
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A lightweight document viewer
|
|
|
|
|
Group: Applications/Publishing
|
|
|
|
|
License: zlib
|
|
|
|
|
URL: http://pwmt.org/projects/%{name}/
|
|
|
|
|
Source0: http://pwmt.org/projects/%{name}/download/%{name}-%{version}.tar.gz
|
|
|
|
|
Source0: http://pwmt.org/projects/%{name}/download/%{name}-%{version}.tar.xz
|
|
|
|
|
BuildRequires: binutils
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: check
|
|
|
|
|
BuildRequires: file-devel
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gettext
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
BuildRequires: file-devel
|
|
|
|
|
BuildRequires: pkgconfig(girara-gtk3)
|
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gmodule-no-export-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
|
|
|
BuildRequires: pkgconfig(synctex)
|
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
Requires(post): glibc
|
|
|
|
|
Requires(post): desktop-file-utils
|
|
|
|
|
Requires(postun): glibc
|
|
|
|
|
Requires(postun): desktop-file-utils
|
|
|
|
|
BuildRequires: girara-devel >= 0.2.8
|
|
|
|
|
BuildRequires: glib2-devel >= 2.50
|
|
|
|
|
BuildRequires: gtk3-devel >= 3.22
|
|
|
|
|
BuildRequires: intltool
|
|
|
|
|
# Needed to validate appdata
|
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
BuildRequires: meson >= 0.45
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
BuildRequires: sqlite-devel >= 3.5.9
|
|
|
|
|
BuildRequires: texlive-synctex
|
|
|
|
|
|
|
|
|
|
Suggests: zathura-cb
|
|
|
|
|
Suggests: zathusa-djvu
|
|
|
|
|
# poppler is preferred over mupdf
|
|
|
|
@ -70,42 +65,25 @@ This package installs all available Zathura plugins.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
# don't rebuild at install time
|
|
|
|
|
sed -ie "s/install:\ all/install:\ /g" Makefile
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
export LIBDIR="%{_libdir}"
|
|
|
|
|
# avoid stripping
|
|
|
|
|
export SFLAGS=
|
|
|
|
|
make %{_smp_mflags}
|
|
|
|
|
%meson
|
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export LIBDIR="%{_libdir}"
|
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
|
install -m 644 zathura.desktop %{buildroot}%{_datadir}/applications/
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
|
|
|
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%meson_install
|
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
|
|
|
|
|
%find_lang zathura
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
|
|
%files -f zathura.lang
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
%{_libdir}/%{name}
|
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
|
%{_datadir}/applications/*
|
|
|
|
|
%{_datadir}/dbus-1/interfaces/org.pwmt.zathura.xml
|
|
|
|
|
%{_datadir}/icons/hicolor/128x128/org.pwmt.zathura.png
|
|
|
|
|
%{_datadir}/metainfo/org.pwmt.zathura.appdata.xml
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/zathura
|
|
|
|
@ -114,6 +92,9 @@ update-desktop-database &> /dev/null || :
|
|
|
|
|
%files plugins-all
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Apr 09 2018 Petr Šabata <contyk@redhat.com> - 0.3.9-1
|
|
|
|
|
- 0.3.9 bump
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|