File libgsf.spec of Package libgsf
#
# spec file for package libgsf (Version 1.14.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libgsf
BuildRequires: gconf2-devel glib2-devel gnome-common gtk-doc intltool
BuildRequires: libgnome-devel libxml2-devel perl-XML-Parser python-devel
BuildRequires: update-desktop-files
License: GPL v2 or later; LGPL v2.1 or later
Group: Development/Libraries/GNOME
# Provide support for old soname
%if %suse_version <= 1000
%ifarch ia64 x86_64 ppc64 s390x
Provides: libgsf-1.so.1()(64bit)
%else
Provides: libgsf-1.so.1
%endif
%endif
%if %suse_version == 1010
%ifarch ia64 x86_64 ppc64 s390x
Provides: libgsf-1.so.113()(64bit)
%else
Provides: libgsf-1.so.113
%endif
%endif
Version: 1.14.9
Release: 1
Summary: GNOME Structured File Library
Url: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}.tar.bz2
AutoReqProv: on
Requires: libgsf-1-114
%gconf_schemas_prereq
%description
A library for reading and writing structured files (MS OLE and Zip, for
example).
Authors:
--------
Jody Goldberg <jody@gnome.org>
%package 1-114
License: GPL v2 or later; LGPL v2.1 or later
Summary: GNOME Structured File Library
Group: Development/Libraries/GNOME
%description 1-114
A library for reading and writing structured files (MS OLE and Zip, for
example).
Authors:
--------
Jody Goldberg <jody@gnome.org>
%package devel
License: GPL v2 or later; LGPL v2.1 or later
Summary: Include Files and Libraries mandatory for Development.
Group: Development/Libraries/GNOME
Requires: %{name} = %{version} %{name}-gnome = %{version} glib2-devel libxml2-devel gnome-vfs2-devel libbonobo-devel bzip2 zlib-devel
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Jody Goldberg <jody@gnome.org>
%package gnome
License: GPL v2 or later; LGPL v2.1 or later
Summary: GNOME Structured File Library
Group: Development/Libraries/GNOME
# Provide support for old soname
%if %suse_version <= 1000
%ifarch ia64 x86_64 ppc64 s390x
Provides: libgsf-gnome-1.so.1()(64bit)
%else
Provides: libgsf-gnome-1.so.1
%endif
%endif
%if %suse_version == 1010
%ifarch ia64 x86_64 ppc64 s390x
Provides: libgsf-gnome-1.so.113()(64bit)
%else
Provides: libgsf-gnome-1.so.113
%endif
%endif
Requires: %{name} = %{version}
%gconf_schemas_prereq
%package doc
License: GPL v2 or later; LGPL v2.1 or later
Summary: Additional Package Documentation.
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%description doc
This package contains optional documentation provided in addition to
this package's base documentation.
Authors:
--------
Jody Goldberg <jody@gnome.org>
%description gnome
A library for reading and writing structured files (MS OLE and Zip, for
example).
Authors:
--------
Jody Goldberg <jody@gnome.org>
%prep
#'
%setup -q
%build
autoreconf -f -i
%configure\
--disable-static
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Provide support for old soname
%if %suse_version <= 1000
mkdir -p $RPM_BUILD_ROOT%{_libdir}
ln -s libgsf-1.so.114 $RPM_BUILD_ROOT%{_libdir}/libgsf-1.so.1
ln -s libgsf-gnome-1.so.114 $RPM_BUILD_ROOT%{_libdir}/libgsf-gnome-1.so.1
%endif
%if %suse_version == 1010
mkdir -p $RPM_BUILD_ROOT%{_libdir}
ln -s libgsf-1.so.114 $RPM_BUILD_ROOT%{_libdir}/libgsf-1.so.113
ln -s libgsf-gnome-1.so.114 $RPM_BUILD_ROOT%{_libdir}/libgsf-gnome-1.so.113
%endif
%find_lang %{name}
# gconf_schemas go to -gnome subpackage:
%find_gconf_schemas
%clean
rm -rf $RPM_BUILD_ROOT
%post 1-114
/sbin/ldconfig
%postun 1-114
/sbin/ldconfig
%pre gnome -f %{name}.schemas_pre
%post gnome
/sbin/ldconfig
%posttrans gnome -f %{name}.schemas_posttrans
%preun gnome -f %{name}.schemas_preun
%postun gnome
/sbin/ldconfig
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/gsf
# NOTE: gsf-office-thumbnailer does not require GNOME, place it here.
# Registration of thumbnailer to GNOME requires it, place it to libgsf-gnome.
%{_bindir}/gsf-office-thumbnailer
%{_bindir}/gsf-vba-dump
%doc %{_mandir}/man1/*.*
%files 1-114
%defattr (-, root, root)
%{_libdir}/libgsf-1.so.*
%files devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libgsf-1
%files gnome -f %{name}.schemas_list
%defattr(-, root, root)
%{_libdir}/libgsf-gnome-1.so.*
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/*
%changelog
* Sun Aug 31 2008 mboman@novell.com
- Update to version 1.14.9:
+ Revitalize gio support.
+ Add MS OOX support to gsf-vba-dump.
+ Extend the utility wrappers for GsfInfile.
+ Be more forgiving of corrupt ole2.
+ Add additional MS OpenPkg support to facilitate pivots.
+ gtk-doc improvements.
+ Make the VBA extractor more accessible.
+ Extensions for the xml parser to allow modularization.
+ Use g_base64_-routines from glib when available.
+ When gio is available, do not link in gnomevfs.
+ Add self-check for the benefit of __arm__.
- Removed libgsf-fate303676.patch. Fixed upstream.
* Mon Jul 28 2008 hfiguiere@suse.de
- add libgsf-fate303676.patch to implement MS Office Open XML
thumbnailing (FATE#303676)
* Sun May 11 2008 coolo@suse.de
- fix rename of xxbit packages
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Wed Apr 02 2008 rodrigo@suse.de
- Update to version 1.14.8:
* Add missing ODF presentation message
* Only install win32 header for win32 (bgo#459771)
* Fix XML enum export utils
* Fix criticals for corrupted file (bgo#485964)
* Improve sanity checks of ole properties (bgo#404934)
* Enhance gsf (the program) to list all document properites
* Fix endless loop with broken ole files (bgo#513831)
* Fix memory allocation problem due to broken ole files
* Mon Feb 18 2008 maw@suse.de
- Update to version 1.14.7:
+ Add some safety checks for out of memory conditions
+ Some extensions to simplifiy OOX export
+ Improved docs.
* Fri Nov 16 2007 dmueller@suse.de
- break dependency loop by removing unneeded requires
* Wed Oct 03 2007 maw@suse.de
- Split out a libgsf-1-114 subpackage.
* Fri Aug 03 2007 jpr@suse.de
- Update to 1.14.5
- Revert jump to dynamic types, they aren't threadsafe. (BGO #450722)
- Compilation glitch on windows. (BGO #449807)
- Avoid problems building without gconf macros installed.
- Configure breakage --without-gnome. (BGO #4488842)
- Make Bonobo support optional. (BGO #442205]
- Limit resource usage in the thumbnailer. (BGO #446087)
- Have gsf-vba-dump handle .doc files too.
- Implement gsf_init_dynamic
- Tidy up docs and #includes in public headers.
- Move the MS/ECMA Open Package code here from gnumeric.
- Provide a libxml2-nanohttp wrapper. (BGO #362373)
- Plug leak.
- Fix potential problem with reading mildly bogus files. (BGO #381588)
- Fix potential oom crash on crazy OLE2 files. (BGO #381600)
- Quote csv fields on initial or terminal white-space. (BGO #359348)
- Fix encoding problem with thumbnailer.
- Fix problem with gsf_output_printf triggering on x64_86.
- Handle nested xml contents.
- Basic life support for python bindings. (BGO #382239] (BGO #382254)
- Fix crash exporting keyword vector from OLE2 -> ODF.
- Improve debug spew for OLE2 propert import.
* Tue Feb 13 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Thu Dec 14 2006 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Thu Dec 14 2006 sbrabec@suse.cz
- Fixed old soname support for released products.
* Sun Oct 15 2006 danw@suse.de
- Remove upstreamed patches
* Tue Oct 03 2006 jhargadon@suse.de
- update to version 1.14.2
- Fix export of msole2 double(r8) properties
- removed upstreamed patches
- Add metadata property dump function to gsf command
- Improve ms-ole property sanity checking
- Initial variant of a gsf based tar like utility
- many bug fixes
* Thu Jun 08 2006 jody@suse.de
- Add more mime types for OOo 1.0 thumbnailing
- enable the vba dump utility to facilitate bug reports
- back port some of the fixes in 1.14.1
* Fri Mar 03 2006 jpr@suse.de
- Ensure no transparent backgrounds
- Tweak OO meta data
* Thu Mar 02 2006 jpr@suse.de
- Enable the thumbnailers
* Thu Mar 02 2006 jpr@suse.de
- Update to 1.13.99
- thumbnailing for OO docs fixes #153130
- other changes:
* Initial Swedish PO translation. [Debian #351382]
* Only export symbols which are in the public headers (Win32).
* Fix parsing xml files with &
* bump to 1.14.0 to indicate a stable release.
* improve header versioning.
* Add ODF thumbnail support to gsf-office-thumbnailer
* Enable ODF meta data import/export.
* Fix GsfOutputIConv. [#323503]
* Plug leak in GsfInfileZip.
* Sat Feb 04 2006 aj@suse.de
- Reduce BuildRequires.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 21 2005 stbinner@suse.de
- add workaround for PLUS so that not all applications break if a
user updates libgsf because an applications built against it
* Wed Nov 16 2005 sbrabec@suse.cz
- Updated to version 1.13.3.
* Thu Nov 03 2005 sbrabec@suse.cz
- Updated to version 1.13.2.
* Mon Oct 31 2005 federico@novell.com
- Added libgsf-thumbnail-support.diff, backported from CVS HEAD. This makes libgsf support
the VT_CF summary property in OLE files, used to store file thumbnails. It also adds
a gsf-office-thumbnailer program that plugs into the GNOME thumbnailing infrastructure.
* Wed Aug 03 2005 gekker@suse.de
- Update to version 1.12.1
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Tue Dec 07 2004 jody@suse.de
- Update to version 1.11.1
- Fix OLE2 import problems
- Enable OLE2 property sets for beagle
* Fri Aug 20 2004 jody@suse.de
- Updated to version 1.10.1
- Fixed major that would cause Ms Excel to corrupt files larger
than 6.8 Meg in transation mode
* Fri May 07 2004 clahey@suse.de
- Updated to version 1.9.0.
* Tue Apr 27 2004 ro@suse.de
- add -fno-strict-aliasing
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr and %%run_ldconfig
* Tue Oct 07 2003 sbrabec@suse.cz
- Updated to version 1.8.2.
* Wed Jul 23 2003 hhetter@suse.de
- fix documentation packaging
- use gnome-filesystem
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Mon Jun 30 2003 ro@suse.de
- move documentation to /usr/share/gtk-doc
* Mon Jun 09 2003 sbrabec@suse.cz
- Updated to version 1.8.1.
* Wed Jun 04 2003 sbrabec@suse.cz
- Updated to version 1.8.0.
- Use gnome2-devel-packages in neededforbuild.
* Sun Jun 01 2003 ro@suse.de
- added doc filelist to specfile
* Sun Apr 27 2003 adrian@suse.de
- put libgsf-gnome into new sub package libgsf-gnome
* Tue Apr 08 2003 adrian@suse.de
- update to version 1.7.2
* Sun Mar 02 2003 meissner@suse.de
- removed cdparanoia neededforbuild requires
- fixed implicit function references (strcmp,strlen,memcmp,time)
* Thu Jan 23 2003 meissner@suse.de
- lib -> %%_lib in filelist.
* Mon Jan 13 2003 hhetter@suse.de
- initial SuSE package