SHA256
1
0
forked from pool/libixion
libixion/libixion.spec
Tomáš Chvátal 88e0b8d9a8 - Version bump to 0.9.1:
* various triv bugfixes
  * Build with tests and work this time

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libixion?expand=0&rev=16
2015-04-13 10:47:55 +00:00

114 lines
3.0 KiB
RPMSpec

#
# spec file for package libixion
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define libname libixion-0_10-0
Name: libixion
Version: 0.9.1
Release: 0
Summary: Threaded multi-target formula parser & interpreter
License: MIT
Group: Productivity/Publishing/Word
Url: https://gitlab.com/ixion/ixion
Source: http://kohei.us/files/ixion/src/%{name}-%{version}.tar.xz
BuildRequires: boost-devel
BuildRequires: coreutils
BuildRequires: gcc-c++
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(mdds) >= 0.12.0
BuildRequires: pkgconfig(python2)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
Group: System/Libraries
%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
Group: Development/Libraries/C and C++
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
Group: Productivity/Publishing/Word
Requires: %{libname} = %{version}
%description tools
Tools to use ixion parser and interpreter from cli.
%package python
Summary: Python bindings for libixion
Group: Productivity/Publishing/Word
%description python
Python 2 bindings for %{name}.
%prep
%setup -q
%build
%configure \
--disable-silent-rules \
--disable-static \
--docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%check
make check %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files tools
%defattr(-,root,root)
%{_bindir}/*
%files python
%defattr(-,root,root)
%{python_sitearch}/ixion.so
%changelog