File wv2.spec of Package wv2

#
# spec file for package wv2 (Version 0.2.3)
#
# Copyright (c) 2009 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:           wv2
BuildRequires:  gcc-c++ libgsf-devel
License:        LGPL v2.1 or later
Group:          System/Libraries
AutoReqProv:    on
Version:        0.2.3
Release:        253
Summary:        Library for Importing  Microsoft Word (tm) Documents
Source:         %name-%{version}.tar.bz2
Url:            http://sourceforge.net/projects/wvware
Patch:          %name.diff
Patch1:         %name-gcc43.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The wv2 library is used to import Microsoft Word documents in koffice
for example.



Authors:
--------
    Dom Lachowicz <cinamod@hotmail.com>
    Shaheed Haque <srhaque@iee.org>
    Werner Trobin <trobin@kde.org>
    David Faure <faure@kde.org>

%package devel
License:        LGPL v2.1 or later
Group:          System/Libraries
Summary:        Library for Importing  Microsoft Word(tm) Documents - development files
Requires:       wv2 = %{version}
Requires:       bzip2 libgsf-devel libstdc++-devel

%description devel
The wv2 library is used to import Microsoft Word documents in koffice
for example.



Authors:
--------
    Dom Lachowicz <cinamod@hotmail.com>
    Shaheed Haque <srhaque@iee.org>
    Werner Trobin <trobin@kde.org>
    David Faure <faure@kde.org>

%prep
%setup -q
%patch
%patch1 -p1

%build
  rm -rf autom4te.cache
  autoreconf --force --install
  CFLAGS="$RPM_OPT_FLAGS -fstack-protector" \
  CXXFLAGS="$RPM_OPT_FLAGS -fstack-protector" \
%configure --with-pic \
       --disable-debug \
       --disable-static 
%{__make} %{?jobs:-j%jobs}

%install
  make DESTDIR=$RPM_BUILD_ROOT install
  mkdir -p $RPM_BUILD_ROOT/%_defaultdocdir/wv2/
  cp -a doc AUTHORS README TODO COPYING.LIB \
        $RPM_BUILD_ROOT/%_defaultdocdir/wv2/
  rm -rf $RPM_BUILD_ROOT/%_defaultdocdir/wv2/doc/escher/CVS
  rm -rf $RPM_BUILD_ROOT/%_defaultdocdir/wv2/doc/CVS
  rm -rf $RPM_BUILD_ROOT/%_defaultdocdir/wv2/doc/.cvsignore
%{__rm} -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%dir %_defaultdocdir/wv2
%doc %_defaultdocdir/wv2/AUTHORS
%doc %_defaultdocdir/wv2/COPYING.LIB
/%_libdir/libwv2.so.*

%files devel
%defattr(-, root, root)
%doc %_defaultdocdir/wv2/doc
%doc %_defaultdocdir/wv2/README
%doc %_defaultdocdir/wv2/TODO
/usr/bin/wv2-config
/usr/include/wv2
/%_libdir/libwv2.so

%changelog
* Sat Jan 17 2009 crrodriguez@suse.de
- remove "la" files
* Sat Jun 28 2008 meissner@suse.de
- disabled static altogether
* Tue Oct 23 2007 meissner@suse.de
- fixed gcc 4.3 build
* Sun Oct 29 2006 meissner@suse.de
- use RPM_OPT_FLAGS, and stack protector.
* Wed Jun 28 2006 dmueller@suse.de
- update to 0.2.3
  * incorporate integer overflow check
  * fix small tab expand issue
* Wed Jun 28 2006 ltinkl@suse.cz
- fix #183984 - VUL-0: wv2 missing bounds check
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Sep 26 2005 mls@suse.de
- make devel package require base package
* Mon Jul 25 2005 mmj@suse.de
- fix build
- fix dependency chain
* Mon May 10 2004 adrian@suse.de
- update to version 0.2.2
* Thu Feb 26 2004 hmacht@suse.de
- building as nonroot-user
* Sat Jan 31 2004 adrian@suse.de
- wv2-devel requires now libgsf-devel
* Thu Nov 06 2003 adrian@suse.de
- update to version 0.2.1
* Tue Sep 02 2003 adrian@suse.de
- update to version 0.1.9
  * Word8 support fixes
  * --disable-debug switch to stop debug output
* Fri Aug 08 2003 adrian@suse.de
- update to version 0.1.8
* Fri Aug 01 2003 adrian@suse.de
- update to version 0.1.7
* Tue Jul 29 2003 adrian@suse.de
- fix build on lib64
* Mon Jul 28 2003 adrian@suse.de
- fix build
- add %%run_ldconfig
* Tue Jul 15 2003 adrian@suse.de
- update to version 0.1
* Sun May 18 2003 adrian@suse.de
- remove also .cvsignore
* Fri May 16 2003 adrian@suse.de
- fix build (remove CVS dirs)
* Mon Apr 14 2003 adrian@suse.de
- fix build for lib64
* Tue Apr 08 2003 adrian@suse.de
- update to version 0.0.9
* Tue Apr 08 2003 adrian@suse.de
- initial package of version 0.0.8
openSUSE Build Service is sponsored by