f29d91
%global apiversion 0.15
56314c
56314c
# build conversion tools
56314c
%bcond_with convtools
56314c
# build python3 bindings
56314c
%bcond_with python
56314c
56314c
Name: liborcus
f29d91
Version: 0.15.4
f29d91
Release: 2%{?dist}
56314c
Summary: Standalone file import filter library for spreadsheet documents
56314c
56314c
License: MPLv2.0
56314c
URL: https://gitlab.com/orcus/orcus
56314c
Source0: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz
56314c
56314c
BuildRequires: boost-devel
56314c
BuildRequires: doxygen
56314c
BuildRequires: gcc-c++
56314c
%if %{with convtools}
56314c
BuildRequires: help2man
f29d91
BuildRequires: pkgconfig(libixion-0.15)
56314c
%endif
f29d91
BuildRequires: pkgconfig(mdds-1.5)
56314c
%if %{with python}
56314c
BuildRequires: pkgconfig(python3)
56314c
%endif
56314c
BuildRequires: pkgconfig(zlib)
56314c
1c4074
Patch0: liborcus-noexamples.patch
1c4074
56314c
%description
56314c
%{name} is a standalone file import filter library for spreadsheet
56314c
documents. Currently under development are ODS, XLSX and CSV import
56314c
filters.
56314c
56314c
%if %{with convtools}
56314c
%package model
56314c
Summary: Spreadsheet model for %{name} conversion tools
56314c
Requires: %{name}%{?_isa} = %{version}-%{release}
56314c
56314c
%description model
56314c
The %{name}-model package contains a spreadsheet model used by the
56314c
conversion tools.
56314c
%endif
56314c
56314c
%package devel
56314c
Summary: Development files for %{name}
56314c
Requires: %{name}%{?_isa} = %{version}-%{release}
56314c
56314c
%description devel
56314c
The %{name}-devel package contains libraries and header files for
56314c
developing applications that use %{name}.
56314c
56314c
%package tools
56314c
Summary: Tools for working with %{name}
56314c
Requires: %{name}%{?_isa} = %{version}-%{release}
56314c
56314c
%description tools
56314c
Helper tools for %{name} and converters of various file formats to HTML
56314c
and text.
56314c
56314c
%if %{with python}
56314c
%package python3
56314c
Summary: Python 3 bindings for %{name}
56314c
Requires: %{name}%{?_isa} = %{version}-%{release}
56314c
56314c
%description python3
56314c
Python 3 bindings for %{name}.
56314c
%endif
56314c
56314c
%package doc
56314c
Summary: API documentation for %{name}
56314c
BuildArch: noarch
56314c
56314c
%description doc
56314c
API documentation for %{name}.
56314c
56314c
%prep
56314c
%autosetup -p1
56314c
56314c
%if %{without convtools}
56314c
%global condopts %{?condopts} --disable-spreadsheet-model
56314c
%endif
56314c
%if %{without python}
56314c
%global condopts %{?condopts} --disable-python
56314c
%endif
56314c
56314c
%build
56314c
%configure --disable-debug --disable-silent-rules --disable-static \
56314c
    --disable-werror --with-pic %{?condopts}
56314c
sed -i \
56314c
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
56314c
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
56314c
    libtool
