fix scripts
This commit is contained in:
parent
35ccd235a8
commit
3b4bf4bdca
@ -7,7 +7,7 @@
|
|||||||
Summary: Metacity window manager
|
Summary: Metacity window manager
|
||||||
Name: metacity
|
Name: metacity
|
||||||
Version: %{metacity_version}
|
Version: %{metacity_version}
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
URL: http://ftp.gnome.org/pub/gnome/sources/metacity/
|
URL: http://ftp.gnome.org/pub/gnome/sources/metacity/
|
||||||
Source0: %{metacity_filename}.tar.bz2
|
Source0: %{metacity_filename}.tar.bz2
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -31,6 +31,7 @@ Requires: redhat-artwork >= 0.62
|
|||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
||||||
Requires(post): GConf2 >= 2.14
|
Requires(post): GConf2 >= 2.14
|
||||||
|
Requires(pre): GConf2 >= 2.14
|
||||||
Requires(preun): GConf2 >= 2.14
|
Requires(preun): GConf2 >= 2.14
|
||||||
|
|
||||||
Patch2: metacity-2.16.0-losing-focus.patch
|
Patch2: metacity-2.16.0-losing-focus.patch
|
||||||
@ -90,18 +91,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
SCHEMAS="metacity.schemas"
|
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/metacity.schemas > /dev/null
|
||||||
for S in $SCHEMAS; do
|
|
||||||
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
|
%pre
|
||||||
done
|
if [ "$1" -gt 1 ]; then
|
||||||
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" -eq 0 ]; then
|
if [ "$1" -eq 0 ]; then
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
SCHEMAS="metacity.schemas"
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
|
||||||
for S in $SCHEMAS; do
|
|
||||||
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
@ -122,6 +123,9 @@ fi
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 18 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.0-7
|
||||||
|
- Fix scripts according to packaging guidelines
|
||||||
|
|
||||||
* Tue Oct 17 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.0-6
|
* Tue Oct 17 2006 Matthias Clasen <mclasen@redhat.com> - 2.16.0-6
|
||||||
- Add missing Requires (#203813)
|
- Add missing Requires (#203813)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user