[mate-notification-daemon] update spec file for scriptlets
Dan Mashal
vicodan at fedoraproject.org
Sun Sep 16 03:28:55 UTC 2012
commit 235a6cc6886363ff7798041ef23a4ce35d7e301f
Author: Dan Mashal <dan.mashal at fedoraproject.org>
Date: Sat Sep 15 20:28:40 2012 -0700
update spec file for scriptlets
mate-notification-daemon.spec | 39 ++++++++++++++++++++-------------------
1 files changed, 20 insertions(+), 19 deletions(-)
---
diff --git a/mate-notification-daemon.spec b/mate-notification-daemon.spec
index d6de9b3..d70bfe1 100644
--- a/mate-notification-daemon.spec
+++ b/mate-notification-daemon.spec
@@ -1,6 +1,6 @@
Name: mate-notification-daemon
Version: 1.4.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Notification daemon for MATE Desktop
License: GPLv2+
URL: http://mate-desktop.org
@@ -22,6 +22,22 @@ NOCONFIGURE=1 ./autogen.sh
%configure --disable-static --disable-schemas-install
make %{?_smp_mflags} V=1
+%post
+/bin/touch --no-create %{_datadir}/icons/mate &>/dev/null || :
+%mateconf_schema_prepare mate-notification-daemon
+%mateconf_schema_upgrade mate-notification-daemon
+
+%postun
+%mateconf_schema_remove mate-notification-daemon
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+
+
%install
make install DESTDIR=%{buildroot}
@@ -42,24 +58,6 @@ desktop-file-install \
%{buildroot}/%{_datadir}/applications/mate-notification-properties.desktop
-%pre
-%mateconf_schema_prepare mate-notification-daemon
-
-%post
-/bin/touch --no-create %{_datadir}/icons/mate &>/dev/null || :
-%mateconf_schema_upgrade mate-notification-daemon
-
-%postun
-%mateconf_schema_remove mate-notification-daemon
-if [ $1 -eq 0 ] ; then
- /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
- /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
-fi
-
-%posttrans
-/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
-
-
%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_bindir}/mate-notification-properties
@@ -73,6 +71,9 @@ fi
%changelog
+* Sat Sep 15 2012 Dan Mashal <dan.mashal at fedoraproject.org> 1.4.0-5
+- Remove unneeded pre scriptlet and move post postun scriptlets before install scriptlet
+
* Mon Aug 27 2012 Rex Dieter <rdieter at fedoraproject.org> 1.4.0-4
- fix schema scriptlets
- drop uneeded update-desktop-database scriptlets
More information about the scm-commits
mailing list