Summary: GNOME Structured File library
Summary(ja): GNOME 構造化ファイルライブラリ

Name: libgsf
Version: 1.14.22
Release: 1%{?_dist_release}
Group: System Environment/Libraries
License: GPL

Source: libgsf-%{version}.tar.xz
URL: http://ftp.gnome.org/pub/gnome/sources/libgsf/

Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: glib2-devel >= 2.26.0
BuildRequires: libxml2-devel >= 2.7.7
BuildRequires: gnome-vfs2-devel >= 2.24.4
BuildRequires: libbonobo-devel >= 2.32.0
BuildRequires: bzip2-devel
BuildRequires: zlib-devel
BuildRequires: python-devel
BuildRequires: pygtk2-devel
BuildRequires: pygobject-devel >= 2.24.4
BuildRequires: popt-devel

Vendor: Project Vine
Distribution: Vine Linux

%description
A library for reading and writing structured files (eg MS OLE and Zip)

%description -l ja
構造化ファイル (例：MS OLE や Zip) を読み書きするためのライブラリです．

%package devel
Summary: Support files necessary to compile applications with libgsf.
Summary(ja): libgsf を使ったソフトのコンパイルに必要なファイル
Group: Development/Libraries
Requires: libgsf = %{version}-%{release}
Requires: glib2-devel >= 2.26.0
Requires: libxml2-devel >= 2.7.7
Requires: gnome-vfs2-devel >= 2.24.4
Requires: libbonobo-devel >= 2.32.0

%description devel
Libraries, headers, and support files necessary to compile applications 
using libgsf.

%description -l ja devel
libgsf を使ったアプリケーションのコンパイルに必要なライブラリ，
ヘッダファイルなどです．

%prep
%setup -q

%build
%configure --disable-static --disable-schemas-install
make

%install
if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi

%makeinstall

rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/gsf/*.la

%find_lang %{name}

%clean
if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS COPYING COPYING.LIB ChangeLog README
%attr(755, root, root) %{_bindir}/gsf
%attr(755, root, root) %{_bindir}/gsf-office-thumbnailer
%attr(755, root, root) %{_bindir}/gsf-vba-dump
%{_libdir}/lib*.so.*
%ifarch x86_64
%{_prefix}/lib/python?.?/site-packages/gsf
%endif
%{_libdir}/python?.?/site-packages/gsf
%{_datadir}/thumbnailers/gsf-office.thumbnailer
%{_mandir}/man1/*

%files devel
%defattr(644,root,root,755)
#{_libdir}/lib*.a
#{_libdir}/lib*.la
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libgsf-1
%{_datadir}/gtk-doc/html/gsf

%changelog
* Wed Dec 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.22-1
- new upstream release

* Sun Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.21-1
- new upstream release

* Thu May 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.20-1
- new upstream release

* Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.19-1
- new upstream release

* Wed Sep 22 2010 IWAI, Masaharu <iwai@alib.jp> 1.14.18-2
- build with rpm-4.8.1-1 for pkg-config file

* Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.18-1
- new upstream release

* Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.17-1
- new upstream release
- add BuildRequires: popt-devel

* Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.14.13-2
- rebuilt with python-2.6.4

* Mon May 11 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.13-1
- new upstream release
- removed static libraries

* Wed Apr  8 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.11-1
- new upstream release

* Sat Oct 25 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.10-1
- new upstream release

* Wed Sep 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.9-1
- new upstream release
- added BuildRequires: pygtk2-devel, pygobject-devel

* Sun Jul 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.8-1
- applied new versioning policy
- rebuilt with python-2.5.2
- spec in UTF-8

* Sat Mar  8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.8-0vl1
- new upstream release

* Sat Sep  8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.7-0vl1
- new upstream release

* Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.5-0vl1
- new upstream release
- removed GConf2 dependancy

* Sun Jun 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.4-0vl1
- new upstream release

* Wed Dec  6 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.3-0vl1
- new upstream release (includes security fix CVE-2006-4514)

* Wed May 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.1-0vl1
- new upstream release

* Sun Mar  7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.0-0vl1
- new upstream release

* Mon Nov  7 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.13.3-0vl1
- new upstream release
- updated Japanese summary and description
- install schemas in %post section

* Sat Jun 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.12.0-0vl1
- new upstream release

* Fri Nov 12 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.1-0vl1
- new upstream release
- added Japanese summary

* Thu May  6 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.0-0vl1
- new upstream release

* Sun Sep 14 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.2-0vl1
- new upstream release
- fixed URL

* Mon Jun 30 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.1-0vl1
- rebuilt for Vine
- updated to 1.8.1

* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Wed May 14 2003 Florian La Roche <Florian.LaRoche@redhat.de>
- add proper ldconfig calls

* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt

* Fri Jan  3 2003 Tim Powers <timp@redhat.com> 1.6.0-3
- fix requires

* Thu Jan  2 2003 Jonathan Blandford <jrb@redhat.com>
- import into the build system

* Tue Jun 18 2002 Rui M. Seabra <rms@407.org>
- set permission correctly
- fix common mistake of Copyright flag into License flag.

* Thu May 23 2002 Jody Goldberg <jody@gnome.org>
- Initial version
