fix scriptlets

This commit is contained in:
Matthias Clasen 2008-01-15 00:31:49 +00:00
parent 6ea4fdc6ba
commit a1e13b5462

View File

@ -26,6 +26,10 @@ BuildRequires: autoconf, automake, libtool
BuildRequires: gettext BuildRequires: gettext
BuildRequires: intltool BuildRequires: intltool
BuildRequires: perl(XML::Parser) BuildRequires: perl(XML::Parser)
Requires(pre): GConf2
Requires(preun): GConf2
Requires(post): GConf2
%description %description
gnome-keyring manages passwords and other types of secrets gnome-keyring manages passwords and other types of secrets
@ -74,7 +78,9 @@ make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make install install-pam DESTDIR=$RPM_BUILD_ROOT make install install-pam DESTDIR=$RPM_BUILD_ROOT
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
rm $RPM_BUILD_ROOT/%{_lib}/security/*.la rm $RPM_BUILD_ROOT/%{_lib}/security/*.la
rm $RPM_BUILD_ROOT%{_libdir}/*.la rm $RPM_BUILD_ROOT%{_libdir}/*.la
@ -85,7 +91,23 @@ rm $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/*.la
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %post
/sbin/ldconfig
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gnome-keyring.schemas > /dev/null || :
%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-keyring.schemas > /dev/null || :
fi
%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gnome-keyring.schemas > /dev/null || :
fi
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files -f gnome-keyring.lang %files -f gnome-keyring.lang
@ -99,6 +121,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/* %{_bindir}/*
%{_libexecdir}/* %{_libexecdir}/*
%{_datadir}/dbus-1/services/org.gnome.keyring.service %{_datadir}/dbus-1/services/org.gnome.keyring.service
%{_sysconfdir}/gconf/schemas/gnome-keyring.schemas
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)