a037122
%define python_py_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")
a037122
%define python_lib_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
a037122
cvsdist b1dccab
Summary: GNOME Structured File library
cvsdist 9e50bcc
Name: libgsf
c03e942
Version: 1.14.8
c03e942
Release: 1%{?dist}
cvsdist b1dccab
Group: System Environment/Libraries
13a0045
License: LGPLv2
56259f3
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.14/%{name}-%{version}.tar.bz2
56259f3
URL: http://www.gnome.org/projects/libgsf/
56259f3
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
56259f3
BuildRequires: glib2-devel, perl-XML-Parser
9c4a434
BuildRequires: libtool, libxml2-devel, gnome-vfs2-devel, bzip2-devel, gettext
89bc915
BuildRequires: libbonobo-devel, pygtk2-devel
332c9dd
Requires(pre): GConf2
332c9dd
Requires(post): GConf2
332c9dd
Requires(preun): GConf2
d1fb8c4
cvsdist b1dccab
%description
cvsdist b1dccab
A library for reading and writing structured files (eg MS OLE and Zip)
cvsdist b1dccab
54820e6
%package gnome
54820e6
Summary: GNOME integration bits for libgsf
54820e6
Group: System Environment/Libraries
54820e6
Requires: libgsf = %{version}-%{release}
54820e6
Requires: gnome-vfs2
54820e6
54820e6
%description gnome
54820e6
Libraries for using libgsf in conjunction with the GNOME applications
54820e6
cvsdist b1dccab
%package devel
56259f3
Summary: Support files necessary to compile applications with libgsf
cvsdist b1dccab
Group: Development/Libraries
56259f3
Requires: libgsf = %{version}-%{release}, glib2-devel, libxml2-devel
56259f3
Requires: pkgconfig
cvsdist b1dccab
cvsdist b1dccab
%description devel
56259f3
Libraries, headers, and support files necessary to compile applications using 
56259f3
libgsf.
cvsdist b1dccab
54820e6
%package gnome-devel
54820e6
Summary: Support files necessary to compile applications with libgsf and GNOME
54820e6
Group: Development/Libraries
56259f3
Requires: libgsf-devel = %{version}-%{release}, gnome-vfs2-devel
54820e6
54820e6
%description gnome-devel
54820e6
Libraries, headers, and support files necessary to compile applications using
54820e6
libgsf and GNOME libraries
54820e6
632e106
%package python
632e106
Summary: Python bindings for libgsf
632e106
Group: Development/Libraries
632e106
632e106
%description python
632e106
Python bindings for libgsf
632e106
cvsdist b1dccab
%prep
cvsdist 9e50bcc
%setup -q
cvsdist b1dccab
cvsdist b1dccab
%build
56259f3
%configure --disable-gtk-doc --disable-static
807f9fd
make %{?_smp_mflags}
cvsdist b1dccab
cvsdist b1dccab
%install
cvsdist 9e50bcc
rm -rf $RPM_BUILD_ROOT
332c9dd
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
56259f3
make DESTDIR=$RPM_BUILD_ROOT install
670c3d8
%find_lang libgsf
cvsdist 9e50bcc
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
a037122
rm -f $RPM_BUILD_ROOT/%{python_lib_sitearch}/gsf/*.la
cvsdist 9e50bcc
b2f7f3b
if [ "%{python_py_sitearch}" != "%{python_lib_sitearch}" ]; then
b2f7f3b
  mv $RPM_BUILD_ROOT/%{python_py_sitearch}/gsf/* $RPM_BUILD_ROOT/%{python_lib_sitearch}/gsf
b2f7f3b
  rm -r $RPM_BUILD_ROOT/%{python_py_sitearch}/gsf
b2f7f3b
fi
332c9dd
332c9dd
%post
332c9dd
/sbin/ldconfig
332c9dd
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
332c9dd
gconftool-2 --makefile-install-rule \
332c9dd
  %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas > /dev/null
332c9dd
332c9dd
%preun
332c9dd
if [ "$1" -eq 0 ]; then
332c9dd
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
332c9dd
    gconftool-2 --makefile-uninstall-rule \
332c9dd
      %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas > /dev/null
332c9dd
fi
cvsdist 9e50bcc
cvsdist 9e50bcc
%postun -p /sbin/ldconfig
cvsdist b1dccab
670c3d8
%files -f libgsf.lang
56259f3
%defattr(-,root,root,-)
cvsdist b1dccab
%doc AUTHORS COPYING README
54820e6
%{_libdir}/libgsf-1.so.*
9180a71
%{_bindir}/gsf-office-thumbnailer
72344a8
%{_mandir}/man1/gsf-office-thumbnailer.1.gz
332c9dd
%{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas
cvsdist b1dccab
54820e6
%files gnome
56259f3
%defattr(-,root,root,-)
54820e6
%{_libdir}/libgsf-gnome-1.so.*
54820e6
56259f3
%post gnome -p /sbin/ldconfig
56259f3
56259f3
%postun gnome -p /sbin/ldconfig
56259f3
cvsdist b1dccab
%files devel
56259f3
%defattr(-,root,root,-)
632e106
%{_bindir}/gsf
632e106
%{_bindir}/gsf-vba-dump
54820e6
%{_libdir}/libgsf-1.so
54820e6
%{_libdir}/pkgconfig/libgsf-1.pc
fa4a8e9
%dir %{_includedir}/libgsf-1
54820e6
%{_includedir}/libgsf-1/gsf
332c9dd
%{_includedir}/libgsf-1/gsf-gvfs
807f9fd
%{_datadir}/gtk-doc/html/gsf
2d38150
%{_mandir}/man1/gsf.1.gz
cvsdist b1dccab
54820e6
%files gnome-devel
56259f3
%defattr(-,root,root,-)
54820e6
%{_libdir}/libgsf-gnome-1.so
54820e6
%{_libdir}/pkgconfig/libgsf-gnome-1.pc
54820e6
%{_includedir}/libgsf-1/gsf-gnome
54820e6
632e106
%files python
56259f3
%defattr(-,root,root,-)
2b2350d
%{python_lib_sitearch}/gsf/
632e106
cvsdist b1dccab
%clean
cvsdist b1dccab
rm -r $RPM_BUILD_ROOT
cvsdist b1dccab
cvsdist b1dccab
%changelog
c03e942
* Thu Mar 06 2008 Caolan McNamara <caolanm@redhat.com> 1.14.8-1
c03e942
- latest version
c03e942
42b5c7c
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.14.7-3
42b5c7c
- Autorebuild for GCC 4.3
42b5c7c
2b2350d
* Fri Dec 21 2007 Caolan McNamara <caolanm@redhat.com> 1.14.7-2
2b2350d
- Resolves: rhbz#426436 fix up python x86_64 import gsf
2b2350d
4fb0972
* Fri Sep 14 2007 Matthias Clasen <mclasen@redhat.com> 1.14.7-1
4fb0972
- Update to 1.14.7
4fb0972
aa50cb0
* Wed Sep 05 2007 Caolan McNamara <caolanm@redhat.com> 1.14.6-1
aa50cb0
- next version
aa50cb0
4b6187e
* Wed Aug 29 2007 Caolan McNamara <caolanm@redhat.com> 1.14.5-3
4b6187e
- rebuild
4b6187e
13a0045
* Thu Aug 02 2007 Caolan McNamara <caolanm@redhat.com> 1.14.5-2
13a0045
- clarify license: LGPL v2.1 in source headers, no "later"
13a0045
506ebd8
* Thu Jul 12 2007 Caolan McNamara <caolanm@redhat.com> 1.14.5-1
506ebd8
- next version
506ebd8
2a033fe
* Mon Jun 18 2007 Caolan McNamara <caolanm@redhat.com> 1.14.4-1
2a033fe
- next version
2a033fe
fa4a8e9
* Sun Mar 25 2007 Caolan McNamara <caolanm@redhat.com> 1.14.3-4
fa4a8e9
- Resolves rhbz#233862 unowned directory fix from Michael Schwendt
fa4a8e9
56259f3
* Fri Feb 09 2007 Caolan McNamara <caolanm@redhat.com> 1.14.3-3
56259f3
- some spec cleanups
56259f3
9d42107
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 1.14.3-2
9d42107
- rebuild for python 2.5
9d42107
54820e6
* Thu Nov 09 2006 Caolan McNamara <caolanm@redhat.com> 1.14.3-1
54820e6
- bump to 1.14.3
54820e6
54820e6
* Wed Nov  1 2006 Dan Williams <dcbw@redhat.com> - 1.14.2-2
54820e6
- Split to remove gnome-vfs2 dependency on core sub-packages
54820e6
632e106
* Mon Oct 09 2006 Caolan McNamara <caolanm@redhat.com> - 1.14.2-1
632e106
- bump to 1.14.2
632e106
d1fb8c4
* Fri Jul 14 2006 Bill Nottingham <notting@redhat.com> - 1.14.1-6
d1fb8c4
- gnome-vfs2-devel no longer requires libbonobo-devel; add it as a buildreq
d1fb8c4
9c4a434
* Wed Jul 13 2006 Jesse Keating <jkeating@redhat.com> - 1.14.1-5
5f8d223
- rebuild
9c4a434
- add missing br gettext
5f8d223
a6948b5
* Mon May 29 2006 Caolan McNamara <caolanm@redhat.com> 1.14.1-4
a6948b5
- rh#193417# Add BuildRequires perl-XML-Parser
a6948b5
546c1d3
* Tue May 23 2006 Caolan McNamara <caolanm@redhat.com> 1.14.1-3
5dcc195
- rh#192707# disable rebuilding of gtk-doc so as to allow multi-arch devel
5dcc195
fb1ed4a
* Wed May 10 2006 Matthias Clasen <mclasen@redhat.com> 1.14.1-2
fb1ed4a
- Update to 1.14.1
fb1ed4a
f20f812
* Mon Mar 20 2006 Caolan McNamara <caolanm@redhat.com> 1.14.0-1
f20f812
- next version
f20f812
11bf1ff
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.13.3-2.2.1
11bf1ff
- bump again for double-long bug on ppc(64)
11bf1ff
95ae930
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.13.3-2.2
95ae930
- rebuilt for new gcc4.1 snapshot and glibc changes
95ae930
966340c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
966340c
- rebuilt
966340c
e96cafa
* Mon Dec  5 2005 Caolan McNamara <caolanm@redhat.com> 1.13.3-2
e96cafa
- rh#172062# Obsolete extras libgsf113
e96cafa
94b43d0
* Fri Dec  2 2005 Matthias Clasen <mclasen@redhat.com> 1.13.3-1
94b43d0
- Update to 1.13.3
94b43d0
6b5ea5c
* Tue Sep 20 2005 Caolan McNamara <caolanm@redhat.com> 1.12.3-1
6b5ea5c
- bump to next version
72344a8
- add manpage for gsf-office-thumbnailer
6b5ea5c
cf1a8a3
* Fri Aug 26 2005 Caolan McNamara <caolanm@redhat.com> 1.12.2-1
cf1a8a3
- bump to latest version
cf1a8a3
5d65896
* Wed Jun 15 2005 Caolan McNamara <caolanm@redhat.com> 1.12.1-1
5d65896
- bump to latest version
5d65896
49230ba
* Wed Mar  2 2005 Caolan McNamara <caolanm@redhat.com> 1.12.0-1
49230ba
- bump to latest version
807f9fd
- clean spec
49230ba
c334f7a
* Wed Mar  2 2005 Caolan McNamara <caolanm@redhat.com> 1.11.1-2
1eab224
- rebuild with gcc4
1eab224
7b6b7d9
* Thu Dec 16 2004 Caolan McNamara <caolanm@redhat.com> 1.11.1-1
7b6b7d9
- upgrade to 1.11.1
7b6b7d9
cvsdist 599b307
* Tue Aug 31 2004 Caolan McNamara <caolanm@redhat.com> 1.10.1-1
cvsdist 599b307
- upgrade to 1.10.1
cvsdist 599b307
cvsdist a45bc79
* Wed Aug 18 2004 Caolan McNamara <caolanm@redhat.com> 1.10.0-1
cvsdist a45bc79
- upgrade to 1.10.0
cvsdist a45bc79
cvsdist e906395
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e906395
- rebuilt
cvsdist e906395
cvsdist 78c6624
* Thu May  6 2004 Dams <anvil[AT]livna.org> 1.9.0-2
cvsdist 78c6624
- -devel now requires libgsf=version-release
cvsdist 78c6624
- Added smp_mflags
cvsdist 78c6624
- Fixed double included .so files
cvsdist 78c6624
cvsdist 78c6624
* Wed May 5 2004 Caolan McNamara <caolanm@redhat.com> 1.9.0-1
cvsdist 78c6624
* upgrade to 1.9.0 to get crash fixes
cvsdist 78c6624
cvsdist 78c6624
* Sun Apr 11 2004 Warren Togami <wtogami@redhat.com> 1.8.2-3
cvsdist 78c6624
- BR libtool libxml2-devel gnome-vfs2-devel bzip2-devel
cvsdist 78c6624
- -devel req glib2-devel libxml2-devel gnome-vfs2-devel
cvsdist 78c6624
cvsdist 06f5e85
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 06f5e85
- rebuilt
cvsdist 06f5e85
cvsdist 06f5e85
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 06f5e85
- rebuilt
cvsdist 06f5e85
cvsdist 06f5e85
* Mon Jan 12 2004 Jonathan Blandford <jrb@redhat.com> 1.8.2-1
cvsdist 06f5e85
- make $includedir/libgsf-1 owned by -devel
cvsdist 06f5e85
cvsdist 9e50bcc
* Fri Sep 19 2003 Havoc Pennington <hp@redhat.com> 1.8.2-1
cvsdist 9e50bcc
- 1.8.2
cvsdist 9e50bcc
cvsdist 9e50bcc
* Wed Aug 13 2003 Jonathan Blandford <jrb@redhat.com>
cvsdist 9e50bcc
- rebuild
cvsdist 9e50bcc
cvsdist 9e50bcc
* Wed Aug  6 2003 Elliot Lee <sopwith@redhat.com> 1.8.1-5
cvsdist 9e50bcc
- Fix libtool
cvsdist 9e50bcc
cvsdist 9e50bcc
* Sat Jul 12 2003 Jeremy Katz <katzj@redhat.com> 1.8.1-4
cvsdist 9e50bcc
- use system libtool so that lib64 library deps are correct
cvsdist 9e50bcc
cvsdist 9e50bcc
* Thu Jul 10 2003 Jeremy Katz <katzj@redhat.com> 1.8.1-3
cvsdist 9e50bcc
- forcibly disable gtk-doc (openjade is broken on s390)
cvsdist 9e50bcc
cvsdist 9e50bcc
* Mon Jul  7 2003 Jeremy Katz <katzj@redhat.com> 1.8.1-2
cvsdist 9e50bcc
- ldconfig in %%post/%%postun
cvsdist c105414
cvsdist 9e50bcc
* Sun Jul  6 2003 Jeremy Katz <katzj@redhat.com> 1.8.1-1
cvsdist 9e50bcc
- use standard macros
cvsdist 9e50bcc
- build for Red Hat Linux
cvsdist b1dccab
cvsdist 9e50bcc
* Tue May 13 2003 Rui M. Seabra <rms@407.org>
cvsdist 9e50bcc
- fix spec to reflect current stat of the build
cvsdist b1dccab
cvsdist b1dccab
* Tue Jun 18 2002 Rui M. Seabra <rms@407.org>
cvsdist b1dccab
- set permission correctly
cvsdist b1dccab
- fix common mistake of Copyright flag into License flag.
cvsdist b1dccab
cvsdist b1dccab
* Thu May 23 2002 Jody Goldberg <jody@gnome.org>
cvsdist b1dccab
- Initial version