d26d4b
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
d26d4b
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from
d26d4b
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
d26d4b
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from
d26d4b
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
d26d4b
%endif
a03712
cvsdist b1dcca
Summary: GNOME Structured File library
cvsdist 9e50bc
Name: libgsf
8e28a8
Version: 1.14.19
ff7c4d
Release: 4%{?dist}
cvsdist b1dcca
Group: System Environment/Libraries
13a004
License: LGPLv2
56259f
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.14/%{name}-%{version}.tar.bz2
56259f
URL: http://www.gnome.org/projects/libgsf/
56259f
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e6c1d7
BuildRequires: glib2-devel, perl-XML-Parser
8157c8
BuildRequires: libtool, libxml2-devel, glib2-devel, bzip2-devel, gettext
8cfc06
BuildRequires: libbonobo-devel, pygtk2-devel, intltool, gnome-vfs2-devel
fc966d
Patch0: libgsf.gnome634435.avoidcrash.patch
d1fb8c
cvsdist b1dcca
%description
d26d4b
A library for reading and writing structured files (e.g. MS OLE and Zip)
cvsdist b1dcca
54820e
%package gnome
54820e
Summary: GNOME integration bits for libgsf
54820e
Group: System Environment/Libraries
54820e
Requires: libgsf = %{version}-%{release}
6547ae
Requires: gnome-vfs2
37c02e
Requires(pre): GConf2
37c02e
Requires(post): GConf2
37c02e
Requires(preun): GConf2
54820e
54820e
%description gnome
54820e
Libraries for using libgsf in conjunction with the GNOME applications
54820e
cvsdist b1dcca
%package devel
56259f
Summary: Support files necessary to compile applications with libgsf
cvsdist b1dcca
Group: Development/Libraries
56259f
Requires: libgsf = %{version}-%{release}, glib2-devel, libxml2-devel
56259f
Requires: pkgconfig
cvsdist b1dcca
cvsdist b1dcca
%description devel
56259f
Libraries, headers, and support files necessary to compile applications using 
56259f
libgsf.
cvsdist b1dcca
54820e
%package gnome-devel
54820e
Summary: Support files necessary to compile applications with libgsf and GNOME
54820e
Group: Development/Libraries
4cd784
Requires: libgsf-gnome = %{version}-%{release}
4cd784
Requires: libgsf-devel = %{version}-%{release}
54820e
54820e
%description gnome-devel
54820e
Libraries, headers, and support files necessary to compile applications using
54820e
libgsf and GNOME libraries
54820e
632e10
%package python
632e10
Summary: Python bindings for libgsf
632e10
Group: Development/Libraries
632e10
632e10
%description python
632e10
Python bindings for libgsf
632e10
cvsdist b1dcca
%prep
cvsdist 9e50bc
%setup -q
fc966d
%patch0 -p1 -b .gnome634435
cvsdist b1dcca
cvsdist b1dcca
%build
56259f
%configure --disable-gtk-doc --disable-static
d26d4b
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
d26d4b
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
807f9f
make %{?_smp_mflags}
cvsdist b1dcca
cvsdist b1dcca
%install
cvsdist 9e50bc
rm -rf $RPM_BUILD_ROOT
332c9d
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
56259f
make DESTDIR=$RPM_BUILD_ROOT install
670c3d
%find_lang libgsf
997e2e
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
997e2e
rm -f $RPM_BUILD_ROOT%{python_sitearch}/gsf/*.la
cvsdist 9e50bc
d26d4b
if [ "%{python_sitelib}" != "%{python_sitearch}" ]; then
997e2e
  mv $RPM_BUILD_ROOT%{python_sitelib}/gsf/* $RPM_BUILD_ROOT%{python_sitearch}/gsf
997e2e
  rm -r $RPM_BUILD_ROOT%{python_sitelib}/gsf
b2f7f3
fi
332c9d
7e5f5a
%post -p /sbin/ldconfig
cvsdist 9e50bc
cvsdist 9e50bc
%postun -p /sbin/ldconfig
cvsdist b1dcca
670c3d
%files -f libgsf.lang
56259f
%defattr(-,root,root,-)
d30c1b
%doc AUTHORS COPYING COPYING.LIB README
54820e
%{_libdir}/libgsf-1.so.*
cvsdist b1dcca
54820e
%files gnome
56259f
%defattr(-,root,root,-)
54820e
%{_libdir}/libgsf-gnome-1.so.*
7e5f5a
%{_bindir}/gsf-office-thumbnailer
7e5f5a
%{_mandir}/man1/gsf-office-thumbnailer.1.gz
7e5f5a
%{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas
54820e
7e5f5a
%post gnome
7e5f5a
/sbin/ldconfig
7e5f5a
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7e5f5a
gconftool-2 --makefile-install-rule \
7e5f5a
  %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas > /dev/null
7e5f5a
7e5f5a
%preun gnome
7e5f5a
if [ "$1" -eq 0 ]; then
7e5f5a
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7e5f5a
    gconftool-2 --makefile-uninstall-rule \
7e5f5a
      %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas > /dev/null
7e5f5a
fi
56259f
56259f
%postun gnome -p /sbin/ldconfig
56259f
cvsdist b1dcca
%files devel
56259f
%defattr(-,root,root,-)
632e10
%{_bindir}/gsf
632e10
%{_bindir}/gsf-vba-dump
54820e
%{_libdir}/libgsf-1.so
54820e
%{_libdir}/pkgconfig/libgsf-1.pc
fa4a8e
%dir %{_includedir}/libgsf-1
54820e
%{_includedir}/libgsf-1/gsf
807f9f
%{_datadir}/gtk-doc/html/gsf
2d3815
%{_mandir}/man1/gsf.1.gz
8157c8
%{_mandir}/man1/gsf-vba-dump.1.gz
cvsdist b1dcca
54820e
%files gnome-devel
56259f
%defattr(-,root,root,-)
54820e
%{_libdir}/libgsf-gnome-1.so
54820e
%{_libdir}/pkgconfig/libgsf-gnome-1.pc
54820e
%{_includedir}/libgsf-1/gsf-gnome
54820e
632e10
%files python
56259f
%defattr(-,root,root,-)
d26d4b
%{python_sitearch}/gsf/
632e10
cvsdist b1dcca
%clean
d26d4b
rm -rf $RPM_BUILD_ROOT
cvsdist b1dcca
cvsdist b1dcca
%changelog
ff7c4d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.19-4
ff7c4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ff7c4d
fc966d
* Tue Nov 09 2010 Caolán McNamara <caolanm@redhat.com> 1.14.19-3
fc966d
- Resolves: rhbz#650874 / gnome#634435 crash parsing ancient .ppt
fc966d
Jesse Keating 1b87a7
* Wed Sep 29 2010 jkeating - 1.14.19-2
Jesse Keating 1b87a7
- Rebuilt for gcc bug 634757
Jesse Keating 1b87a7
8e28a8
* Sun Sep 26 2010 Caolán McNamara <caolanm@redhat.com> 1.14.19-1
8e28a8
- latest version
8e28a8
37c02e
* Tue Jul 27 2010 Caolán McNamara <caolanm@redhat.com> 1.14.18-5
37c02e
- Resolves: rhbz#618514 pre/post only needed in gnome subpackage
37c02e
e4418d
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.14.18-4
e4418d
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
e4418d
d26d4b
* Mon Jul 19 2010 Caolán McNamara <caolanm@redhat.com> 1.14.18-3
d26d4b
- Resolves: rhbz#226023 merge review comments
d26d4b
d30c1b
* Sun Jun 13 2010 Caolán McNamara <caolanm@redhat.com> 1.14.18-2
d30c1b
- include COPYING.LIB
d30c1b
7a78ce
* Thu Apr 08 2010 Caolán McNamara <caolanm@redhat.com> 1.14.18-1
7a78ce
- latest version
7a78ce
6ee988
* Sun Feb 14 2010 Caolán McNamara <caolanm@redhat.com> 1.14.17-1
6ee988
- latest version
6ee988
e6c1d7
* Fri Oct 16 2009 Caolán McNamara <caolanm@redhat.com> 1.14.16-1
e6c1d7
- latest version
e6c1d7
- drop integrated libgsf.gnome594359.gdk-pixbuf.patch
e6c1d7
d818e2
* Mon Sep 07 2009 Caolán McNamara <caolanm@redhat.com> 1.14.15-4
d818e2
- Resolves: rhbz#521513 try gdk-pixbuf before ImageMagick convert
d818e2
9e688f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.15-3
9e688f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9e688f
4cd784
* Fri Jul 10 2009 Caolán McNamara <caolanm@redhat.com> 1.14.15-2
4cd784
- clean some rpmlint warnings
4cd784
fb29fb
* Mon Jun 22 2009 Caolán McNamara <caolanm@redhat.com> 1.14.15-1
fb29fb
- latest version
fb29fb
714f33
* Tue May 26 2009 Caolán McNamara <caolanm@redhat.com> 1.14.14-1
714f33
- latest version
714f33
b8f1c6
* Thu May 07 2009 Caolán McNamara <caolanm@redhat.com> 1.14.13-1
b8f1c6
- latest version
b8f1c6
c46e10
* Wed Apr 29 2009 Caolán McNamara <caolanm@redhat.com> 1.14.12-1
c46e10
- latest version, drop integrated libgsf-1.14.11.gcc39015.patch
c46e10
54508d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.11-3
54508d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
54508d
ff4a14
* Fri Jan 30 2009 Caolán McNamara <caolanm@redhat.com> 1.14.11-2
ff4a14
- fix g_enum_register_static use
ff4a14
68b10c
* Wed Jan 07 2009 Caolán McNamara <caolanm@redhat.com> 1.14.11-1
68b10c
- latest version
68b10c
c206fb
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.14.10-2
c206fb
- Rebuild for Python 2.6
c206fb
cbac23
* Mon Oct 20 2008 Caolán McNamara <caolanm@redhat.com> 1.14.10-1
cbac23
- latest version
cbac23
6547ae
* Tue Sep 23 2008 Matthias Clasen  <mclasen@redhat.com> - 1.14.9-2
6547ae
- Drop the ImageMagick dependency again, since it causes size problems on 
6547ae
  the live cd
6547ae
8157c8
* Wed Sep 03 2008 Caolán McNamara <caolanm@redhat.com> 1.14.9-1
8157c8
- latest version with gio support
8157c8
7e5f5a
* Fri Aug 08 2008 Caolán McNamara <caolanm@redhat.com> 1.14.8-2
7e5f5a
- Resolves: rhbz#458353 gsf-office-thumbnailer doesn't work without ImageMagick's convert.
7e5f5a
  Move that into the gnome subpackage
7e5f5a
d26d4b
* Thu Mar 06 2008 Caolán McNamara <caolanm@redhat.com> 1.14.8-1
c03e94
- latest version
c03e94
42b5c7
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.14.7-3
42b5c7
- Autorebuild for GCC 4.3
42b5c7
d26d4b
* Fri Dec 21 2007 Caolán McNamara <caolanm@redhat.com> 1.14.7-2
2b2350
- Resolves: rhbz#426436 fix up python x86_64 import gsf
2b2350
4fb097
* Fri Sep 14 2007 Matthias Clasen <mclasen@redhat.com> 1.14.7-1
4fb097
- Update to 1.14.7
4fb097
d26d4b
* Wed Sep 05 2007 Caolán McNamara <caolanm@redhat.com> 1.14.6-1
aa50cb
- next version
aa50cb
d26d4b
* Wed Aug 29 2007 Caolán McNamara <caolanm@redhat.com> 1.14.5-3
4b6187
- rebuild
4b6187
d26d4b
* Thu Aug 02 2007 Caolán McNamara <caolanm@redhat.com> 1.14.5-2
13a004
- clarify license: LGPL v2.1 in source headers, no "later"
13a004
d26d4b
* Thu Jul 12 2007 Caolán McNamara <caolanm@redhat.com> 1.14.5-1
506ebd
- next version
506ebd
d26d4b
* Mon Jun 18 2007 Caolán McNamara <caolanm@redhat.com> 1.14.4-1
2a033f
- next version
2a033f
d26d4b
* Sun Mar 25 2007 Caolán McNamara <caolanm@redhat.com> 1.14.3-4
fa4a8e
- Resolves rhbz#233862 unowned directory fix from Michael Schwendt
fa4a8e
d26d4b
* Fri Feb 09 2007 Caolán McNamara <caolanm@redhat.com> 1.14.3-3
56259f
- some spec cleanups
56259f
9d4210
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 1.14.3-2
9d4210
- rebuild for python 2.5
9d4210
d26d4b
* Thu Nov 09 2006 Caolán McNamara <caolanm@redhat.com> 1.14.3-1
54820e
- bump to 1.14.3
54820e
54820e
* Wed Nov  1 2006 Dan Williams <dcbw@redhat.com> - 1.14.2-2
54820e
- Split to remove gnome-vfs2 dependency on core sub-packages
54820e
d26d4b
* Mon Oct 09 2006 Caolán McNamara <caolanm@redhat.com> - 1.14.2-1
632e10
- bump to 1.14.2
632e10
d1fb8c
* Fri Jul 14 2006 Bill Nottingham <notting@redhat.com> - 1.14.1-6
d1fb8c
- gnome-vfs2-devel no longer requires libbonobo-devel; add it as a buildreq
d1fb8c
9c4a43
* Wed Jul 13 2006 Jesse Keating <jkeating@redhat.com> - 1.14.1-5
5f8d22
- rebuild
9c4a43
- add missing br gettext
5f8d22
d26d4b
* Mon May 29 2006 Caolán McNamara <caolanm@redhat.com> 1.14.1-4
a6948b
- rh#193417# Add BuildRequires perl-XML-Parser
a6948b
d26d4b
* Tue May 23 2006 Caolán McNamara <caolanm@redhat.com> 1.14.1-3
5dcc19
- rh#192707# disable rebuilding of gtk-doc so as to allow multi-arch devel
5dcc19
fb1ed4
* Wed May 10 2006 Matthias Clasen <mclasen@redhat.com> 1.14.1-2
fb1ed4
- Update to 1.14.1
fb1ed4
d26d4b
* Mon Mar 20 2006 Caolán McNamara <caolanm@redhat.com> 1.14.0-1
f20f81
- next version
f20f81
11bf1f
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.13.3-2.2.1
11bf1f
- bump again for double-long bug on ppc(64)
11bf1f
95ae93
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.13.3-2.2
95ae93
- rebuilt for new gcc4.1 snapshot and glibc changes
95ae93
966340
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
966340
- rebuilt
966340
d26d4b
* Mon Dec  5 2005 Caolán McNamara <caolanm@redhat.com> 1.13.3-2
e96caf
- rh#172062# Obsolete extras libgsf113
e96caf
94b43d
* Fri Dec  2 2005 Matthias Clasen <mclasen@redhat.com> 1.13.3-1
94b43d
- Update to 1.13.3
94b43d
d26d4b
* Tue Sep 20 2005 Caolán McNamara <caolanm@redhat.com> 1.12.3-1
6b5ea5
- bump to next version
72344a
- add manpage for gsf-office-thumbnailer
6b5ea5
d26d4b
* Fri Aug 26 2005 Caolán McNamara <caolanm@redhat.com> 1.12.2-1
cf1a8a
- bump to latest version
cf1a8a
d26d4b
* Wed Jun 15 2005 Caolán McNamara <caolanm@redhat.com> 1.12.1-1
5d6589
- bump to latest version
5d6589
d26d4b
* Wed Mar  2 2005 Caolán McNamara <caolanm@redhat.com> 1.12.0-1
49230b
- bump to latest version
807f9f
- clean spec
49230b
d26d4b
* Wed Mar  2 2005 Caolán McNamara <caolanm@redhat.com> 1.11.1-2
1eab22
- rebuild with gcc4
1eab22
d26d4b
* Thu Dec 16 2004 Caolán McNamara <caolanm@redhat.com> 1.11.1-1
7b6b7d
- upgrade to 1.11.1
7b6b7d
d26d4b
* Tue Aug 31 2004 Caolán McNamara <caolanm@redhat.com> 1.10.1-1
cvsdist 599b30
- upgrade to 1.10.1
cvsdist 599b30
d26d4b
* Wed Aug 18 2004 Caolán McNamara <caolanm@redhat.com> 1.10.0-1
cvsdist a45bc7
- upgrade to 1.10.0
cvsdist a45bc7
cvsdist e90639
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e90639
- rebuilt
cvsdist e90639
cvsdist 78c662
* Thu May  6 2004 Dams <anvil[at]livna.org> 1.9.0-2
cvsdist 78c662
- -devel now requires libgsf=version-release
cvsdist 78c662
- Added smp_mflags
cvsdist 78c662
- Fixed double included .so files
cvsdist 78c662
d26d4b
* Wed May 5 2004 Caolán McNamara <caolanm@redhat.com> 1.9.0-1
cvsdist 78c662
* upgrade to 1.9.0 to get crash fixes
cvsdist 78c662
cvsdist 78c662
* Sun Apr 11 2004 Warren Togami <wtogami@redhat.com> 1.8.2-3
cvsdist 78c662
- BR libtool libxml2-devel gnome-vfs2-devel bzip2-devel
cvsdist 78c662
- -devel req glib2-devel libxml2-devel gnome-vfs2-devel
cvsdist 78c662
cvsdist 06f5e8
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 06f5e8
- rebuilt
cvsdist 06f5e8
cvsdist 06f5e8
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 06f5e8
- rebuilt
cvsdist 06f5e8
cvsdist 06f5e8
* Mon Jan 12 2004 Jonathan Blandford <jrb@redhat.com> 1.8.2-1
cvsdist 06f5e8
- make $includedir/libgsf-1 owned by -devel
cvsdist 06f5e8
cvsdist 9e50bc
* Fri Sep 19 2003 Havoc Pennington <hp@redhat.com> 1.8.2-1
cvsdist 9e50bc
- 1.8.2
cvsdist 9e50bc
cvsdist 9e50bc
* Wed Aug 13 2003 Jonathan Blandford <jrb@redhat.com>
cvsdist 9e50bc
- rebuild
cvsdist 9e50bc
cvsdist 9e50bc
* Wed Aug  6 2003 Elliot Lee <sopwith@redhat.com> 1.8.1-5
cvsdist 9e50bc
- Fix libtool
cvsdist 9e50bc
cvsdist 9e50bc
* Sat Jul 12 2003 Jeremy Katz <katzj@redhat.com> 1.8.1-4
cvsdist 9e50bc
- use system libtool so that lib64 library deps are correct
cvsdist 9e50bc
cvsdist 9e50bc
* Thu Jul 10 2003 Jeremy Katz <katzj@redhat.com> 1.8.1-3
cvsdist 9e50bc
- forcibly disable gtk-doc (openjade is broken on s390)
cvsdist 9e50bc
cvsdist 9e50bc
* Mon Jul  7 2003 Jeremy Katz <katzj@redhat.com> 1.8.1-2
cvsdist 9e50bc
- ldconfig in %%post/%%postun
cvsdist c10541
cvsdist 9e50bc
* Sun Jul  6 2003 Jeremy Katz <katzj@redhat.com> 1.8.1-1
cvsdist 9e50bc
- use standard macros
cvsdist 9e50bc
- build for Red Hat Linux
cvsdist b1dcca
cvsdist 9e50bc
* Tue May 13 2003 Rui M. Seabra <rms@407.org>
cvsdist 9e50bc
- fix spec to reflect current stat of the build
cvsdist b1dcca
cvsdist b1dcca
* Tue Jun 18 2002 Rui M. Seabra <rms@407.org>
cvsdist b1dcca
- set permission correctly
cvsdist b1dcca
- fix common mistake of Copyright flag into License flag.
cvsdist b1dcca
cvsdist b1dcca
* Thu May 23 2002 Jody Goldberg <jody@gnome.org>
cvsdist b1dcca
- Initial version