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