rpms/libgsf/devel libgsf.spec,1.48,1.49
Caolan McNamara (caolanm)
fedora-extras-commits at redhat.com
Wed Sep 5 16:59:44 UTC 2007
Author: caolanm
Update of /cvs/pkgs/rpms/libgsf/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19435
Modified Files:
libgsf.spec
Log Message:
new libgsf
Index: libgsf.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libgsf/devel/libgsf.spec,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- libgsf.spec 5 Sep 2007 16:35:52 -0000 1.48
+++ libgsf.spec 5 Sep 2007 16:59:04 -0000 1.49
@@ -13,6 +13,9 @@
BuildRequires: glib2-devel, perl-XML-Parser
BuildRequires: libtool, libxml2-devel, gnome-vfs2-devel, bzip2-devel, gettext
BuildRequires: libbonobo-devel, pygtk2-devel
+Requires(pre): GConf2
+Requires(post): GConf2
+Requires(preun): GConf2
%description
A library for reading and writing structured files (eg MS OLE and Zip)
@@ -61,12 +64,34 @@
%install
rm -rf $RPM_BUILD_ROOT
+export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang libgsf
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{python_lib_sitearch}/gsf/*.la
-%post -p /sbin/ldconfig
+#%pre
+#if [ "$1" -gt 1 ]; then
+# export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+# gconftool-2 --makefile-uninstall-rule \
+# %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas >/dev/null
+# # If the schema file has ever been renamed::
+# #gconftool-2 --makefile-uninstall-rule \
+# # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null
+#fi
+
+%post
+/sbin/ldconfig
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-install-rule \
+ %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas > /dev/null
+
+%preun
+if [ "$1" -eq 0 ]; then
+ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+ gconftool-2 --makefile-uninstall-rule \
+ %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas > /dev/null
+fi
%postun -p /sbin/ldconfig
@@ -76,6 +101,7 @@
%{_libdir}/libgsf-1.so.*
%{_bindir}/gsf-office-thumbnailer
%{_mandir}/man1/gsf-office-thumbnailer.1.gz
+%{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas
%files gnome
%defattr(-,root,root,-)
@@ -94,6 +120,7 @@
%dir %{_includedir}/libgsf-1
%{_includedir}/libgsf-1/gsf
%{_includedir}/libgsf-1/gsf-win32
+%{_includedir}/libgsf-1/gsf-gvfs
%{_datadir}/gtk-doc/html/gsf
%{_mandir}/man1/gsf.1.gz
More information about the fedora-extras-commits
mailing list