libixion/libixion.spec

130 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libixion
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{!?make_build:%global make_build make %{?_smp_mflags}}
%define libname libixion-0_18-0
Name: libixion
Version: 0.19.0
Release: 0
Summary: Threaded multi-target formula parser & interpreter
License: MIT
Accepting request 838360 from home:dirkmueller:branches:LibreOffice:Factory - update to 0.16.1: * fixed a build issue on 32-bit linux platforms, caused by slicing of integer string ID values. * worked around floating point rounding errors which prevented two theoretically-equal numeric values from being evaluated as equal in test code. * added new function to allow printing of single formula tokens. * added method for setting cached results on formula cells in model_context. * changed the model_context design to ensure that all sheets are of the same size. * added an accessor method to formula_model_access interface (and implicitly in model_context) that directly returns a string value from cell. * added cell_access class for querying of cell states without knowing its type ahead of time. * added document class which provides a layer on top of model_context, to abstract away the handling of formula calculations. * deprecated model_context::erase_cell() in favor of empty_cell(). * added support for 3D references - references that contain multiple sheets. * added support for the exponent (^) and concatenation (&) operators. * fixed incorrect handling of range references containing whole columns such as A:A. * added support for unordered range references - range references whose start row or column is greater than their end position counterparts, such as A3:A1. * fixed a bug that prevented nested formula functions from working properly. * implemented Calc A1 style reference resolver. * formula results now directly store the string values when the results are of string type. They previously stored string ID values after interning the original strings. OBS-URL: https://build.opensuse.org/request/show/838360 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libixion?expand=0&rev=35
2020-10-14 08:59:26 +00:00
URL: https://gitlab.com/ixion/ixion
Source: http://kohei.us/files/ixion/src/%{name}-%{version}.tar.xz
Patch0: libixion-boost-system.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: coreutils
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(mdds-2.1)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(spdlog) >= 0.16.0
%if 0%{?suse_version} > 1325
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_system-devel
%else
BuildRequires: boost-devel
BuildRequires: gcc11
BuildRequires: gcc11-c++
%endif
%description
Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells".
%package -n %{libname}
Summary: Threaded multi-target formula parser & interpreter
%description -n %{libname}
Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells".
%package devel
Summary: Threaded multi-target formula parser & interpreter
Requires: %{libname} = %{version}
%description devel
Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells".
%package tools
Summary: Spreadsheet file processing library
Requires: %{libname} = %{version}
%description tools
Tools to use ixion parser and interpreter from cli.
%package -n python3-%{name}
Summary: Python bindings for libixion
Obsoletes: %{name}-python
# Renamed in 15.0
Provides: %{name}-python3 = %{version}
%description -n python3-%{name}
Python 3 bindings for %{name}.
%prep
%setup -q
%patch0 -p1
%build
%global optflags %optflags -fexcess-precision=fast
libtoolize --force --copy
autoreconf -fi
%if 0%{?suse_version} < 1500
export CC=gcc-11
export CXX=g++-11
%endif
%configure \
--disable-silent-rules \
--disable-static \
--disable-vulkan \
--docdir=%{_docdir}/%{name}
%make_build
%check
%make_build check
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license LICENSE
%{_libdir}/*.so.*
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files tools
%{_bindir}/*
%files -n python3-%{name}
%{python3_sitearch}/ixion.so
%changelog