- Add the mythtv schemas to the mythtv subpackage (#410451)
This commit is contained in:
parent
f1e784e687
commit
19c06d443d
46
totem.spec
46
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 <bnocera@redhat.com> - 2.21.5-3
|
||||
- Add the mythtv schemas to the mythtv subpackage (#410451)
|
||||
|
||||
* Sun Dec 9 2007 Matthias Clasen <mclasen@redhat.com> - 2.21.5-2
|
||||
- Make it build
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user