15158c
%global apiversion 0.10
15158c
15158c
Name: libwpd
15158c
Summary: A library for import of WordPerfect documents
15158c
Version: 0.10.3
15158c
Release: 10%{?dist}
15158c
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
15158c
Patch0: %{name}-gcc11.patch
15158c
URL: http://libwpd.sf.net/
15158c
License: LGPLv2+ or MPLv2.0
15158c
15158c
BuildRequires: boost-devel
15158c
BuildRequires: doxygen
15158c
BuildRequires: gcc-c++
15158c
BuildRequires: help2man
15158c
BuildRequires: pkgconfig(librevenge-0.0)
15158c
BuildRequires: pkgconfig(librevenge-generators-0.0)
15158c
BuildRequires: pkgconfig(librevenge-stream-0.0)
15158c
BuildRequires: pkgconfig(zlib)
15158c
BuildRequires: make
15158c
15158c
%description
15158c
%{name} is a library for import of WordPerfect documents.
15158c
15158c
%package tools
15158c
Summary: Tools to transform WordPerfect documents into other formats
15158c
Requires: %{name}%{?_isa} = %{version}-%{release}
15158c
15158c
%description tools
15158c
Tools to transform WordPerfect documents into other formats.
15158c
Currently supported: HTML, raw, text.
15158c
15158c
%package devel
15158c
Requires: %{name}%{?_isa} = %{version}-%{release}
15158c
Summary: Files for developing with libwpd
15158c
15158c
%description devel
15158c
Includes and definitions for developing with libwpd.
15158c
15158c
%package doc
15158c
Summary: Documentation of %{name} API
15158c
BuildArch: noarch
15158c
15158c
%description doc
15158c
The %{name}-doc package contains API documentation for %{name}.
15158c
15158c
%prep
15158c
%autosetup -p1
15158c
15158c
%build
15158c
%configure --disable-static --disable-silent-rules
15158c
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
15158c
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
15158c
%make_build
15158c
15158c
%install
15158c
%make_install
15158c
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
15158c
# we install API docs directly from build
15158c
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
15158c
15158c
# generate and install man pages
15158c
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
15158c
for tool in wpd2html wpd2raw wpd2text; do
15158c
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
15158c
done
15158c
install -m 0755 -d %{buildroot}/%{_mandir}/man1
15158c
install -m 0644 wpd2*.1 %{buildroot}/%{_mandir}/man1
15158c
15158c
%ldconfig_scriptlets
15158c
15158c
%files
15158c
%doc CREDITS NEWS README
15158c
%license COPYING.LGPL COPYING.MPL
15158c
%{_libdir}/%{name}-%{apiversion}.so.*
15158c
15158c
%files tools
15158c
%{_bindir}/wpd2html
15158c
%{_bindir}/wpd2raw
15158c
%{_bindir}/wpd2text
15158c
%{_mandir}/man1/wpd2html.1*
15158c
%{_mandir}/man1/wpd2raw.1*
15158c
%{_mandir}/man1/wpd2text.1*
15158c
15158c
%files devel
15158c
%doc HACKING TODO
15158c
%{_libdir}/%{name}-%{apiversion}.so
15158c
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
15158c
%{_includedir}/%{name}-%{apiversion}
15158c
15158c
%files doc
15158c
%license COPYING.LGPL COPYING.MPL
15158c
%doc docs/doxygen/html
15158c
%doc docs/%{name}.dia
15158c
%doc docs/%{name}.png
15158c
15158c
%changelog
15158c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.3-10
15158c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
15158c
  Related: rhbz#1991688
