|
|
@ -1,49 +1,34 @@
|
|
|
|
%global apiversion 0.16
|
|
|
|
%global apiversion 0.15
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# build conversion tools
|
|
|
|
# build conversion tools
|
|
|
|
%bcond_with convtools
|
|
|
|
%bcond_with convtools
|
|
|
|
# build python3 bindings
|
|
|
|
# build python3 bindings
|
|
|
|
%bcond_with python
|
|
|
|
%bcond_with python
|
|
|
|
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
# build conversion tools
|
|
|
|
|
|
|
|
%bcond_without convtools
|
|
|
|
|
|
|
|
# build python3 bindings
|
|
|
|
|
|
|
|
%bcond_without python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: liborcus
|
|
|
|
Name: liborcus
|
|
|
|
Version: 0.16.1
|
|
|
|
Version: 0.15.4
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Standalone file import filter library for spreadsheet documents
|
|
|
|
Summary: Standalone file import filter library for spreadsheet documents
|
|
|
|
|
|
|
|
|
|
|
|
License: MPLv2.0
|
|
|
|
License: MPLv2.0
|
|
|
|
URL: https://gitlab.com/orcus/orcus
|
|
|
|
URL: https://gitlab.com/orcus/orcus
|
|
|
|
Source0: https://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz
|
|
|
|
Source0: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz
|
|
|
|
Patch0: %{name}-gcc11.patch
|
|
|
|
|
|
|
|
Patch1: liborcus-noexamples.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: automake
|
|
|
|
|
|
|
|
%if %{with convtools}
|
|
|
|
%if %{with convtools}
|
|
|
|
BuildRequires: help2man
|
|
|
|
BuildRequires: help2man
|
|
|
|
BuildRequires: pkgconfig(libixion-0.16)
|
|
|
|
BuildRequires: pkgconfig(libixion-0.15)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(mdds-1.5)
|
|
|
|
BuildRequires: pkgconfig(mdds-1.5)
|
|
|
|
%if %{with python}
|
|
|
|
%if %{with python}
|
|
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: liborcus-noexamples.patch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
%{name} is a standalone file import filter library for spreadsheet
|
|
|
|
%{name} is a standalone file import filter library for spreadsheet
|
|
|
|
documents. Currently under development are ODS, XLSX and CSV import
|
|
|
|
documents. Currently under development are ODS, XLSX and CSV import
|
|
|
@ -102,28 +87,27 @@ API documentation for %{name}.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
autoreconf
|
|
|
|
|
|
|
|
%configure --disable-debug --disable-silent-rules --disable-static \
|
|
|
|
%configure --disable-debug --disable-silent-rules --disable-static \
|
|
|
|
--disable-werror --with-pic %{?condopts}
|
|
|
|
--disable-werror --with-pic %{?condopts}
|
|
|
|
sed -i \
|
|
|
|
sed -i \
|
|
|
|
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
|
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
|
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
|
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
|
libtool
|
|
|
|
libtool
|
|
|
|
%make_build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{python3_sitearch}/*.la
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{python3_sitearch}/*.la
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with convtools}
|
|
|
|
%if %{with convtools}
|
|
|
|
# create and install man pages
|
|
|
|
# create and install man pages
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert a CSV file' -o orcus-csv.1 %{buildroot}%{_bindir}/orcus-csv
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert a CSV file' -o orcus-csv.1 %{buildroot}/usr/bin/orcus-csv
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert a Gnumeric file' -o orcus-gnumeric.1 %{buildroot}%{_bindir}/orcus-gnumeric
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert a Gnumeric file' -o orcus-gnumeric.1 %{buildroot}/usr/bin/orcus-gnumeric
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert an ODF spreadsheet' -o orcus-ods.1 %{buildroot}%{_bindir}/orcus-ods
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert an ODF spreadsheet' -o orcus-ods.1 %{buildroot}/usr/bin/orcus-ods
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'transform an XML file' -o orcus-xls-xml.1 %{buildroot}%{_bindir}/orcus-xls-xml
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'transform an XML file' -o orcus-xls-xml.1 %{buildroot}/usr/bin/orcus-xls-xml
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert a OpenXML spreadsheet' -o orcus-xlsx.1 %{buildroot}%{_bindir}/orcus-xlsx
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert a OpenXML spreadsheet' -o orcus-xlsx.1 %{buildroot}/usr/bin/orcus-xlsx
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert an XML file' -o orcus-xml.1 %{buildroot}%{_bindir}/orcus-xml
|
|
|
|
help2man -N -S '%{name} %{version}' -n 'convert an XML file' -o orcus-xml.1 %{buildroot}/usr/bin/orcus-xml
|
|
|
|
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
|
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
|
install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -135,10 +119,12 @@ make doc-doxygen
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with convtools}
|
|
|
|
%if %{with convtools}
|
|
|
|
%ldconfig_scriptlets model
|
|
|
|
%post model -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun model -p /sbin/ldconfig
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
@ -199,94 +185,17 @@ make check %{?_smp_mflags}
|
|
|
|
%doc doc/_doxygen/html
|
|
|
|
%doc doc/_doxygen/html
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.16.1-8
|
|
|
|
* Sun Oct 25 2020 Caolán McNamara <caolanm@redhat.com> - 0.15.4-2
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Related: rhbz#1881132 update to 0.15.4
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.16.1-7
|
|
|
|
* Thu Oct 22 2020 Caolán McNamara <caolanm@redhat.com> - 0.15.4-1
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Resolves: rhbz#1881132 update to 0.15.4
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-6
|
|
|
|
* Fri Mar 13 2020 Caolán McNamara <caolanm@redhat.com> - 0.14.1-1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Related: rhbz#1796893 update to 0.14.1
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 0.16.1-5
|
|
|
|
* Wed Jun 06 2018 David Tardon <dtardon@redhat.com> - 0.13.4-2
|
|
|
|
- Rebuilt for Boost 1.75
|
|
|
|
- drop dependency on libixion
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Dec 08 2020 Caolán McNamara <caolanm@redhat.com> - 0.16.1-4
|
|
|
|
|
|
|
|
- fix build without libixion under rhel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Dec 02 2020 Caolán McNamara <caolanm@redhat.com> - 0.16.1-3
|
|
|
|
|
|
|
|
- build without libixion under rhel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 19 2020 Jeff Law <law@redhat.com> - 0.16.1-2
|
|
|
|
|
|
|
|
- Fix missing headers for gcc-11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Sep 29 2020 Caolán McNamara <caolanm@redhat.com> - 0.16.1-1
|
|
|
|
|
|
|
|
- latest release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 25 2020 Caolán McNamara <caolanm@redhat.com> - 0.16.0-3
|
|
|
|
|
|
|
|
- reenable make check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 25 2020 Caolán McNamara <caolanm@redhat.com> - 0.16.0-2
|
|
|
|
|
|
|
|
- replace -DSIZEOF_VOID_P=4 with upstream solution
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 24 2020 Caolán McNamara <caolanm@redhat.com> - 0.16.0-1
|
|
|
|
|
|
|
|
- latest release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.3-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 0.15.3-5
|
|
|
|
|
|
|
|
- Use make macros
|
|
|
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 28 2020 Jonathan Wakely <jwakely@redhat.com> - 0.15.3-4
|
|
|
|
|
|
|
|
- Rebuilt for Boost 1.73
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.15.3-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Nov 02 2019 David Tardon <dtardon@redhat.com> - 0.15.3-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.2-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 29 2019 Caolán McNamara <caolanm@redhat.com> - 0.15.2-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 20 2019 Caolán McNamara <caolanm@redhat.com> - 0.15.0-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-6
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 05 2019 Stephan Bergmann <sbergman@redhat.com> - 0.14.1-4
|
|
|
|
|
|
|
|
- Replace hard-coded /usr/bin with _bindir macro for flatpak build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 0.14.1-2
|
|
|
|
|
|
|
|
- Rebuilt for Boost 1.69
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 26 2018 David Tardon <dtardon@redhat.com> - 0.14.1-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Sep 02 2018 David Tardon <dtardon@redhat.com> - 0.14.0-1
|
|
|
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.4-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 28 2018 David Tardon <dtardon@redhat.com> - 0.13.4-1
|
|
|
|
* Wed Feb 28 2018 David Tardon <dtardon@redhat.com> - 0.13.4-1
|
|
|
|
- new upstream release
|
|
|
|
- new upstream release
|