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