5ceef9
%global apiversion 0.4
5ceef9
5ceef9
Name:		libwps
5ceef9
Version:	0.4.12
5ceef9
Release:	4%{?dist}
5ceef9
Summary:	A library for import of Microsoft Works documents
5ceef9
5ceef9
License:	LGPLv2+ or MPLv2.0
5ceef9
URL:		http://libwps.sourceforge.net/
5ceef9
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
5ceef9
5ceef9
BuildRequires:	doxygen
5ceef9
BuildRequires:	gcc-c++
5ceef9
BuildRequires:	help2man
5ceef9
BuildRequires:	pkgconfig(librevenge-0.0)
5ceef9
BuildRequires:	pkgconfig(librevenge-generators-0.0)
5ceef9
BuildRequires:	pkgconfig(librevenge-stream-0.0)
5ceef9
BuildRequires: make
5ceef9
5ceef9
%description
5ceef9
%{name} is a library for import of Microsoft Works text documents,
5ceef9
spreadsheets and (in a limited way) databases. Full list of supported
5ceef9
formats is available at
5ceef9
https://sourceforge.net/p/libwps/wiki/Home/#recognized-formats .
5ceef9
5ceef9
%package devel
5ceef9
Summary:	Development files for %{name}
5ceef9
Requires:	%{name}%{?_isa} = %{version}-%{release}
5ceef9
5ceef9
%description devel
5ceef9
The %{name}-devel package contains libraries and header files for
5ceef9
developing applications that use %{name}.
5ceef9
5ceef9
%package tools
5ceef9
Summary:	Tools to transform Microsoft Works documents into other formats
5ceef9
Requires:	%{name}%{?_isa} = %{version}-%{release}
5ceef9
5ceef9
%description tools
5ceef9
Tools to transform Microsoft Works documents into other formats.
5ceef9
Currently supported: CSV, HTML, raw, text
5ceef9
5ceef9
%package doc
5ceef9
Summary:	Documentation of %{name} API
5ceef9
BuildArch:	noarch
5ceef9
5ceef9
%description doc
5ceef9
The %{name}-doc package contains documentation files for %{name}
5ceef9
5ceef9
%prep
5ceef9
%autosetup -p1
5ceef9
5ceef9
%build
5ceef9
%configure --disable-silent-rules --disable-static
5ceef9
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
5ceef9
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
5ceef9
make %{?_smp_mflags}
5ceef9
5ceef9
%install
5ceef9
make install INSTALL="install -p" DESTDIR="%{buildroot}" 
5ceef9
rm -f %{buildroot}%{_libdir}/*.la
5ceef9
# we install API docs directly from build
5ceef9
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
5ceef9
5ceef9
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5ceef9
for tool in wks2csv wks2raw wks2text wps2html wps2raw wps2text; do
5ceef9
    help2man -S '%{name} %{version}' -N -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
5ceef9
done
5ceef9
install -m 0755 -d %{buildroot}/%{_mandir}/man1
5ceef9
install -m 0644 wks2*.1 wps2*.1 %{buildroot}/%{_mandir}/man1
5ceef9
5ceef9
%ldconfig_scriptlets
5ceef9
5ceef9
%files
5ceef9
%doc CREDITS NEWS README
5ceef9
%license COPYING.LGPL COPYING.MPL
5ceef9
%{_libdir}/%{name}-%{apiversion}.so.*
5ceef9
5ceef9
%files devel
5ceef9
%{_includedir}/%{name}-%{apiversion}
5ceef9
%{_libdir}/%{name}-%{apiversion}.so
5ceef9
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
5ceef9
5ceef9
%files tools
5ceef9
%{_bindir}/wks2csv
5ceef9
%{_bindir}/wks2raw
5ceef9
%{_bindir}/wks2text
5ceef9
%{_bindir}/wps2html
5ceef9
%{_bindir}/wps2raw
5ceef9
%{_bindir}/wps2text
5ceef9
%{_mandir}/man1/wks2csv.1*
5ceef9
%{_mandir}/man1/wks2raw.1*
5ceef9
%{_mandir}/man1/wks2text.1*
5ceef9
%{_mandir}/man1/wps2html.1*
5ceef9
%{_mandir}/man1/wps2raw.1*
5ceef9
%{_mandir}/man1/wps2text.1*
5ceef9
5ceef9
%files doc
5ceef9
%license COPYING.LGPL COPYING.MPL
5ceef9
%doc docs/doxygen/html
5ceef9
5ceef9
%changelog
5ceef9
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.4.12-4
5ceef9
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
5ceef9
  Related: rhbz#1991688
5ceef9
5ceef9
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.4.12-3
5ceef9
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
5ceef9
5ceef9
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.12-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5ceef9
5ceef9
* Sun Sep 06 2020 David Tardon <dtardon@redhat.com> - 0.4.12-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5ceef9
5ceef9
* Sun Apr 05 2020 David Tardon <dtardon@redhat.com> - 0.4.11-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-4
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5ceef9
5ceef9
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-3
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5ceef9
5ceef9
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5ceef9
5ceef9
* Tue Aug 07 2018 David Tardon <dtardon@redhat.com> - 0.4.10-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.9-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5ceef9
5ceef9
* Wed Apr 25 2018 David Tardon <dtardon@redhat.com> - 0.4.9-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5ceef9
5ceef9
* Mon Nov 27 2017 David Tardon <dtardon@redhat.com> - 0.4.8-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-3
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5ceef9
5ceef9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5ceef9
5ceef9
* Sun Jul 16 2017 David Tardon <dtardon@redhat.com> - 0.4.7-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
5ceef9
5ceef9
* Mon Mar 20 2017 David Tardon <dtardon@redhat.com> - 0.4.6-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.5-3
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5ceef9
5ceef9
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.4.5-2
5ceef9
- Rebuilt for Boost 1.63
5ceef9
5ceef9
* Wed Jan 11 2017 David Tardon <dtardon@redhat.com> - 0.4.5-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Mon Oct 17 2016 David Tardon <dtardon@redhat.com> - 0.4.4-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Sun Feb 14 2016 David Tardon <dtardon@redhat.com> - 0.4.3-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-3
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5ceef9
5ceef9
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.4.2-2
5ceef9
- Rebuilt for Boost 1.60
5ceef9
5ceef9
* Tue Oct 06 2015 David Tardon <dtardon@redhat.com> - 0.4.2-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.4.1-2
5ceef9
- Rebuilt for Boost 1.59
5ceef9
5ceef9
* Tue Aug 25 2015 David Tardon <dtardon@redhat.com> - 0.4.1-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
5ceef9
5ceef9
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.4.0-3
5ceef9
- rebuild for Boost 1.58
5ceef9
5ceef9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5ceef9
5ceef9
* Sat May 16 2015 David Tardon <dtardon@redhat.com> - 0.4.0-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.3.1-3
5ceef9
- Rebuilt for GCC 5 C++11 ABI change
5ceef9
5ceef9
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 0.3.1-2
5ceef9
- Rebuild for boost 1.57.0
5ceef9
5ceef9
* Tue Dec 30 2014 David Tardon <dtardon@redhat.com> - 0.3.1-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5ceef9
5ceef9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5ceef9
5ceef9
* Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.3.0-1
5ceef9
- new upstream release
5ceef9
5ceef9
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 0.2.9-8
5ceef9
- Rebuild for boost 1.55.0
5ceef9
5ceef9
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.2.9-7
5ceef9
- generate man pages
5ceef9
5ceef9
* Mon Sep 09 2013 David Tardon <dtardon@redhat.com> - 0.2.9-6
5ceef9
- Resolves: rhbz#1005711 do not compile in C++11 mode
5ceef9
5ceef9
* Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.2.9-5
5ceef9
- Resolves: rhbz#98166 Duplicated documentation
5ceef9
5ceef9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5ceef9
5ceef9
* Thu May 30 2013 David Tardon <dtardon@redhat.com> - 0.2.9-3
5ceef9
- drop build req. on cppunit
5ceef9
5ceef9
* Thu May 30 2013 David Tardon <dtardon@redhat.com> - 0.2.9-2
5ceef9
- libwps does not have any test suite
5ceef9
5ceef9
* Sat May 25 2013 David Tardon <dtardon@redhat.com> - 0.2.9-1
5ceef9
- new release
5ceef9
5ceef9
* Sun Apr 21 2013 David Tardon <dtardon@redhat.com> - 0.2.8-1
5ceef9
- new release
5ceef9
5ceef9
* Tue Apr 16 2013 Caolán McNamara <caolanm@redhat.com> - 0.2.7-5
5ceef9
- Resolves: rhbz#925931 support aarch64
5ceef9
5ceef9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-4
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5ceef9
5ceef9
* Fri Jul 27 2012 David Tardon <dtardon@redhat.com> - 0.2.7-3
5ceef9
- rebuilt for boost 1.50
5ceef9
5ceef9
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5ceef9
5ceef9
* Fri Jun 29 2012 David Tardon <dtardon@redhat.com> - 0.2.7-1
5ceef9
- new release
5ceef9
5ceef9
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-3
5ceef9
- Rebuilt for c++ ABI breakage
5ceef9
5ceef9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5ceef9
5ceef9
* Thu Dec 01 2011 David Tardon <dtardon@redhat.com> - 0.2.4-1
5ceef9
- latest version
5ceef9
5ceef9
* Fri Nov 18 2011 David Tardon <dtardon@redhat.com> - 0.2.3-1
5ceef9
- latest version
5ceef9
- remove obsoleted patch
5ceef9
5ceef9
* Wed Jul 13 2011 David Tardon <dtardon@redhat.com> - 0.2.2-1
5ceef9
- latest version
5ceef9
5ceef9
* Tue Jun 28 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.2.0-3
5ceef9
- Remove -Werror from CFLAGS/CXXFLAGS (Add libwps-0.2.0-werror.patch)
5ceef9
  (Fix FTBFS BZ#715767).
5ceef9
5ceef9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5ceef9
5ceef9
* Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1
5ceef9
- latest version
5ceef9
5ceef9
* Sat Jan 30 2010 Chen Lei <supercyper@163.com> - 0.1.2-7
5ceef9
- Add noarch to -doc subpackage
5ceef9
5ceef9
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-6
5ceef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5ceef9
5ceef9
* Tue Mar 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-5
5ceef9
- Correct DOC issues (again) RHBZ: #484933 / C14
5ceef9
5ceef9
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-4
5ceef9
- Correct path for CHECK section
5ceef9
5ceef9
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-3
5ceef9
- Add CHECK section
5ceef9
- Add cppunit-devel to BuildRequires
5ceef9
5ceef9
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-2
5ceef9
- Correct DOC issues
5ceef9
- Delete wrong pkgconfig pathes 
5ceef9
5ceef9
* Tue Feb 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-1
5ceef9
- Initial Package build