[packages/zathura] up to 0.3.9
atler
atler at pld-linux.org
Sun Mar 18 22:46:18 CET 2018
commit 7f7492d4421960b6550827492383510cd498c06c
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Mar 18 22:45:37 2018 +0100
up to 0.3.9
- switched to meson
- updated BRs
zathura.spec | 50 +++++++++++++++++++++++++++++---------------------
1 file changed, 29 insertions(+), 21 deletions(-)
---
diff --git a/zathura.spec b/zathura.spec
index 2cae4eb..489350f 100644
--- a/zathura.spec
+++ b/zathura.spec
@@ -2,26 +2,31 @@ Summary: A vi-like pdf reader
Summary(hu.UTF-8): Egy vi-szerű pdf olvasó
Summary(pl.UTF-8): Czytnik pdf podobny do vi
Name: zathura
-Version: 0.3.8
+Version: 0.3.9
Release: 1
License: BSD-like
Group: Applications
-Source0: http://pwmt.org/projects/zathura/download/%{name}-%{version}.tar.gz
-# Source0-md5: 2885c198f8497c69ae4158e00a0059e7
+Source0: http://pwmt.org/projects/zathura/download/%{name}-%{version}.tar.xz
+# Source0-md5: 07a88abb12e82e65817bdc92d7af106c
Source1: config.txt
URL: http://pwmt.org/projects/zathura
-BuildRequires: girara-devel >= 0.2.8
+BuildRequires: cairo-devel
+BuildRequires: girara-devel >= 0.2.9
BuildRequires: glib2-devel >= 1:2.50.0
-BuildRequires: gtk+3-devel >= 3.6
+BuildRequires: gtk+3-devel >= 3.22
BuildRequires: intltool
BuildRequires: libmagic-devel
+BuildRequires: meson >= 0.45
+BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python-docutils
+BuildRequires: rpmbuild(macros) >= 1.727
BuildRequires: sqlite3-devel >= 3.5.9
-BuildRequires: zlib-devel
-Requires: girara >= 0.2.8
+Requires(post,postun): gtk-update-icon-cache
+Requires: girara >= 0.2.9
Requires: glib2 >= 1:2.50.0
-Requires: gtk+3 >= 3.6
+Requires: gtk+3 >= 3.22
+Requires: hicolor-icon-theme
Requires: sqlite3 >= 3.5.9
Suggests: zathura-pdf-poppler
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -58,41 +63,44 @@ Header files for zathura.
%prep
%setup -q
cp %{SOURCE1} config.txt
-%{__mv} po/id_ID.po po/id.po
%build
-CFLAGS="%{rpmcflags}" \
-LDFLAGS="%{rpmldflags}" \
-%{__make} \
- COLOR=0 \
- VERBOSE=1 \
- LIBDIR=%{_libdir}
+%meson build
+%meson_build -C build
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/%{name}
+install -d $RPM_BUILD_ROOT{%{_libdir}/%{name},%{_iconsdir}/hicolor/128x128/apps}
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- LIBDIR=%{_libdir}
+%meson_install -C build
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/id_ID $RPM_BUILD_ROOT%{_localedir}/id
%{__mv} $RPM_BUILD_ROOT%{_localedir}/no $RPM_BUILD_ROOT%{_localedir}/nb
%{__mv} $RPM_BUILD_ROOT%{_localedir}/ta_IN $RPM_BUILD_ROOT%{_localedir}/ta
%{__mv} $RPM_BUILD_ROOT%{_localedir}/uk_UA $RPM_BUILD_ROOT%{_localedir}/uk
+%{__mv} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/128x128/{,/apps/}org.pwmt.zathura.png
+
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%update_icon_cache hicolor
+
+%postun
+%update_icon_cache hicolor
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc LICENSE README config.txt
%attr(755,root,root) %{_bindir}/zathura
-%{_desktopdir}/%{name}.desktop
-%{_datadir}/metainfo/zathura.appdata.xml
+%{_desktopdir}/org.pwmt.zathura.desktop
+%{_datadir}/metainfo/org.pwmt.zathura.appdata.xml
%{_datadir}/dbus-1/interfaces/org.pwmt.zathura.xml
+%{_iconsdir}/hicolor/*/apps/org.pwmt.zathura.png
%{_mandir}/man1/zathura.1*
%{_mandir}/man5/zathurarc.5*
%dir %{_libdir}/zathura
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/zathura.git/commitdiff/7f7492d4421960b6550827492383510cd498c06c
More information about the pld-cvs-commit
mailing list