From 19c06d443d24c28c3f205dd109c3d2c08984f404 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 10 Dec 2007 11:02:33 +0000 Subject: [PATCH] - Add the mythtv schemas to the mythtv subpackage (#410451) --- totem.spec | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/totem.spec b/totem.spec index 241afac..47f18f7 100644 --- a/totem.spec +++ b/totem.spec @@ -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 -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.{a,la} 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 @@ if [ "$1" -gt 1 ]; then %{_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 @@ if [ "$1" -eq 0 ]; then %{_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 @@ if [ -x /usr/bin/gtk-update-icon-cache ]; then /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 @@ fi %{_libexecdir}/totem-plugin-viewer %changelog +* Mon Dec 10 2007 - Bastien Nocera - 2.21.5-3 +- Add the mythtv schemas to the mythtv subpackage (#410451) + * Sun Dec 9 2007 Matthias Clasen - 2.21.5-2 - Make it build