|
|
a784e9 |
%global apiversion 0.12
|
|
|
a784e9 |
|
|
|
a784e9 |
# build conversion tools
|
|
|
a784e9 |
%bcond_with convtools
|
|
|
a784e9 |
# build python3 bindings
|
|
|
a784e9 |
%bcond_with python
|
|
|
a784e9 |
|
|
|
a784e9 |
Name: liborcus
|
|
|
a784e9 |
Version: 0.12.1
|
|
|
a784e9 |
Release: 2%{?dist}
|
|
|
a784e9 |
Summary: Standalone file import filter library for spreadsheet documents
|
|
|
a784e9 |
|
|
|
a784e9 |
License: MPLv2.0
|
|
|
a784e9 |
URL: https://gitlab.com/orcus/orcus
|
|
|
a784e9 |
Source0: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz
|
|
|
a784e9 |
|
|
|
a784e9 |
BuildRequires: boost-devel
|
|
|
a784e9 |
BuildRequires: doxygen
|
|
|
a784e9 |
%if %{with convtools}
|
|
|
a784e9 |
BuildRequires: help2man
|
|
|
a784e9 |
BuildRequires: pkgconfig(libixion-0.12)
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
BuildRequires: pkgconfig(mdds-1.2)
|
|
|
a784e9 |
%if %{with python}
|
|
|
a784e9 |
BuildRequires: pkgconfig(python3)
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
BuildRequires: pkgconfig(zlib)
|
|
|
a784e9 |
|
|
|
a784e9 |
Patch0: 0001-Wtautological-compare-compare-against-the-other-para.patch
|
|
|
a784e9 |
|
|
|
a784e9 |
%description
|
|
|
a784e9 |
%{name} is a standalone file import filter library for spreadsheet
|
|
|
a784e9 |
documents. Currently under development are ODS, XLSX and CSV import
|
|
|
a784e9 |
filters.
|
|
|
a784e9 |
|
|
|
a784e9 |
%if %{with convtools}
|
|
|
a784e9 |
%package model
|
|
|
a784e9 |
Summary: Spreadsheet model for %{name} conversion tools
|
|
|
a784e9 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a784e9 |
|
|
|
a784e9 |
%description model
|
|
|
a784e9 |
The %{name}-model package contains a spreadsheet model used by the
|
|
|
a784e9 |
conversion tools.
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
%package devel
|
|
|
a784e9 |
Summary: Development files for %{name}
|
|
|
a784e9 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a784e9 |
|
|
|
a784e9 |
%description devel
|
|
|
a784e9 |
The %{name}-devel package contains libraries and header files for
|
|
|
a784e9 |
developing applications that use %{name}.
|
|
|
a784e9 |
|
|
|
a784e9 |
%package tools
|
|
|
a784e9 |
Summary: Tools for working with %{name}
|
|
|
a784e9 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a784e9 |
|
|
|
a784e9 |
%description tools
|
|
|
a784e9 |
Helper tools for %{name} and converters of various file formats to HTML
|
|
|
a784e9 |
and text.
|
|
|
a784e9 |
|
|
|
a784e9 |
%if %{with python}
|
|
|
a784e9 |
%package python3
|
|
|
a784e9 |
Summary: Python 3 bindings for %{name}
|
|
|
a784e9 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a784e9 |
|
|
|
a784e9 |
%description python3
|
|
|
a784e9 |
Python 3 bindings for %{name}.
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
%package doc
|
|
|
a784e9 |
Summary: API documentation for %{name}
|
|
|
a784e9 |
BuildArch: noarch
|
|
|
a784e9 |
|
|
|
a784e9 |
%description doc
|
|
|
a784e9 |
API documentation for %{name}.
|
|
|
a784e9 |
|
|
|
a784e9 |
%prep
|
|
|
a784e9 |
%autosetup -p1
|
|
|
a784e9 |
|
|
|
a784e9 |
%if %{without convtools}
|
|
|
a784e9 |
%global condopts %{?condopts} --disable-spreadsheet-model
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
%if %{without python}
|
|
|
a784e9 |
%global condopts %{?condopts} --disable-python
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
%build
|
|
|
a784e9 |
%configure --disable-debug --disable-silent-rules --disable-static \
|
|
|
a784e9 |
--disable-werror --with-pic %{?condopts}
|
|
|
a784e9 |
sed -i \
|
|
|
a784e9 |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
a784e9 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
a784e9 |
libtool
|
|
|
a784e9 |
make %{?_smp_mflags}
|
|
|
a784e9 |
|
|
|
a784e9 |
%install
|
|
|
a784e9 |
make install DESTDIR=%{buildroot}
|
|
|
a784e9 |
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{python3_sitearch}/*.la
|
|
|
a784e9 |
|
|
|
a784e9 |
%if %{with convtools}
|
|
|
a784e9 |
# create and install man pages
|
|
|
a784e9 |
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
a784e9 |
help2man -N -S '%{name} %{version}' -n 'convert a CSV file' -o orcus-csv.1 %{buildroot}/usr/bin/orcus-csv
|
|
|
a784e9 |
help2man -N -S '%{name} %{version}' -n 'convert a Gnumeric file' -o orcus-gnumeric.1 %{buildroot}/usr/bin/orcus-gnumeric
|
|
|
a784e9 |
help2man -N -S '%{name} %{version}' -n 'convert an ODF spreadsheet' -o orcus-ods.1 %{buildroot}/usr/bin/orcus-ods
|
|
|
a784e9 |
help2man -N -S '%{name} %{version}' -n 'transform an XML file' -o orcus-xls-xml.1 %{buildroot}/usr/bin/orcus-xls-xml
|
|
|
a784e9 |
help2man -N -S '%{name} %{version}' -n 'convert a OpenXML spreadsheet' -o orcus-xlsx.1 %{buildroot}/usr/bin/orcus-xlsx
|
|
|
a784e9 |
help2man -N -S '%{name} %{version}' -n 'convert an XML file' -o orcus-xml.1 %{buildroot}/usr/bin/orcus-xml
|
|
|
a784e9 |
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
a784e9 |
install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
# build documentation
|
|
|
a784e9 |
make doc-doxygen
|
|
|
a784e9 |
|
|
|
a784e9 |
%check
|
|
|
a784e9 |
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
a784e9 |
make check %{?_smp_mflags}
|
|
|
a784e9 |
|
|
|
a784e9 |
%post -p /sbin/ldconfig
|
|
|
a784e9 |
%postun -p /sbin/ldconfig
|
|
|
a784e9 |
|
|
|
a784e9 |
%if %{with convtools}
|
|
|
a784e9 |
%post model -p /sbin/ldconfig
|
|
|
a784e9 |
%postun model -p /sbin/ldconfig
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
%files
|
|
|
a784e9 |
%doc AUTHORS CHANGELOG
|
|
|
a784e9 |
%license LICENSE
|
|
|
a784e9 |
%{_libdir}/%{name}-%{apiversion}.so.*
|
|
|
a784e9 |
%{_libdir}/%{name}-mso-%{apiversion}.so.*
|
|
|
a784e9 |
%{_libdir}/%{name}-parser-%{apiversion}.so.*
|
|
|
a784e9 |
|
|
|
a784e9 |
%if %{with convtools}
|
|
|
a784e9 |
%files model
|
|
|
a784e9 |
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so.*
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
%files devel
|
|
|
a784e9 |
%{_includedir}/%{name}-%{apiversion}
|
|
|
a784e9 |
%{_libdir}/%{name}-%{apiversion}.so
|
|
|
a784e9 |
%{_libdir}/%{name}-mso-%{apiversion}.so
|
|
|
a784e9 |
%{_libdir}/%{name}-parser-%{apiversion}.so
|
|
|
a784e9 |
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
|
|
|
a784e9 |
%if %{with convtools}
|
|
|
a784e9 |
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so
|
|
|
a784e9 |
%{_libdir}/pkgconfig/%{name}-spreadsheet-model-%{apiversion}.pc
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
%files tools
|
|
|
a784e9 |
%{_bindir}/orcus-css-dump
|
|
|
a784e9 |
%{_bindir}/orcus-detect
|
|
|
a784e9 |
%{_bindir}/orcus-json
|
|
|
a784e9 |
%{_bindir}/orcus-mso-encryption
|
|
|
a784e9 |
%{_bindir}/orcus-xml-dump
|
|
|
a784e9 |
%{_bindir}/orcus-zip-dump
|
|
|
a784e9 |
%{_bindir}/orcus-yaml
|
|
|
a784e9 |
%if %{with convtools}
|
|
|
a784e9 |
%{_bindir}/orcus-csv
|
|
|
a784e9 |
%{_bindir}/orcus-gnumeric
|
|
|
a784e9 |
%{_bindir}/orcus-ods
|
|
|
a784e9 |
%{_bindir}/orcus-xls-xml
|
|
|
a784e9 |
%{_bindir}/orcus-xlsx
|
|
|
a784e9 |
%{_bindir}/orcus-xml
|
|
|
a784e9 |
%{_mandir}/man1/orcus-csv.1*
|
|
|
a784e9 |
%{_mandir}/man1/orcus-gnumeric.1*
|
|
|
a784e9 |
%{_mandir}/man1/orcus-ods.1*
|
|
|
a784e9 |
%{_mandir}/man1/orcus-xls-xml.1*
|
|
|
a784e9 |
%{_mandir}/man1/orcus-xlsx.1*
|
|
|
a784e9 |
%{_mandir}/man1/orcus-xml.1*
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
%if %{with python}
|
|
|
a784e9 |
%files python3
|
|
|
a784e9 |
%{python3_sitearch}/_orcus.so
|
|
|
a784e9 |
%{python3_sitearch}/_orcus_json.so
|
|
|
a784e9 |
%{python3_sitelib}/orcus
|
|
|
a784e9 |
%endif
|
|
|
a784e9 |
|
|
|
a784e9 |
%files doc
|
|
|
a784e9 |
%license LICENSE
|
|
|
a784e9 |
%doc doc/_doxygen/html
|
|
|
a784e9 |
|
|
|
a784e9 |
%changelog
|
|
|
a784e9 |
* Fri Oct 20 2017 David Tardon <dtardon@redhat.com> - 0.12.1-2
|
|
|
a784e9 |
- Related: rhbz#1477101 fix problem found by coverity
|
|
|
a784e9 |
|
|
|
a784e9 |
* Mon Sep 18 2017 David Tardon <dtardon@redhat.com> - 0.12.1-1
|
|
|
a784e9 |
- Resolves: rhbz#1477101 rebase to 0.12.1
|
|
|
a784e9 |
|
|
|
a784e9 |
* Mon May 04 2015 David Tardon <dtardon@redhat.com> - 0.7.0-6
|
|
|
a784e9 |
- Related: rhbz#1207772 add some upstream fixes
|
|
|
a784e9 |
|
|
|
a784e9 |
* Fri Apr 17 2015 David Tardon <dtardon@redhat.com> - 0.7.0-5
|
|
|
a784e9 |
- Resolves: rhbz#1207772 rebase to 0.7.0
|
|
|
a784e9 |
|
|
|
a784e9 |
* Tue Aug 19 2014 David Tardon <dtardon@redhat.com> - 0.5.1-8
|
|
|
a784e9 |
- Resolves: rhbz#1125584 fix build on ppc64le
|
|
|
a784e9 |
|
|
|
a784e9 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.5.1-7
|
|
|
a784e9 |
- Mass rebuild 2014-01-24
|
|
|
a784e9 |
|
|
|
a784e9 |
* Tue Jan 21 2014 David Tardon <dtardon@redhat.com> - 0.5.1-6
|
|
|
a784e9 |
- Resolves: rhbz#1041331 liborcus fails to build for ARM (Aarch64)
|
|
|
a784e9 |
(really this time)
|
|
|
a784e9 |
|
|
|
a784e9 |
* Tue Jan 21 2014 David Tardon <dtardon@redhat.com> - 0.5.1-5
|
|
|
a784e9 |
- Resolves: rhbz#1041331 liborcus fails to build for ARM (Aarch64)
|
|
|
a784e9 |
|
|
|
a784e9 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.1-4
|
|
|
a784e9 |
- Mass rebuild 2013-12-27
|
|
|
a784e9 |
|
|
|
a784e9 |
* Mon Jun 10 2013 David Tardon <dtardon@redhat.com> - 0.5.1-3
|
|
|
a784e9 |
- trivial changes
|
|
|
a784e9 |
|
|
|
a784e9 |
* Tue May 28 2013 David Tardon <dtardon@redhat.com> - 0.5.1-2
|
|
|
a784e9 |
- build orcus-zip-dump too
|
|
|
a784e9 |
|
|
|
a784e9 |
* Mon May 06 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
|
|
|
a784e9 |
- new release
|
|
|
a784e9 |
|
|
|
a784e9 |
* Fri Feb 15 2013 Stephan Bergmannn <sbergman@redhat.com> - 0.3.0-5
|
|
|
a784e9 |
- missing boost include
|
|
|
a784e9 |
|
|
|
a784e9 |
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-4
|
|
|
a784e9 |
- Rebuild for Boost-1.53.0
|
|
|
a784e9 |
|
|
|
a784e9 |
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-3
|
|
|
a784e9 |
- Rebuild for Boost-1.53.0
|
|
|
a784e9 |
|
|
|
a784e9 |
* Sat Dec 08 2012 David Tardon <dtardon@redhat.com> - 0.3.0-2
|
|
|
a784e9 |
- a pointless release bump
|
|
|
a784e9 |
|
|
|
a784e9 |
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-1
|
|
|
a784e9 |
- new release
|
|
|
a784e9 |
|
|
|
a784e9 |
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.1.0-1
|
|
|
a784e9 |
- initial import
|