2013-03-26 17:52:35 +01:00
|
|
|
#
|
2013-04-20 13:45:05 +02:00
|
|
|
# spec file for package libixion
|
2013-03-26 17:52:35 +01:00
|
|
|
#
|
2017-02-01 13:59:50 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-03-26 17:52:35 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-12-03 14:46:36 +01:00
|
|
|
%define libname libixion-0_12-0
|
2013-03-26 18:12:22 +01:00
|
|
|
Name: libixion
|
2016-12-03 14:46:36 +01:00
|
|
|
Version: 0.12.1
|
2013-03-26 17:52:35 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Threaded multi-target formula parser & interpreter
|
2013-05-15 13:45:20 +02:00
|
|
|
License: MIT
|
2013-03-26 18:12:22 +01:00
|
|
|
Group: Productivity/Publishing/Word
|
2015-03-24 11:10:04 +01:00
|
|
|
Url: https://gitlab.com/ixion/ixion
|
|
|
|
Source: http://kohei.us/files/ixion/src/%{name}-%{version}.tar.xz
|
2017-02-01 13:59:50 +01:00
|
|
|
%if 0%{?suse_version} > 1325
|
|
|
|
BuildRequires: libboost_program_options-devel
|
|
|
|
BuildRequires: libboost_thread-devel
|
|
|
|
%else
|
2014-01-25 22:15:56 +01:00
|
|
|
BuildRequires: boost-devel
|
2017-02-01 13:59:50 +01:00
|
|
|
%endif
|
2013-03-26 17:52:35 +01:00
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2016-05-25 13:55:58 +02:00
|
|
|
BuildRequires: pkgconfig(mdds-1.2)
|
2016-03-07 13:43:39 +01:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2013-03-26 17:52:35 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Ixion is a general purpose formula parser & interpreter that can calculate
|
|
|
|
multiple named targets, or "cells".
|
|
|
|
|
2013-03-26 18:12:22 +01:00
|
|
|
%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".
|
|
|
|
|
2013-03-26 17:52:35 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Threaded multi-target formula parser & interpreter
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-01-25 22:15:56 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2013-03-26 17:52:35 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Ixion is a general purpose formula parser & interpreter that can calculate
|
|
|
|
multiple named targets, or "cells".
|
|
|
|
|
2013-03-26 18:12:22 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Spreadsheet file processing library
|
|
|
|
Group: Productivity/Publishing/Word
|
2014-01-25 22:15:56 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2013-03-26 18:12:22 +01:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools to use ixion parser and interpreter from cli.
|
|
|
|
|
2016-03-07 13:43:39 +01:00
|
|
|
%package python3
|
2015-03-24 11:10:04 +01:00
|
|
|
Summary: Python bindings for libixion
|
|
|
|
Group: Productivity/Publishing/Word
|
2016-03-07 13:43:39 +01:00
|
|
|
Obsoletes: %{name}-python
|
2015-03-24 11:10:04 +01:00
|
|
|
|
2016-03-07 13:43:39 +01:00
|
|
|
%description python3
|
|
|
|
Python 3 bindings for %{name}.
|
2015-03-24 11:10:04 +01:00
|
|
|
|
2013-03-26 17:52:35 +01:00
|
|
|
%prep
|
2013-03-26 18:12:22 +01:00
|
|
|
%setup -q
|
2013-03-26 17:52:35 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2015-03-24 11:10:04 +01:00
|
|
|
--disable-silent-rules \
|
2013-03-26 18:12:22 +01:00
|
|
|
--disable-static \
|
2014-01-25 22:15:56 +01:00
|
|
|
--docdir=%{_docdir}/%{name}
|
2015-03-24 11:10:04 +01:00
|
|
|
make %{?_smp_mflags}
|
2013-03-26 17:52:35 +01:00
|
|
|
|
|
|
|
%check
|
2015-04-13 12:47:55 +02:00
|
|
|
make check %{?_smp_mflags}
|
2013-03-26 17:52:35 +01:00
|
|
|
|
|
|
|
%install
|
2016-03-07 13:43:39 +01:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2014-01-25 22:15:56 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2013-03-26 17:52:35 +01:00
|
|
|
|
2013-03-26 18:12:22 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2013-03-26 17:52:35 +01:00
|
|
|
|
2013-03-26 18:12:22 +01:00
|
|
|
%files -n %{libname}
|
2013-03-26 17:52:35 +01:00
|
|
|
%defattr(-,root,root)
|
2013-03-26 18:12:22 +01:00
|
|
|
%{_libdir}/*.so.*
|
2013-03-26 17:52:35 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2013-03-26 18:12:22 +01:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
2013-03-26 17:52:35 +01:00
|
|
|
|
2016-03-07 13:43:39 +01:00
|
|
|
%files python3
|
2015-03-24 11:10:04 +01:00
|
|
|
%defattr(-,root,root)
|
2016-03-07 13:43:39 +01:00
|
|
|
%{python3_sitearch}/ixion.so
|
2015-03-24 11:10:04 +01:00
|
|
|
|
2013-03-26 17:52:35 +01:00
|
|
|
%changelog
|