15158c
15158c
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.3-9
15158c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
15158c
15158c
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-8
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
15158c
15158c
* Wed Nov 04 2020 Jeff Law <law@redhat.com> - 0.10.3-7
15158c
- Fix missing #includes for gcc-11
15158c
15158c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-6
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
15158c
15158c
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 0.10.3-5
15158c
- Use make macros
15158c
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
15158c
15158c
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-4
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
15158c
15158c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-3
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
15158c
15158c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-2
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
15158c
15158c
* Sat Dec 29 2018 David Tardon <dtardon@redhat.com> - 0.10.3-1
15158c
- new upstream release
15158c
15158c
* Tue Oct 30 2018 Caolán McNamara <caolanm@redhat.com> - 0.10.2-4
15158c
- Resolves: rhbz#1643752 crash in specific wpd file
15158c
15158c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-3
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
15158c
15158c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-2
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
15158c
15158c
* Tue Sep 12 2017 David Tardon <dtardon@redhat.com> - 0.10.2-1
15158c
- new upstream release
15158c
15158c
* Thu Sep 07 2017 Caolán McNamara <caolanm@redhat.com> - 0.10.1-8
15158c
- Related: rhbz#1489337 extend to earlier file format version
15158c
15158c
* Thu Sep 07 2017 Caolán McNamara <caolanm@redhat.com> - 0.10.1-7
15158c
- Resolves: rhbz#1489337 crashing wpd
15158c
15158c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-6
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
15158c
15158c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-5
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
15158c
15158c
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-4
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
15158c
15158c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-3
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
15158c
15158c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-2
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
15158c
15158c
* Wed Dec 30 2015 David Tardon <dtardon@redhat.com> - 0.10.1-1
15158c
- new upstream release
15158c
15158c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-5
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
15158c
15158c
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.10.0-4
15158c
- Rebuilt for GCC 5 C++11 ABI change
15158c
15158c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-3
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
15158c
15158c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
15158c
15158c
* Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.10.0-1
15158c
- new upstream release
15158c
15158c
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.9.9-2
15158c
- generate man pages
15158c
15158c
* Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.9.9-1
15158c
- new release
15158c
15158c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-3
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
15158c
15158c
* Tue May 21 2013 David Tardon <dtardon@redhat.com> - 0.9.8-2
15158c
- drop build dep on libgsf-devel that has not been needed for years
15158c
15158c
* Tue May 14 2013 David Tardon <dtardon@redhat.com> - 0.9.8-1
15158c
- new release
15158c
15158c
* Sun Apr 21 2013 David Tardon <dtardon@redhat.com> - 0.9.7-1
15158c
- new release
15158c
15158c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
15158c
15158c
* Tue Sep 25 2012 David Tardon <dtardon@redhat.com> - 0.9.6-1
15158c
- new release
15158c
15158c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-4
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
15158c
15158c
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-3
15158c
- Rebuilt for c++ ABI breakage
15158c
15158c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-2
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
15158c
15158c
* Thu Dec 08 2011 Caolán McNamara <caolanm@redhat.com> - 0.9.4-1
15158c
- latest version
15158c
15158c
* Sun May 22 2011 Caolán McNamara <caolanm@redhat.com> - 0.9.2-1
15158c
- latest version
15158c
- drop integrated libwpd-gcc4.6.0.patch
15158c
15158c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-2
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
15158c
15158c
* Mon Jan 24 2011 Caolán McNamara <caolanm@redhat.com> - 0.9.1-1
15158c
- latest version
15158c
15158c
* Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.9.0-1
15158c
- latest version
15158c
15158c
* Sat Feb 13 2010 Caolán McNamara <caolanm@redhat.com> - 0.8.14-5
15158c
- Resolves: rhbz#226060 merge review
15158c
15158c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.14-4
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
15158c
15158c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.14-3
15158c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
15158c
15158c
* Tue Jan 06 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.8.14-2
15158c
- Rebuild for provides
15158c
15158c
* Wed Feb 13 2008 Caolán McNamara <caolanm@redhat.com> - 0.8.14-1
15158c
- next version
15158c
15158c
* Mon Dec 17 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.13-2
15158c
- strangely 0.8.13-1 never appeared in rawhide
15158c
15158c
* Thu Dec 13 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.13-1
15158c
- next version
15158c
15158c
* Sat Oct 13 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.12-1
15158c
- next version
15158c
15158c
* Fri Aug 24 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.11-1
15158c
- next version
15158c
15158c
* Fri Aug 03 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.10-2
15158c
- clarify license
15158c
15158c
* Fri Jun 15 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.10-1
15158c
- next version
15158c
15158c
* Tue Mar 27 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.9-2
15158c
- Resolves: rhbz#233876: add unowned directory fix from Michael Schwendt 
15158c
15158c
* Fri Mar 16 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.9-1
15158c
- next version
15158c
15158c
* Fri Feb 09 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.8-2
15158c
- spec cleanups
15158c
15158c
* Thu Jan 11 2007 Caolán McNamara <caolanm@redhat.com> - 0.8.8-1
15158c
- next version
15158c
15158c
* Mon Oct 09 2006 Caolán McNamara <caolanm@redhat.com> - 0.8.7-1
15158c
- next version
15158c
15158c
* Mon Jul 17 2006 Caolán McNamara <caolanm@redhat.com> - 0.8.6-1
15158c
- next version
15158c
15158c
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.8.5-3.1
15158c
- rebuild
15158c
15158c
* Sun Jun 11 2006  Caolán McNamara <caolanm@redhat.com> 0.8.5-3
15158c
- add wp5nofontlistcrash
15158c
15158c
* Fri Jun 02 2006  Caolán McNamara <caolanm@redhat.com> 0.8.5-2
15158c
- build through brew
15158c
15158c
* Thu Jun 01 2006  Caolán McNamara <caolanm@redhat.com> 0.8.5-1
15158c
- next version
15158c
15158c
* Tue Mar 21 2006  Caolán McNamara <caolanm@redhat.com> 0.8.4-2
15158c
- rebuild for libgsf
15158c
15158c
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.8.4-1.2.1
15158c
- bump again for double-long bug on ppc(64)
15158c
15158c
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.8.4-1.2
15158c
- rebuilt for new gcc4.1 snapshot and glibc changes
15158c
15158c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 0.8.4-1.1
15158c
- rebuilt
15158c
15158c
* Fri Dec 02 2005 Caolán McNamara <caolanm@redhat.com> 0.8.4-1
15158c
- next version
15158c
15158c
* Fri Dec 02 2005 Caolán McNamara <caolanm@redhat.com> 0.8.3-2
15158c
- rebuild because of libgsf
15158c
15158c
* Tue Jun 28 2005 Caolán McNamara <caolanm@redhat.com> 0.8.3-1
15158c
- update to latest libwpd
15158c
15158c
* Tue Jun 28 2005 Caolán McNamara <caolanm@redhat.com> 0.8.2-2.fc5
15158c
- export to other formats twiddle
15158c
15158c
* Wed Jun 22 2005 Caolán McNamara <caolanm@redhat.com> 0.8.2-1
15158c
- bump to latest version
15158c
15158c
* Fri Apr 29 2005 Caolán McNamara <caolanm@redhat.com> 0.8.1-1
15158c
- bump to latest version kudos Fridrich Strba
15158c
- drop integrated patch
15158c
15158c
* Wed Apr  6 2005 Caolán McNamara <caolanm@redhat.com> 0.8.0-4
15158c
- add libwpd devel provided patch for endless loops on some wpd documents
15158c
15158c
* Wed Mar 30 2005 Caolán McNamara <caolanm@redhat.com> 0.8.0-3
15158c
- rh#152503# add some Requires for -devel package
15158c
15158c
* Wed Mar  2 2005 Caolán McNamara <caolanm@redhat.com> 0.8.0-2
15158c
- rebuild with gcc4
15158c
15158c
* Fri Feb 11 2005 Caolán McNamara <caolanm@redhat.com> 0.8.0-1
15158c
- new version
15158c
15158c
* Wed Feb 9 2005 Caolán McNamara <caolanm@redhat.com> 0.7.2-2
15158c
- rebuild
15158c
15158c
* Fri Jul 23 2004 Caolán McNamara <caolanm@redhat.com> 0.7.2-1
15158c
- bump to 0.7.2
15158c
15158c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
15158c
- rebuilt
15158c
15158c
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
15158c
- rebuilt
15158c
15158c
* Thu Feb 19 2004 Jeremy Katz <katzj@redhat.com> - 0.7.1-1
15158c
- update to 0.7.1
15158c
15158c
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
15158c
- rebuilt
15158c
15158c
* Tue Dec 16 2003 Jeremy Katz <katzj@redhat.com> 0.6.6-1
15158c
- 0.6.6
15158c
15158c
* Tue Nov  4 2003 Jeremy Katz <katzj@redhat.com> 0.6.5-1
15158c
- 0.6.5
15158c
15158c
* Mon Sep 15 2003 Jeremy Katz <katzj@redhat.com> 0.6.2-1
15158c
- 0.6.2
15158c
15158c
* Sun Jul  6 2003 Jeremy Katz <katzj@redhat.com> 0.5.0-1
15158c
- initial build for Red Hat Linux, tweak accordingly
15158c
15158c
* Sat Apr 26 2003 Rui M. Seabra <rms@1407.org>
15158c
- Create rpm spec