Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37047272
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: liborcus

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%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.17.2
Release: alt2
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.17

# 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_ at ORCUS_API_VERSION at _la_LIBADD = |& ../parser/liborcus-parser- at ORCUS_API_VERSION at .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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin