6c426a1
%global apiversion 0.12
232ffee
3c2dd8a
# build conversion tools
3c2dd8a
%bcond_without convtools
36ad514
# build python3 bindings
36ad514
%bcond_without python
3c2dd8a
36d8204
Name: liborcus
6c426a1
Version: 0.12.1
Igor Gnatenko 706eef4
Release: 4%{?dist}
36d8204
Summary: Standalone file import filter library for spreadsheet documents
36d8204
0c672c8
License: MPLv2.0
2246c70
URL: https://gitlab.com/orcus/orcus
d3690a7
Source0: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz
36d8204
36d8204
BuildRequires: boost-devel
f286844
BuildRequires: doxygen
3c2dd8a
%if %{with convtools}
3832a39
BuildRequires: help2man
00632eb
BuildRequires: pkgconfig(libixion-0.12)
3c2dd8a
%endif
942de92
BuildRequires: pkgconfig(mdds-1.2)
36ad514
%if %{with python}
36ad514
BuildRequires: pkgconfig(python3)
36ad514
%endif
b132696
BuildRequires: pkgconfig(zlib)
36d8204
36d8204
%description
36d8204
%{name} is a standalone file import filter library for spreadsheet
36d8204
documents. Currently under development are ODS, XLSX and CSV import
36d8204
filters.
36d8204
3c2dd8a
%if %{with convtools}
3e118f5
%package model
3e118f5
Summary: Spreadsheet model for %{name} conversion tools
3e118f5
Requires: %{name}%{?_isa} = %{version}-%{release}
3e118f5
3e118f5
%description model
3e118f5
The %{name}-model package contains a spreadsheet model used by the
3e118f5
conversion tools.
3c2dd8a
%endif
3e118f5
36d8204
%package devel
36d8204
Summary: Development files for %{name}
36d8204
Requires: %{name}%{?_isa} = %{version}-%{release}
36d8204
36d8204
%description devel
36d8204
The %{name}-devel package contains libraries and header files for
36d8204
developing applications that use %{name}.
36d8204
36d8204
%package tools
110e162
Summary: Tools for working with %{name}
36d8204
Requires: %{name}%{?_isa} = %{version}-%{release}
36d8204
36d8204
%description tools
3e118f5
Helper tools for %{name} and converters of various file formats to HTML
3e118f5
and text.
36d8204
36ad514
%if %{with python}
36ad514
%package python3
36ad514
Summary: Python 3 bindings for %{name}
36ad514
Requires: %{name}%{?_isa} = %{version}-%{release}
36ad514
36ad514
%description python3
36ad514
Python 3 bindings for %{name}.
36ad514
%endif
36ad514
f286844
%package doc
f286844
Summary: API documentation for %{name}
190a91c
BuildArch: noarch
f286844
f286844
%description doc
f286844
API documentation for %{name}.
f286844
36d8204
%prep
5f14c92
%autosetup -p1
4d1b271
3c2dd8a
%if %{without convtools}
36ad514
%global condopts %{?condopts} --disable-spreadsheet-model
36ad514
%endif
36ad514
%if %{without python}
36ad514
%global condopts %{?condopts} --disable-python
3c2dd8a
%endif
3c2dd8a
36d8204
%build
a373b13
%configure --disable-debug --disable-silent-rules --disable-static \
36ad514
    --disable-werror --with-pic %{?condopts}
36d8204
sed -i \
36d8204
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
36d8204
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
36d8204
    libtool
