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