Fix the build and add mime database scriplets

This commit is contained in:
Kalev Lember 2011-08-31 21:10:38 +03:00
parent f79367c83f
commit ff6765b598

View File

@ -69,9 +69,9 @@ automatically unlock the "login" keyring when the user logs in.
%build %build
%configure --disable-gtk-doc \ %configure --disable-gtk-doc \
--disable-update-mime \
--with-pam-dir=/%{_lib}/security \ --with-pam-dir=/%{_lib}/security \
--enable-pam \ --enable-pam
--with-gtk=3.0
# avoid unneeded direct dependencies # avoid unneeded direct dependencies
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
@ -90,10 +90,12 @@ rm $RPM_BUILD_ROOT%{_libdir}/gnome-keyring/devel/*.la
%post %post
/sbin/ldconfig /sbin/ldconfig
update-mime-database %{_datadir}/mime &> /dev/null || :
touch %{_datadir}/icons/hicolor >&/dev/null || : touch %{_datadir}/icons/hicolor >&/dev/null || :
%postun %postun
/sbin/ldconfig /sbin/ldconfig
update-mime-database %{_datadir}/mime &> /dev/null || :
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || : touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
@ -116,6 +118,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas
%{_libdir}/pkcs11/*.so %{_libdir}/pkcs11/*.so
# GPL # GPL
%attr(0755,root,root) %caps(cap_ipc_lock=ep) %{_bindir}/gnome-keyring-daemon %attr(0755,root,root) %caps(cap_ipc_lock=ep) %{_bindir}/gnome-keyring-daemon
%{_bindir}/gcr-viewer
%{_bindir}/gnome-keyring %{_bindir}/gnome-keyring
%{_bindir}/gnome-keyring-3 %{_bindir}/gnome-keyring-3
%{_libexecdir}/* %{_libexecdir}/*
@ -127,6 +130,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas
%{_datadir}/glib-2.0/schemas/*.gschema.xml %{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/mime/packages/gcr-crypto-types.xml
%{_sysconfdir}/pkcs11/modules/gnome-keyring-module %{_sysconfdir}/pkcs11/modules/gnome-keyring-module
%files devel %files devel