a373b13
make %{?_smp_mflags}
36d8204
36d8204
%install
36d8204
make install DESTDIR=%{buildroot}
36ad514
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{python3_sitearch}/*.la
36d8204
3c2dd8a
%if %{with convtools}
56a40e1
# create and install man pages
56a40e1
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
c86ef08
help2man -N -S '%{name} %{version}' -n 'convert a CSV file' -o orcus-csv.1 %{buildroot}/usr/bin/orcus-csv
c86ef08
help2man -N -S '%{name} %{version}' -n 'convert a Gnumeric file' -o orcus-gnumeric.1 %{buildroot}/usr/bin/orcus-gnumeric
c86ef08
help2man -N -S '%{name} %{version}' -n 'convert an ODF spreadsheet' -o orcus-ods.1 %{buildroot}/usr/bin/orcus-ods
c86ef08
help2man -N -S '%{name} %{version}' -n 'transform an XML file' -o orcus-xls-xml.1 %{buildroot}/usr/bin/orcus-xls-xml
c86ef08
help2man -N -S '%{name} %{version}' -n 'convert a OpenXML spreadsheet' -o orcus-xlsx.1 %{buildroot}/usr/bin/orcus-xlsx
c86ef08
help2man -N -S '%{name} %{version}' -n 'convert an XML file' -o orcus-xml.1 %{buildroot}/usr/bin/orcus-xml
3832a39
install -m 0755 -d %{buildroot}/%{_mandir}/man1
3832a39
install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1
3c2dd8a
%endif
3832a39
f286844
# build documentation
6c426a1
make doc-doxygen
f286844
c0d6af2
%check
3e118f5
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
c0d6af2
make check %{?_smp_mflags}
c0d6af2
36d8204
%post -p /sbin/ldconfig
36d8204
%postun -p /sbin/ldconfig
36d8204
3c2dd8a
%if %{with convtools}
3e118f5
%post model -p /sbin/ldconfig
3e118f5
%postun model -p /sbin/ldconfig
3c2dd8a
%endif
3e118f5
36d8204
%files
942de92
%doc AUTHORS CHANGELOG
d3690a7
%license LICENSE
232ffee
%{_libdir}/%{name}-%{apiversion}.so.*
232ffee
%{_libdir}/%{name}-mso-%{apiversion}.so.*
232ffee
%{_libdir}/%{name}-parser-%{apiversion}.so.*
36d8204
3c2dd8a
%if %{with convtools}
3e118f5
%files model
3e118f5
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so.*
3c2dd8a
%endif
3e118f5
36d8204
%files devel
232ffee
%{_includedir}/%{name}-%{apiversion}
232ffee
%{_libdir}/%{name}-%{apiversion}.so
232ffee
%{_libdir}/%{name}-mso-%{apiversion}.so
232ffee
%{_libdir}/%{name}-parser-%{apiversion}.so
232ffee
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
3c2dd8a
%if %{with convtools}
3c2dd8a
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so
3e118f5
%{_libdir}/pkgconfig/%{name}-spreadsheet-model-%{apiversion}.pc
3c2dd8a
%endif
36d8204
36d8204
%files tools
1de720f
%{_bindir}/orcus-css-dump
0c672c8
%{_bindir}/orcus-detect
Thierry Vignaud 4e3b20f
%{_bindir}/orcus-json
232ffee
%{_bindir}/orcus-mso-encryption
3c2dd8a
%{_bindir}/orcus-xml-dump
3c2dd8a
%{_bindir}/orcus-zip-dump
Thierry Vignaud 4e3b20f
%{_bindir}/orcus-yaml
3c2dd8a
%if %{with convtools}
3c2dd8a
%{_bindir}/orcus-csv
3c2dd8a
%{_bindir}/orcus-gnumeric
3e118f5
%{_bindir}/orcus-ods
3e118f5
%{_bindir}/orcus-xls-xml
3e118f5
%{_bindir}/orcus-xlsx
3e118f5
%{_bindir}/orcus-xml
3832a39
%{_mandir}/man1/orcus-csv.1*
3832a39
%{_mandir}/man1/orcus-gnumeric.1*
3832a39
%{_mandir}/man1/orcus-ods.1*
3832a39
%{_mandir}/man1/orcus-xls-xml.1*
3832a39
%{_mandir}/man1/orcus-xlsx.1*
3832a39
%{_mandir}/man1/orcus-xml.1*
3c2dd8a
%endif
36d8204
36ad514
%if %{with python}
36ad514
%files python3
36ad514
%{python3_sitearch}/_orcus.so
36ad514
%{python3_sitearch}/_orcus_json.so
81b3ca6
%{python3_sitelib}/orcus
36ad514
%endif
36ad514
f286844
%files doc
f286844
%license LICENSE
6c426a1
%doc doc/_doxygen/html
f286844
36d8204
%changelog
Igor Gnatenko 706eef4
* Wed Feb 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.12.1-4
Igor Gnatenko 706eef4
- Rebuild for brp-python-bytecompile
Igor Gnatenko 706eef4
20f4846
* Tue Feb 07 2017 Björn Esser <besser82@fedoraproject.org> - 0.12.1-3
20f4846
- Rebuilt for Boost 1.63
81b3ca6
- Fix build and directory ownership
20f4846
f2ffd6c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.12.1-2
f2ffd6c
- Rebuild for Python 3.6
f2ffd6c
6c426a1
* Thu Sep 29 2016 David Tardon <dtardon@redhat.com> - 0.12.1-1
6c426a1
- new upstream release
6c426a1
00632eb
* Wed Jul 20 2016 David Tardon <dtardon@redhat.com> - 0.11.2-2
00632eb
- rebuild for libixion 0.12
00632eb
f746502
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-1
f746502
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f746502
9cd57f6
* Mon Mar 14 2016 David Tardon <dtardon@redhat.com> - 0.11.1-1
9cd57f6
- new upstream release
9cd57f6
d3690a7
* Tue Mar 08 2016 David Tardon <dtardon@redhat.com> - 0.11.0-1
d3690a7
- new upstream release
d3690a7
0085804
* Sun Feb 14 2016 David Tardon <dtardon@redhat.com> - 0.9.2-4
0085804
- switch to new mdds and libixion
0085804
33a1b8b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-3
33a1b8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
33a1b8b
5e0e829
* Sat Jan 16 2016 Jonathan Wakely <jwakely@redhat.com> - 0.9.2-2
5e0e829
- Rebuilt for Boost 1.60
5e0e829
1de720f
* Mon Oct 19 2015 David Tardon <dtardon@redhat.com> - 0.9.2-1
1de720f
- rebase to the 0.9.x line
1de720f
01fa6d7
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.7.1-7
01fa6d7
- Rebuilt for Boost 1.59
01fa6d7
d6257fa
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-6
d6257fa
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
d6257fa
684789a
* Fri Jul 24 2015 Adam Williamson <awilliam@redhat.com> - 0.7.1-5
684789a
- rebuild for Boost 1.58 (for f23, for real this time)
684789a
2f3214e
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.7.1-4
2f3214e
- rebuild for Boost 1.58
2f3214e
616a005
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
616a005
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
616a005
3a0d5de
* Tue Apr 14 2015 David Tardon <dtardon@redhat.com> - 0.7.1-2
3a0d5de
- rebuild for yet another C++ ABI break
3a0d5de
d203ac9
* Wed Feb 25 2015 David Tardon <dtardon@redhat.com> - 0.7.1-1
d203ac9
- new upstream release
d203ac9
Petr Machata 7d6d1db
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.7.0-7
Petr Machata 93249a6
- include <iostream> in string_pool_test (liborcus-0.7.0-iostream.patch)
Petr Machata 7d6d1db
Petr Machata 4c53dee
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.7.0-6
Petr Machata 4c53dee
- Rebuild for boost 1.57.0
Petr Machata 4c53dee
8f4c194
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
8f4c194
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8f4c194
1249e6d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-4
1249e6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1249e6d
3e118f5
* Thu May 29 2014 David Tardon <dtardon@redhat.com> - 0.7.0-3
3e118f5
- enable conversion tools
3e118f5
Petr Machata bc7aa34
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.7.0-2
Petr Machata bc7aa34
- Rebuild for boost 1.55.0
Petr Machata bc7aa34
0c672c8
* Thu May 22 2014 David Tardon <dtardon@redhat.com> - 0.7.0-1
0c672c8
- new upstream release
0c672c8
Jaromir Capik 2360259
* Mon May 05 2014 Jaromir Capik <jcapik@redhat.com> - 0.5.1-7
Jaromir Capik 2360259
- add support for ppc64le
Jaromir Capik 2360259
4d1b271
* Wed Jan 22 2014 David Tardon <dtardon@redhat.com> - 0.5.1-6
4d1b271
- add support for aarch64
4d1b271
72deb2e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
72deb2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
72deb2e
Petr Machata c1dd1d5
* Sat Jul 27 2013 pmachata@redhat.com - 0.5.1-4
Petr Machata c1dd1d5
- Rebuild for boost 1.54.0
Petr Machata c1dd1d5
01e8aa9
* Mon Jun 10 2013 David Tardon <dtardon@redhat.com> - 0.5.1-3
01e8aa9
- trivial changes
01e8aa9
cd2f23d
* Tue May 28 2013 David Tardon <dtardon@redhat.com> - 0.5.1-2
cd2f23d
- build orcus-zip-dump too
cd2f23d
232ffee
* Mon May 06 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
232ffee
- new release
232ffee
8086a6d
* Fri Feb 15 2013 Stephan Bergmannn <sbergman@redhat.com> - 0.3.0-5
8086a6d
- missing boost include
8086a6d
141738b
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-4
141738b
- Rebuild for Boost-1.53.0
141738b
f5bf322
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-3
f5bf322
- Rebuild for Boost-1.53.0
f5bf322
12b62ef
* Sat Dec 08 2012 David Tardon <dtardon@redhat.com> - 0.3.0-2
12b62ef
- a pointless release bump
12b62ef
b0e2462
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-1
b0e2462
- new release
b0e2462
36d8204
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.1.0-1
36d8204
- initial import