9a2f33e
%global apiversion 0.4
ee2a5c8
supercyper 95a5fd1
Name:		libwps
8242233
Version:	0.4.4
2e3b8ad
Release:	1%{?dist}
f7eb4e3
Summary:	A library for import of Microsoft Works documents
cassmodiah fdd3f13
575e5b6
License:	LGPLv2+ or MPLv2.0
supercyper 95a5fd1
URL:		http://libwps.sourceforge.net/
6542792
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
cassmodiah fdd3f13
supercyper 95a5fd1
BuildRequires:	doxygen
8ac8b09
BuildRequires:	help2man
0b699dc
BuildRequires:	pkgconfig(librevenge-0.0)
cassmodiah fdd3f13
cassmodiah fdd3f13
%description
f7eb4e3
%{name} is a library for import of Microsoft Works text documents,
2e3b8ad
spreadsheets and (in a limited way) databases. Full list of supported
2e3b8ad
formats is available at
2e3b8ad
https://sourceforge.net/p/libwps/wiki/Home/#recognized-formats .
cassmodiah fdd3f13
supercyper 95a5fd1
%package devel
supercyper 95a5fd1
Summary:	Development files for %{name}
supercyper 7dcbe8e
Requires:	%{name}%{?_isa} = %{version}-%{release}
cassmodiah fdd3f13
supercyper 95a5fd1
%description devel
cassmodiah fdd3f13
The %{name}-devel package contains libraries and header files for
cassmodiah fdd3f13
developing applications that use %{name}.
cassmodiah fdd3f13
supercyper 95a5fd1
%package tools
f7eb4e3
Summary:	Tools to transform Microsoft Works documents into other formats
supercyper 7dcbe8e
Requires:	%{name}%{?_isa} = %{version}-%{release}
cassmodiah fdd3f13
supercyper 95a5fd1
%description tools
f7eb4e3
Tools to transform Microsoft Works documents into other formats.
0b699dc
Currently supported: CSV, HTML, raw, text
cassmodiah fdd3f13
supercyper 95a5fd1
%package doc
supercyper 95a5fd1
Summary:	Documentation of %{name} API
supercyper 95a5fd1
BuildArch:	noarch
cassmodiah fdd3f13
supercyper 95a5fd1
%description doc
cassmodiah fdd3f13
The %{name}-doc package contains documentation files for %{name}
cassmodiah fdd3f13
cassmodiah fdd3f13
%prep
9a2f33e
%autosetup -p1
cassmodiah fdd3f13
cassmodiah fdd3f13
%build
03f610e
%configure --disable-silent-rules --disable-static --disable-werror --with-sharedptr=c++11
cassmodiah fdd3f13
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
cassmodiah fdd3f13
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
cassmodiah fdd3f13
make %{?_smp_mflags}
cassmodiah fdd3f13
cassmodiah fdd3f13
%install
cassmodiah fdd3f13
make install INSTALL="install -p" DESTDIR="%{buildroot}" 
30ce224
rm -f %{buildroot}%{_libdir}/*.la
a6c4e4b
# we install API docs directly from build
a6c4e4b
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
cassmodiah fdd3f13
2e3b8ad
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
2e3b8ad
for tool in wks2csv wks2raw wks2text wps2html wps2raw wps2text; do
e252f6d
    help2man -S '%{name} %{version}' -N -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
2e3b8ad
done
8ac8b09
install -m 0755 -d %{buildroot}/%{_mandir}/man1
0b699dc
install -m 0644 wks2*.1 wps2*.1 %{buildroot}/%{_mandir}/man1
8ac8b09
cassmodiah fdd3f13
%post -p /sbin/ldconfig
cassmodiah fdd3f13
%postun -p /sbin/ldconfig
cassmodiah fdd3f13
cassmodiah fdd3f13
%files
9d5a24d
%doc CREDITS NEWS README
9d5a24d
%license COPYING.LGPL COPYING.MPL
ee2a5c8
%{_libdir}/%{name}-%{apiversion}.so.*
cassmodiah fdd3f13
cassmodiah fdd3f13
%files devel
63ecff0
%doc HACKING
ee2a5c8
%{_includedir}/%{name}-%{apiversion}
ee2a5c8
%{_libdir}/%{name}-%{apiversion}.so
ee2a5c8
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
cassmodiah fdd3f13
cassmodiah fdd3f13
%files tools
0b699dc
%{_bindir}/wks2csv
0b699dc
%{_bindir}/wks2raw
0b699dc
%{_bindir}/wks2text
ee2a5c8
%{_bindir}/wps2html
ee2a5c8
%{_bindir}/wps2raw
ee2a5c8
%{_bindir}/wps2text
0b699dc
%{_mandir}/man1/wks2csv.1*
0b699dc
%{_mandir}/man1/wks2raw.1*
0b699dc
%{_mandir}/man1/wks2text.1*
8ac8b09
%{_mandir}/man1/wps2html.1*
8ac8b09
%{_mandir}/man1/wps2raw.1*
8ac8b09
%{_mandir}/man1/wps2text.1*
cassmodiah fdd3f13
cassmodiah fdd3f13
%files doc
9d5a24d
%license COPYING.LGPL COPYING.MPL
a6c4e4b
%doc docs/doxygen/html
cassmodiah fdd3f13
cassmodiah fdd3f13
%changelog
8242233
* Mon Oct 17 2016 David Tardon <dtardon@redhat.com> - 0.4.4-1
8242233
- new upstream release
8242233
2e3b8ad
* Sun Feb 14 2016 David Tardon <dtardon@redhat.com> - 0.4.3-1
2e3b8ad
- new upstream release
2e3b8ad
de38708
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-3
de38708
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
de38708
c9de981
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.4.2-2
c9de981
- Rebuilt for Boost 1.60
c9de981
4eee564
* Tue Oct 06 2015 David Tardon <dtardon@redhat.com> - 0.4.2-1
4eee564
- new upstream release
4eee564
063721d
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.4.1-2
063721d
- Rebuilt for Boost 1.59
063721d
b3b9720
* Tue Aug 25 2015 David Tardon <dtardon@redhat.com> - 0.4.1-1
b3b9720
- new upstream release
b3b9720
a60c403
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
a60c403
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
a60c403
814fe4a
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.4.0-3
814fe4a
- rebuild for Boost 1.58
814fe4a
26ac632
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
26ac632
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
26ac632
9a2f33e
* Sat May 16 2015 David Tardon <dtardon@redhat.com> - 0.4.0-1
9a2f33e
- new upstream release
9a2f33e
eae4a54
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.3.1-3
eae4a54
- Rebuilt for GCC 5 C++11 ABI change
eae4a54
Petr Machata 8e2feca
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 0.3.1-2
Petr Machata 8e2feca
- Rebuild for boost 1.57.0
Petr Machata 8e2feca
9c5c836
* Tue Dec 30 2014 David Tardon <dtardon@redhat.com> - 0.3.1-1
9c5c836
- new upstream release
9c5c836
6b208b3
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
6b208b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6b208b3
7e73487
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
7e73487
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7e73487
0b699dc
* Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.3.0-1
0b699dc
- new upstream release
0b699dc
Petr Machata 3ace76a
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 0.2.9-8
Petr Machata 3ace76a
- Rebuild for boost 1.55.0
Petr Machata 3ace76a
8ac8b09
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.2.9-7
8ac8b09
- generate man pages
8ac8b09
58fe58c
* Mon Sep 09 2013 David Tardon <dtardon@redhat.com> - 0.2.9-6
58fe58c
- Resolves: rhbz#1005711 do not compile in C++11 mode
58fe58c
a6c4e4b
* Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.2.9-5
a6c4e4b
- Resolves: rhbz#98166 Duplicated documentation
a6c4e4b
e740aa0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
e740aa0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e740aa0
b5d3c05
* Thu May 30 2013 David Tardon <dtardon@redhat.com> - 0.2.9-3
b5d3c05
- drop build req. on cppunit
b5d3c05
cb5ad93
* Thu May 30 2013 David Tardon <dtardon@redhat.com> - 0.2.9-2
cb5ad93
- libwps does not have any test suite
cb5ad93
6542792
* Sat May 25 2013 David Tardon <dtardon@redhat.com> - 0.2.9-1
6542792
- new release
6542792
62ca436
* Sun Apr 21 2013 David Tardon <dtardon@redhat.com> - 0.2.8-1
62ca436
- new release
62ca436
2109ff5
* Tue Apr 16 2013 Caolán McNamara <caolanm@redhat.com> - 0.2.7-5
2109ff5
- Resolves: rhbz#925931 support aarch64
2109ff5
ad686f0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-4
ad686f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ad686f0
dad0f6f
* Fri Jul 27 2012 David Tardon <dtardon@redhat.com> - 0.2.7-3
dad0f6f
- rebuilt for boost 1.50
dad0f6f
e8f1e77
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
e8f1e77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8f1e77
a728a79
* Fri Jun 29 2012 David Tardon <dtardon@redhat.com> - 0.2.7-1
a728a79
- new release
a728a79
e32f640
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-3
e32f640
- Rebuilt for c++ ABI breakage
e32f640
f473be5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
f473be5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f473be5
aa6df58
* Thu Dec 01 2011 David Tardon <dtardon@redhat.com> - 0.2.4-1
aa6df58
- latest version
aa6df58
337557a
* Fri Nov 18 2011 David Tardon <dtardon@redhat.com> - 0.2.3-1
337557a
- latest version
337557a
- remove obsoleted patch
337557a
6eceb9d
* Wed Jul 13 2011 David Tardon <dtardon@redhat.com> - 0.2.2-1
6eceb9d
- latest version
6eceb9d
0e76783
* Tue Jun 28 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.2.0-3
0e76783
- Remove -Werror from CFLAGS/CXXFLAGS (Add libwps-0.2.0-werror.patch)
0e76783
  (Fix FTBFS BZ#715767).
0e76783
ccf0c7a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
ccf0c7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ccf0c7a
63ecff0
* Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1
63ecff0
- latest version
63ecff0
supercyper 95a5fd1
* Sat Jan 30 2010 Chen Lei <supercyper@163.com> - 0.1.2-7
supercyper 95a5fd1
- Add noarch to -doc subpackage
supercyper 95a5fd1
754c5c0
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-6
754c5c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
754c5c0
supercyper 95a5fd1
* Tue Mar 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-5
cassmodiah fdd3f13
- Correct DOC issues (again) RHBZ: #484933 / C14
cassmodiah fdd3f13
supercyper 95a5fd1
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-4
cassmodiah fdd3f13
- Correct path for CHECK section
cassmodiah fdd3f13
supercyper 95a5fd1
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-3
cassmodiah fdd3f13
- Add CHECK section
cassmodiah fdd3f13
- Add cppunit-devel to BuildRequires
cassmodiah fdd3f13
supercyper 95a5fd1
* Sun Feb 15 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-2
cassmodiah fdd3f13
- Correct DOC issues
cassmodiah fdd3f13
- Delete wrong pkgconfig pathes 
cassmodiah fdd3f13
supercyper 95a5fd1
* Tue Feb 10 2009 Simon Wesp <cassmodiah@fedoraproject.org> - 0.1.2-1
cassmodiah fdd3f13
- Initial Package build