packages: gnubik/gnubik.spec - Requires(post, postun): gtk-update-icon-cache...

blekot blekot at pld-linux.org
Sun May 13 14:50:05 CEST 2012


Author: blekot                       Date: Sun May 13 12:50:05 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Requires(post,postun): gtk-update-icon-cache
- Requires(post,postun): hicolor-icon-theme
- added in post{,un} %update_icon_cache hicolor
- changed the way of running /usr/sbin/fix-info-dir to add %update_icon_cache macro in post{,un}

---- Files affected:
packages/gnubik:
   gnubik.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: packages/gnubik/gnubik.spec
diff -u packages/gnubik/gnubik.spec:1.16 packages/gnubik/gnubik.spec:1.17
--- packages/gnubik/gnubik.spec:1.16	Sat May 12 14:36:40 2012
+++ packages/gnubik/gnubik.spec	Sun May 13 14:50:00 2012
@@ -9,13 +9,15 @@
 Source0:	http://ftp.gnu.org/gnu/gnubik/%{name}-%{version}.tar.gz
 # Source0-md5:	cbafcd93d9ab31695d18358b68cd72c9
 URL:		http://www.gnu.org/software/gnubik/
-BuildRequires:	OpenGL-devel
 BuildRequires:	OpenGL-GLU-devel
+BuildRequires:	OpenGL-devel
 BuildRequires:	gtk+2-devel >= 2.20
 BuildRequires:	gtkglext-devel
 BuildRequires:	guile-devel >= 5:1.8.0
 BuildRequires:	pkgconfig
-Requires:	hicolor-icon-theme
+Requires(post,postun):	gtk-update-icon-cache
+Requires(post,postun):	hicolor-icon-theme
+
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -48,11 +50,13 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-p	/sbin/postshell
--/usr/sbin/fix-info-dir -c %{_infodir}
-
-%postun	-p	/sbin/postshell
--/usr/sbin/fix-info-dir -c %{_infodir}
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%update_icon_cache hicolor
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%update_icon_cache hicolor
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
@@ -69,6 +73,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2012/05/13 12:50:00  blekot
+- Requires(post,postun): gtk-update-icon-cache
+- Requires(post,postun): hicolor-icon-theme
+- added in post{,un} %update_icon_cache hicolor
+- changed the way of running /usr/sbin/fix-info-dir to add %update_icon_cache macro in post{,un}
+
 Revision 1.16  2012/05/12 12:36:40  blekot
 - removed patch from spec
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/gnubik/gnubik.spec?r1=1.16&r2=1.17



More information about the pld-cvs-commit mailing list