rpms/totem/devel totem.spec,1.77,1.78
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Oct 18 21:04:46 UTC 2006
Author: mclasen
Update of /cvs/dist/rpms/totem/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv29466
Modified Files:
totem.spec
Log Message:
fix scripts
Index: totem.spec
===================================================================
RCS file: /cvs/dist/rpms/totem/devel/totem.spec,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- totem.spec 8 Sep 2006 00:46:47 -0000 1.77
+++ totem.spec 18 Oct 2006 21:04:44 -0000 1.78
@@ -5,7 +5,7 @@
Summary: Movie player for GNOME 2
Name: totem
Version: 2.16.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL
Group: Applications/Multimedia
URL: http://www.hadess.net/totem.php3
@@ -13,7 +13,9 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Patch1: totem-0.99.19-feature-help-removal.patch
-Requires(post): GConf2
+Requires(pre): GConf2 >= 2.14
+Requires(post): GConf2 >= 2.14
+Requires(preun): GConf2 >= 2.14
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
@@ -118,19 +120,26 @@
/sbin/ldconfig
update-desktop-database -q
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-
SCHEMAS="totem.schemas totem-handlers.schemas totem-video-thumbnail.schemas"
-
for S in $SCHEMAS; do
gconftool-2 --makefile-install-rule \
- %{_sysconfdir}/gconf/schemas/$S \
- >/dev/null || :
+ %{_sysconfdir}/gconf/schemas/$S >/dev/null || :
done
touch %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
fi
+%pre
+if [ "$1" -gt 1 ]; then
+ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+ SCHEMAS="totem.schemas totem-handlers.schemas totem-video-thumbnail.schemas"
+ for S in $SCHEMAS; do
+ gconftool-2 --makefile-uninstall-rule \
+ %{_sysconfdir}/gconf/schemas/$S > /dev/null || :
+ done
+fi
+
%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
@@ -179,6 +188,9 @@
%{_libdir}/*so
%changelog
+* Wed Oct 18 2006 Matthias Clasen <mclasen at redhat.com> - 2.16.1-2
+- Fix scripts to follow packaging guidelines
+
* Thu Sep 7 2006 Matthias Clasen <mclasen at redhat.com> - 2.16.1-1.fc6
- Update to 2.16.1, including several improvements to
the mozilla plugin
More information about the fedora-cvs-commits
mailing list