[packages/qiv] update desktop database
glen
glen at pld-linux.org
Mon Aug 10 08:51:01 CEST 2015
commit 36e00061551a81a4c0b8a378738f2ecdea702dfb
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Aug 10 09:48:37 2015 +0300
update desktop database
qiv.spec | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/qiv.spec b/qiv.spec
index 38292f2..04f56db 100644
--- a/qiv.spec
+++ b/qiv.spec
@@ -2,7 +2,7 @@ Summary: Very fast image viewer for X Window
Summary(pl.UTF-8): Bardzo szybka przeglądarka plików graficznych dla X Window
Name: qiv
Version: 2.3.1
-Release: 2
+Release: 3
License: GPL
Group: X11/Applications/Graphics
Source0: http://spiegl.de/qiv/download/%{name}-%{version}.tgz
@@ -17,6 +17,7 @@ BuildRequires: libexif-devel
BuildRequires: libmagic-devel
BuildRequires: pkgconfig
BuildRequires: xorg-lib-libXext-devel
+Requires: desktop-file-utils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -45,15 +46,21 @@ GDK/Imlib.
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_desktopdir},%{_pixmapsdir}}
-install %{name} $RPM_BUILD_ROOT%{_bindir}
-install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install -p %{name} $RPM_BUILD_ROOT%{_bindir}
+cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%update_desktop_database
+
+%postun
+%update_desktop_database
+
%files
%defattr(644,root,root,755)
%doc Changelog README README.TODO
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qiv.git/commitdiff/874ca25ba105d47e2da0b3b85756166e83483a77
More information about the pld-cvs-commit
mailing list