File libwpd.spec of Package libwpd
#
# spec file for package libwpd (Version 0.8.9)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
# usedforbuild Mesa aaa_base acl atk attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 cairo coreutils cpio cpp cracklib cvs cyrus-sasl db dbus-1 dbus-1-devel dbus-1-glib diffutils doxygen e2fsprogs expat file filesystem fillup findutils flex fontconfig freetype2 gawk gcc gcc-c++ gconf2 gconf2-devel gdbm gdbm-devel gettext gettext-devel glib2 glib2-devel glibc glibc-devel glibc-locale glitz gnome-filesystem gnome-vfs2 gnome-vfs2-devel gpm grep groff gtk2 gzip hal hal-devel info insserv klogd less libacl libattr libbonobo libbonobo-devel libcom_err libdrm libgcc libgsf libgsf-devel libgsf-gnome libjpeg libmudflap libnscd libpng libstdc++ libstdc++-devel libtool libusb libxcrypt libxml2 libxml2-devel libzio m4 mDNSResponder-lib make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openmotif-libs openssl openssl-devel orbit2 orbit2-devel pam pam-modules pango patch perl permissions pkgconfig popt popt-devel procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim xorg-x11-libs zlib zlib-devel
Name: libwpd
BuildRequires: doxygen gcc-c++ libgsf-devel
License: LGPL v2.1 or later
Group: System/Libraries
AutoReqProv: on
Version: 0.8.9
Release: 1.2
Summary: Library for Importing WordPerfect (tm) Documents
Source: %{name}-%{version}.tar.bz2
Url: http://libwpd.sourceforge.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libwpd is a general purpose library for reading or interpreting data
from WordPerfect files. The library is not a stand-alone utility: it is
designed to be used by another program (for example, a word processor)
as an in-process component.
Authors:
--------
William Lachance <william.lachance@sympatico.ca>
Marc Maurer <j.m.maurer@student.utwente.nl>
Fridrich Strba <fridrich.strba@bluewin.ch>
%debug_package
%package devel
License: LGPL v2.1 or later
Group: System/Libraries
Summary: Library for importing WordPerfect (tm) documents
Requires: %{name} = %{version} libstdc++-devel libgsf-devel glibc-devel glib2-devel
%description devel
libwpd is a general purpose library for reading (or, interpreting data
from) WordPerfect files. The library is not a stand-alone utility: it
is designed to be used by another program (e.g.: a word processor) as
an in-process component.
Authors:
--------
William Lachance <william.lachance@sympatico.ca>
Marc Maurer <j.m.maurer@student.utwente.nl>
Fridrich Strba <fridrich.strba@bluewin.ch>
%package tools
License: LGPL v2.1 or later
Group: Productivity/Publishing/Word
Summary: Library for importing WordPerfect (tm) documents
Requires: %{name} = %{version} libstdc++-devel libgsf-devel glibc-devel glib2-devel
%description tools
Tools to transform WordPerfect Documents into other formats. Currently
supported: html, raw, text
Authors:
--------
William Lachance <william.lachance@sympatico.ca>
Marc Maurer <j.m.maurer@student.utwente.nl>
Fridrich Strba <fridrich.strba@bluewin.ch>
%prep
%setup -q
%build
touch AUTHORS ChangeLog NEWS ; autoreconf -f -i
%configure
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_docdir}
mv $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -p CHANGES COPYING CREDITS HACKING README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
chmod -x $RPM_BUILD_ROOT%{_docdir}/%{name}/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}/*.png
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr(-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/[A-Z]*
%{_docdir}/%{name}/libwpd.png
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%doc %{_docdir}/%{name}/html
%doc %{_docdir}/%{name}/libwpd.dia
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libwpd-0.8
%files tools
%defattr (-, root, root)
%{_bindir}/*
%changelog
* Tue Mar 27 2007 - dmueller@suse.de
- update to version 0.8.9:
* Fix a bug in WP1 document type detection where we could try to
seek to a negative place in document (Fridrich)
* Fix a regression wrt. 0.8.7 preventing the conversion of tab table
in WP1 and WP3 file-format (Fridrich)
* Fixed several overflow bugs reported by iDefense. An attacker
could create a carefully crafted Word Perfect file that could
cause an application linked with libwpd, such as OpenOffice, to
crash or possibly execute arbitrary code if the file was opened
by a victim. (CVE-2007-0002) (iDefense's Sean Larsson, Fridrich)
* Mon Feb 12 2007 - dmueller@suse.de
- update to 0.8.8 + patch for CVE-2007-0002 (#233981)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 08 2005 - stbinner@suse.de
- update to version 0.8.4
* Wed Oct 19 2005 - sbrabec@suse.cz
- Package documentation.
- Split to subpackages.
* Sat Oct 08 2005 - coolo@suse.de
- make it build with gcc 4.1 (sent upstream)
* Tue Oct 04 2005 - stbinner@suse.de
- initial package of version 0.8.3