56314c
make %{?_smp_mflags}
56314c
56314c
%install
56314c
make install DESTDIR=%{buildroot}
56314c
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{python3_sitearch}/*.la
56314c
56314c
%if %{with convtools}
56314c
# create and install man pages
56314c
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
56314c
help2man -N -S '%{name} %{version}' -n 'convert a CSV file' -o orcus-csv.1 %{buildroot}/usr/bin/orcus-csv
56314c
help2man -N -S '%{name} %{version}' -n 'convert a Gnumeric file' -o orcus-gnumeric.1 %{buildroot}/usr/bin/orcus-gnumeric
56314c
help2man -N -S '%{name} %{version}' -n 'convert an ODF spreadsheet' -o orcus-ods.1 %{buildroot}/usr/bin/orcus-ods
56314c
help2man -N -S '%{name} %{version}' -n 'transform an XML file' -o orcus-xls-xml.1 %{buildroot}/usr/bin/orcus-xls-xml
56314c
help2man -N -S '%{name} %{version}' -n 'convert a OpenXML spreadsheet' -o orcus-xlsx.1 %{buildroot}/usr/bin/orcus-xlsx
56314c
help2man -N -S '%{name} %{version}' -n 'convert an XML file' -o orcus-xml.1 %{buildroot}/usr/bin/orcus-xml
56314c
install -m 0755 -d %{buildroot}/%{_mandir}/man1
56314c
install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1
56314c
%endif
56314c
56314c
# build documentation
56314c
make doc-doxygen
56314c
56314c
%check
56314c
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
56314c
make check %{?_smp_mflags}
56314c
56314c
%post -p /sbin/ldconfig
56314c
%postun -p /sbin/ldconfig
56314c
56314c
%if %{with convtools}
56314c
%post model -p /sbin/ldconfig
56314c
%postun model -p /sbin/ldconfig
56314c
%endif
56314c
56314c
%files
56314c
%doc AUTHORS CHANGELOG
56314c
%license LICENSE
56314c
%{_libdir}/%{name}-%{apiversion}.so.*
56314c
%{_libdir}/%{name}-mso-%{apiversion}.so.*
56314c
%{_libdir}/%{name}-parser-%{apiversion}.so.*
56314c
56314c
%if %{with convtools}
56314c
%files model
56314c
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so.*
56314c
%endif
56314c
56314c
%files devel
56314c
%{_includedir}/%{name}-%{apiversion}
56314c
%{_libdir}/%{name}-%{apiversion}.so
56314c
%{_libdir}/%{name}-mso-%{apiversion}.so
56314c
%{_libdir}/%{name}-parser-%{apiversion}.so
56314c
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
56314c
%if %{with convtools}
56314c
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so
56314c
%{_libdir}/pkgconfig/%{name}-spreadsheet-model-%{apiversion}.pc
56314c
%endif
56314c
56314c
%files tools
56314c
%{_bindir}/orcus-css-dump
56314c
%{_bindir}/orcus-detect
56314c
%{_bindir}/orcus-json
56314c
%{_bindir}/orcus-mso-encryption
56314c
%{_bindir}/orcus-zip-dump
56314c
%{_bindir}/orcus-yaml
56314c
%if %{with convtools}
56314c
%{_bindir}/orcus-csv
56314c
%{_bindir}/orcus-gnumeric
56314c
%{_bindir}/orcus-ods
56314c
%{_bindir}/orcus-styles-ods
56314c
%{_bindir}/orcus-xls-xml
56314c
%{_bindir}/orcus-xlsx
56314c
%{_bindir}/orcus-xml
56314c
%{_mandir}/man1/orcus-csv.1*
56314c
%{_mandir}/man1/orcus-gnumeric.1*
56314c
%{_mandir}/man1/orcus-ods.1*
56314c
%{_mandir}/man1/orcus-xls-xml.1*
56314c
%{_mandir}/man1/orcus-xlsx.1*
56314c
%{_mandir}/man1/orcus-xml.1*
56314c
%endif
56314c
56314c
%if %{with python}
56314c
%files python3
56314c
%{python3_sitearch}/_orcus.so
56314c
%{python3_sitearch}/_orcus_json.so
56314c
%{python3_sitelib}/orcus
56314c
%endif
56314c
56314c
%files doc
56314c
%license LICENSE
56314c
%doc doc/_doxygen/html
56314c
56314c
%changelog
f29d91
* Sun Oct 25 2020 Caolán McNamara <caolanm@redhat.com> - 0.15.4-2
f29d91
- Related: rhbz#1881132 update to 0.15.4
f29d91
f29d91
* Thu Oct 22 2020 Caolán McNamara <caolanm@redhat.com> - 0.15.4-1
f29d91
- Resolves: rhbz#1881132 update to 0.15.4
f29d91
1c4074
* Fri Mar 13 2020 Caolán McNamara <caolanm@redhat.com> - 0.14.1-1
1c4074
- Related: rhbz#1796893 update to 0.14.1
1c4074
56314c
* Wed Jun 06 2018 David Tardon <dtardon@redhat.com> - 0.13.4-2
56314c
- drop dependency on libixion
56314c
56314c
* Wed Feb 28 2018 David Tardon <dtardon@redhat.com> - 0.13.4-1
56314c
- new upstream release
56314c
56314c
* Sat Feb 17 2018 David Tardon <dtardon@redhat.com> - 0.13.3-1
56314c
- new upstream release
56314c
56314c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.2-2
56314c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
56314c
56314c
* Wed Jan 31 2018 David Tardon <dtardon@redhat.com> - 0.13.2-1
56314c
- new upstream release
56314c
56314c
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 0.13.1-2
56314c
- Rebuilt for Boost 1.66
56314c
56314c
* Mon Nov 20 2017 David Tardon <dtardon@redhat.com> - 0.13.1-1
56314c
- new upstream release
56314c
56314c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-7
56314c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
56314c
56314c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-6
56314c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
56314c
56314c
* Fri Jul 21 2017 Kalev Lember <klember@redhat.com> - 0.12.1-5
56314c
- Rebuilt for Boost 1.64
56314c
56314c
* Wed Feb 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.12.1-4
56314c
- Rebuild for brp-python-bytecompile
56314c
56314c
* Tue Feb 07 2017 Björn Esser <besser82@fedoraproject.org> - 0.12.1-3
56314c
- Rebuilt for Boost 1.63
56314c
- Fix build and directory ownership
56314c
56314c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.12.1-2
56314c
- Rebuild for Python 3.6
56314c
56314c
* Thu Sep 29 2016 David Tardon <dtardon@redhat.com> - 0.12.1-1
56314c
- new upstream release
56314c
56314c
* Wed Jul 20 2016 David Tardon <dtardon@redhat.com> - 0.11.2-2
56314c
- rebuild for libixion 0.12
56314c
56314c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.2-1
56314c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
56314c
56314c
* Mon Mar 14 2016 David Tardon <dtardon@redhat.com> - 0.11.1-1
56314c
- new upstream release
56314c
56314c
* Tue Mar 08 2016 David Tardon <dtardon@redhat.com> - 0.11.0-1
56314c
- new upstream release
56314c
56314c
* Sun Feb 14 2016 David Tardon <dtardon@redhat.com> - 0.9.2-4
56314c
- switch to new mdds and libixion
56314c
56314c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-3
56314c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
56314c
56314c
* Sat Jan 16 2016 Jonathan Wakely <jwakely@redhat.com> - 0.9.2-2
56314c
- Rebuilt for Boost 1.60
56314c
56314c
* Mon Oct 19 2015 David Tardon <dtardon@redhat.com> - 0.9.2-1
56314c
- rebase to the 0.9.x line
56314c
56314c
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.7.1-7
56314c
- Rebuilt for Boost 1.59
56314c
56314c
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-6
56314c
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
56314c
56314c
* Fri Jul 24 2015 Adam Williamson <awilliam@redhat.com> - 0.7.1-5
56314c
- rebuild for Boost 1.58 (for f23, for real this time)
56314c
56314c
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.7.1-4
56314c
- rebuild for Boost 1.58
56314c
56314c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
56314c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
56314c
56314c
* Tue Apr 14 2015 David Tardon <dtardon@redhat.com> - 0.7.1-2
56314c
- rebuild for yet another C++ ABI break
56314c
56314c
* Wed Feb 25 2015 David Tardon <dtardon@redhat.com> - 0.7.1-1
56314c
- new upstream release
56314c
56314c
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.7.0-7
56314c
- include <iostream> in string_pool_test (liborcus-0.7.0-iostream.patch)
56314c
56314c
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.7.0-6
56314c
- Rebuild for boost 1.57.0
56314c
56314c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
56314c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
56314c
56314c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-4
56314c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
56314c
56314c
* Thu May 29 2014 David Tardon <dtardon@redhat.com> - 0.7.0-3
56314c
- enable conversion tools
56314c
56314c
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.7.0-2
56314c
- Rebuild for boost 1.55.0
56314c
56314c
* Thu May 22 2014 David Tardon <dtardon@redhat.com> - 0.7.0-1
56314c
- new upstream release
56314c
56314c
* Mon May 05 2014 Jaromir Capik <jcapik@redhat.com> - 0.5.1-7
56314c
- add support for ppc64le
56314c
56314c
* Wed Jan 22 2014 David Tardon <dtardon@redhat.com> - 0.5.1-6
56314c
- add support for aarch64
56314c
56314c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
56314c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
56314c
56314c
* Sat Jul 27 2013 pmachata@redhat.com - 0.5.1-4
56314c
- Rebuild for boost 1.54.0
56314c
56314c
* Mon Jun 10 2013 David Tardon <dtardon@redhat.com> - 0.5.1-3
56314c
- trivial changes
56314c
56314c
* Tue May 28 2013 David Tardon <dtardon@redhat.com> - 0.5.1-2
56314c
- build orcus-zip-dump too
56314c
56314c
* Mon May 06 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
56314c
- new release
56314c
56314c
* Fri Feb 15 2013 Stephan Bergmannn <sbergman@redhat.com> - 0.3.0-5
56314c
- missing boost include
56314c
56314c
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-4
56314c
- Rebuild for Boost-1.53.0
56314c
56314c
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-3
56314c
- Rebuild for Boost-1.53.0
56314c
56314c
* Sat Dec 08 2012 David Tardon <dtardon@redhat.com> - 0.3.0-2
56314c
- a pointless release bump
56314c
56314c
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-1
56314c
- new release
56314c
56314c
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.1.0-1
56314c
- initial import