rpms/totem/devel totem.spec,1.136,1.137

Bastien Nocera (hadess) fedora-extras-commits at redhat.com
Mon Dec 10 11:03:24 UTC 2007


Author: hadess

Update of /cvs/pkgs/rpms/totem/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21505

Modified Files:
	totem.spec 
Log Message:
* Mon Dec 10 2007 - Bastien Nocera <bnocera at redhat.com> - 2.21.5-3
- Add the mythtv schemas to the mythtv subpackage (#410451)



Index: totem.spec
===================================================================
RCS file: /cvs/pkgs/rpms/totem/devel/totem.spec,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -r1.136 -r1.137
--- totem.spec	10 Dec 2007 02:07:12 -0000	1.136
+++ totem.spec	10 Dec 2007 11:02:33 -0000	1.137
@@ -7,7 +7,7 @@
 Summary: Movie player for GNOME
 Name: totem
 Version: 2.21.5
-Release: 2%{?dist} 
+Release: 3%{?dist} 
 License: GPLv2 with exception
 Group: Applications/Multimedia
 URL: http://www.gnome.org/projects/totem/
@@ -149,7 +149,6 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
 scrollkeeper-update -q
 update-desktop-database -q
 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
@@ -171,6 +170,11 @@
         %{_sysconfdir}/gconf/schemas/totem-handlers.schemas 		\
         %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas 	\
 	>& /dev/null || :
+    if [ -f %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas ] ; then
+        gconftool-2 --makefile-uninstall-rule				\
+            %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas		\
+            >& /dev/null || :
+    fi
 fi
  
 %preun
@@ -181,8 +185,13 @@
         %{_sysconfdir}/gconf/schemas/totem-handlers.schemas 		\
         %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas 	\
 	>& /dev/null || :
+    if [ -f %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas ] ; then
+        gconftool-2 --makefile-uninstall-rule				\
+            %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas		\
+            >& /dev/null || :
+    fi
 fi
- 
+
 %postun
 /sbin/ldconfig
 scrollkeeper-update -q
@@ -192,10 +201,36 @@
   /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
 fi
 
+%post mythtv
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-install-rule \
+        %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas 		\
+	>& /dev/null || :
+
+%pre mythtv
+if [ "$1" -gt 1 ]; then
+    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+    if [ -f %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas ] ; then
+        gconftool-2 --makefile-uninstall-rule				\
+            %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas		\
+            >& /dev/null || :
+    fi
+fi
+
+%preun mythtv
+if [ "$1" -eq 0 ]; then
+    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+    if [ -f %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas ] ; then
+        gconftool-2 --makefile-uninstall-rule				\
+            %{_sysconfdir}/gconf/schemas/totem-mythtv.schemas		\
+            >& /dev/null || :
+    fi
+fi
+
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING NEWS README TODO
-%config %{_sysconfdir}/gconf/schemas/*.schemas
+%config %{_sysconfdir}/gconf/schemas/totem.schemas %{_sysconfdir}/gconf/schemas/totem-handlers.schemas %{_sysconfdir}/gconf/schemas/totem-video-thumbnail.schemas
 %{_bindir}/%{name}
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/%{name}/
@@ -243,6 +278,9 @@
 %{_libexecdir}/totem-plugin-viewer
 
 %changelog
+* Mon Dec 10 2007 - Bastien Nocera <bnocera at redhat.com> - 2.21.5-3
+- Add the mythtv schemas to the mythtv subpackage (#410451)
+
 * Sun Dec  9 2007  Matthias Clasen  <mclasen at redhat.com> - 2.21.5-2
 - Make it build
 




More information about the fedora-extras-commits mailing list