%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
%def_enable spreadsheet-model
%def_with python
Name: liborcus
Version: 0.19.2
Release: alt1
Summary: Standalone file import filter library for spreadsheet documents
Group: System/Libraries
License: MPL-2.0
Url: https://gitlab.com/orcus/orcus
Source: orcus-%version.tar.gz
%define libver 0.18
# Automatically added by buildreq on Thu Jul 25 2013
# optimized out: boost-devel boost-intrusive-devel libstdc++-devel pkg-config
BuildRequires: boost-devel-headers boost-interprocess-devel boost-program_options-devel gcc-c++ zlib-devel boost-filesystem-devel mdds-devel python3-devel libixion-devel
%description
%name is a standalone file import filter library for spreadsheet
documents. Currently under development are ODS, XLSX and CSV import
filters.
%package devel
Summary: Development files for %name
Group: Development/C++
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package tools
Summary: Tools for working with Orcus
Group: Publishing
%description tools
Tools for working with Orcus.
%package -n python3-module-orcus
Summary: Python3 bindings for Orcus
Group:Development/Python3
%description -n python3-module-orcus
Python3 bindings for Orcus
%prep
%setup
%build
%add_optflags -D_FILE_OFFSET_BITS=64
sed -i 's|liborcus_@ORCUS_API_VERSION@_la_LIBADD = |& ../parser/liborcus-parser-@ORCUS_API_VERSION@.la|' src/liborcus/Makefile.am
sed -i 's/liborcus_parser_.*_la_LIBADD = /& $(BOOST_SYSTEM_LIB) /' src/parser/Makefile.am
%autoreconf
# TODO spreadsheet-model requires ixion
%configure \
--disable-debug \
--disable-static \
--disable-werror \
--with-pic \
--with-boost \
--with-boost-system \
%subst_enable spreadsheet-model \
%if_without python
--disable-python \
%endif
#
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
libtool
%make_build V=1
%install
make install DESTDIR=%buildroot
rm -f %buildroot/%_libdir/*.la
ln -s %name-%libver.pc %buildroot%_pkgconfigdir/%name.pc
%files
%doc AUTHORS
%_libdir/%name-*%libver.so.*
%files devel
%_includedir/%name-%libver
%_libdir/%name-*%libver.so
%_libdir/pkgconfig/%{name}*.pc
%files tools
%_bindir/orcus-*
%if_with python
%files -n python3-module-orcus
%python3_sitelibdir/*
%python3_sitelibdir_noarch/*
%endif
%changelog
* Fri Feb 02 2024 Daniel Zagaynov <kotopesutility@altlinux.org> 0.19.2-alt1
- Updated to 0.19.2
* Wed Sep 27 2023 Daniel Zagaynov <kotopesutility@altlinux.org> 0.18.1-alt1
- Updated to 0.18.1
* Mon Jul 17 2023 Artyom Bystrov <arbars@altlinux.org> 0.17.2-alt2
- Fix build on GCC13
* Thu Jan 13 2022 Fr. Br. George <george@altlinux.ru> 0.17.2-alt1
- Autobuild version bump to 0.17.2
- Enable python module
- Add ixion support
* Wed Oct 13 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 0.16.1-alt2
- Fixed build with gcc-11
* Fri Feb 12 2021 Fr. Br. George <george@altlinux.ru> 0.16.1-alt1
- Autobuild version bump to 0.16.1
* Thu Aug 06 2020 Andrey Cherepanov <cas@altlinux.org> 0.15.4-alt1
- NMU: New version needed by LibreOffice 6.4
* Mon Dec 16 2019 Aleksei Nikiforov <darktemplar@altlinux.org> 0.14.1-alt2
- Rebuilt with boost-1.71.0 and mdds-1.5.0.
* Mon Sep 17 2018 Fr. Br. George <george@altlinux.ru> 0.14.1-alt1
- Autobuild version bump to 0.14.1
- Introduce python3 module
* Wed May 23 2018 Fr. Br. George <george@altlinux.ru> 0.13.4-alt1
- Autobuild version bump to 0.13.4
* Tue Feb 20 2018 Fr. Br. George <george@altlinux.ru> 0.13.2-alt1
- Autobuild version bump to 0.13.2
* Mon Sep 04 2017 Fr. Br. George <george@altlinux.ru> 0.13.0-alt1
- Autobuild version bump to 0.13.0
* Mon Jul 31 2017 Fr. Br. George <george@altlinux.ru> 0.12.1-alt2
- Rebuild with new boost
* Mon Oct 17 2016 Fr. Br. George <george@altlinux.ru> 0.12.1-alt1
- Autobuild version bump to 0.12.1
* Mon Jul 11 2016 Fr. Br. George <george@altlinux.ru> 0.11.2-alt1
- Autobuild version bump to 0.11.2
* Thu Mar 10 2016 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.11.0-alt1
- Updated to 0.11.0.
* Mon Sep 21 2015 Gleb F-Malinovskiy <glebfm@altlinux.org> 0.9.2-alt1
- Updated to 0.9.2.
* Sat Jan 03 2015 Ivan A. Melnikov <iv@altlinux.org> 0.7.0-alt2.1
- rebuild with boost 1.57.0
* Sat Jun 07 2014 Alexey Shabalin <shaba@altlinux.ru> 0.7.0-alt2
- build to sisyphus
* Thu Feb 20 2014 Fr. Br. George <george@altlinux.ru> 0.7.0-alt1
- Autobuild version bump to 0.7.0
- Fix build (introduce chrpath hack)
* Thu Jul 25 2013 Fr. Br. George <george@altlinux.ru> 0.5.1-alt1
- Autobuild version bump to 0.5.1
- Fix underlinkage
* Sun Apr 14 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 0.3.0-alt1.qa1
- NMU: rebuilt with libboost_*.so.1.53.0.
* Tue Feb 05 2013 Fr. Br. George <george@altlinux.ru> 0.3.0-alt1
- Initial build from FC
* Sat Dec 08 2012 David Tardon <dtardon@redhat.com> - 0.3.0-2
- a pointless release bump
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-1
- new release
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.1.0-1
- initial import