libixion/libixion.spec

137 lines
4.1 KiB
RPMSpec
Raw Normal View History

%define apiver %(echo %version | cut -d. -f1-2)
Name: libixion
Version: 0.15.0
Release: 1mamba
Summary: A general purpose formula parser and interpreter that can calculate multiple named targets, or “cells”
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gitorious.org/ixion/pages/Home
Source: https://gitlab.com/ixion/ixion.git/%{version}/ixion-%{version}.tar.bz2
#Source: http://kohei.us/files/ixion/src/libixion-%{version}.tar.xz
Patch0: libixion-0.3.0-boost.m4.patch
Patch1: libixion-0.3.0-automake.patch
Patch2: libixion-0.5.0-libboost-1.52.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libboost-devel
BuildRequires: libgcc
BuildRequires: libpython-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libboost-devel >= 1.69.0-2mamba
BuildRequires: libspdlog-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Ixion is a general purpose formula parser & interpreter that can calculate multiple named targets, or “cells”.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: Applications/Publishing
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%debug_package
%prep
%setup -q -n ixion-%{version}
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
# Quick fix for python-3.6
sed -i "s|python3 >= 3.4|python-3.6 >= 3.4|" configure.ac
%build
./autogen.sh
%configure \
PYTHON=%{_bindir}/python3.6 PYTHON_LIBS=%{_libdir}/libpython3.6
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libixion-%{apiver}.so.*
%{_libdir}/python3.6/site-packages/ixion.la
%{_libdir}/python3.6/site-packages/ixion.so
#%{python3_sitearch}/ixion.la
#%{python3_sitearch}/ixion.so
%doc AUTHORS
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libixion-%{apiver}/ixion
%{_includedir}/libixion-%{apiver}/ixion/*.hpp
%dir %{_includedir}/libixion-%{apiver}/ixion/interface
%{_includedir}/libixion-%{apiver}/ixion/interface/*.hpp
%{_libdir}/libixion-%{apiver}.la
%{_libdir}/libixion-%{apiver}.so
%{_libdir}/pkgconfig/libixion-%{apiver}.pc
#%doc README
%files tools
%defattr(-,root,root)
%{_bindir}/ixion-parser
%{_bindir}/ixion-sorter
%{_bindir}/ixion-formula-tokenizer
#%{_bindir}/ixion-test
%changelog
* Sat Feb 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.15.0-1mamba
- update to 0.15.0
* Tue Feb 12 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.14.1-2mamba
- rebuilt with libboost 1.69.0-2mamba
* Sat Jan 26 2019 Automatic Build System <autodist@mambasoft.it> 0.14.1-1mamba
- automatic version update by autodist
* Sun May 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13.0-1mamba
- update to 0.13.0
* Fri Sep 15 2017 Automatic Build System <autodist@mambasoft.it> 0.12.2-1mamba
- automatic version update by autodist
* Wed Jun 29 2016 Automatic Build System <autodist@mambasoft.it> 0.11.1-1mamba
- automatic version update by autodist
* Sun Jan 24 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1-2mamba
- rebuilt with libboost 1.59
* Tue Aug 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1-1mamba
- update to 0.9.1
* Sun Jul 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-1mamba
- update to 0.7.0
* Tue Feb 12 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0.git20130212-1mamba
- update to 0.3.0.git20130212
* Tue Feb 12 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-1mamba
- package created by silvan using the webbuild interface