3 %bcond_without static_libs # static library
5 Summary: Generic formula compulation library
6 Summary(pl.UTF-8): Ogólna biblioteka do obliczania wzorów
12 #Source0Download: https://gitlab.com/ixion/ixion
13 Source0: http://kohei.us/files/ixion/src/libixion-%{version}.tar.xz
14 # Source0-md5: d292f6d62847f2305178459390842eac
15 URL: https://gitlab.com/ixion/ixion
16 BuildRequires: autoconf >= 2.63
17 BuildRequires: automake >= 1:1.11
18 BuildRequires: boost-devel >= 1.36
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtool >= 2:2
21 BuildRequires: mdds-devel >= 0.12.0
22 BuildRequires: python >= 1:2.7.0
23 BuildRequires: tar >= 1:1.22
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Ixion aims to provide a library for calculating the results of formula
29 expressions stored in multiple named targets, or "cells". The cells
30 can be referenced from each other, and the library takes care of
31 resolving their dependencies automatically upon calculation. The
32 caller can run the calculation routine either in a single-threaded
33 mode, or a multi-threaded mode. The library also supports
34 re-calculation where the contents of one or more cells have been
35 modified since the last calculation, and a partial calculation of only
36 the affected cells gets performed. It is written entirely in C++, and
37 makes extensive use of the boost library to achieve portability across
40 %description -l pl.UTF-8
41 Projekt Ixion ma na celu dostarczenie biblioteki do obliczania wyników
42 wyrażeń określonych wzorami zapisanymi w wielu nazwanych miejscach -
43 "komórkach". Komórki mogą odwoływać się do siebie nawzajem, a
44 biblioteka dba o automatyczne rozwiązywanie ich zależności przy
45 obliczeniach. Procedura obliczająca może być wywołana w trybie
46 jednowątkowym lub wielowątkowym. Biblioteka obsługuje także ponowne
47 przeliczanie w przypadku zmiany zawartości jednej lub większej liczby
48 komórek od poprzednich obliczeń; wykonywane jest tylko przeliczanie
49 komórek, których zmiana dotyczy. Biblioteka jest napisana całkowicie w
50 C++ i intensywnie wykorzystuje bibliotekę boost, aby osiągnąć
51 przenośność na wiele platform.
54 Summary: Development files for ixion
55 Summary(pl.UTF-8): Pliki nagłówkowe dla ixion
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
58 Requires: boost-devel >= 1.36
59 Requires: libstdc++-devel
60 Requires: mdds-devel >= 0.12.0
63 This package contains the header files for developing applications
66 %description devel -l pl.UTF-8
67 Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na
71 Summary: Static ixion library
72 Summary(pl.UTF-8): Statyczna biblioteka ixion
73 Group: Development/Libraries
74 Requires: %{name}-devel = %{version}-%{release}
79 %description static -l pl.UTF-8
80 Statyczna biblioteka ixion.
82 %package -n python-ixion
83 Summary: Python interface to ixion library
84 Summary(pl.UTF-8): Interfejs Pythona do biblioteki ixion
85 Group: Libraries/Python
86 Requires: %{name} = %{version}-%{release}
88 %description -n python-ixion
89 Python interface to ixion library.
91 %description -n python-ixion -l pl.UTF-8
92 Interfejs Pythona do biblioteki ixion.
95 %setup -q -n libixion-%{version}
103 --disable-silent-rules \
104 %{?with_static_libs:--enable-static}
110 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT
114 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/ixion.la
115 %if %{with static_libs}
116 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/ixion.a
118 # obsoleted by pkg-config
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc AUTHORS COPYING README
130 %attr(755,root,root) %{_bindir}/ixion-parser
131 %attr(755,root,root) %{_bindir}/ixion-sorter
132 %attr(755,root,root) %{_libdir}/libixion-0.10.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libixion-0.10.so.0
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libixion-0.10.so
138 %{_includedir}/libixion-0.10
139 %{_pkgconfigdir}/libixion-0.10.pc
141 %if %{with static_libs}
143 %defattr(644,root,root,755)
144 %{_libdir}/libixion-0.10.a
147 %files -n python-ixion
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{py_sitedir}/ixion.so