new libgsf
This commit is contained in:
parent
aa50cb03d1
commit
332c9ddab1
29
libgsf.spec
29
libgsf.spec
@ -13,6 +13,9 @@ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
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 @@ make %{?_smp_mflags}
|
||||
|
||||
%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 @@ rm -f $RPM_BUILD_ROOT/%{python_lib_sitearch}/gsf/*.la
|
||||
%{_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 @@ rm -f $RPM_BUILD_ROOT/%{python_lib_sitearch}/gsf/*.la
|
||||
%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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user