From fb44557ac26098874e4bac053ac5873d0447c80f Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 17 Mar 2012 06:00:35 +0000 Subject: [PATCH] - new Changed files: ixion.spec -> 1.1 --- ixion.spec | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 ixion.spec diff --git a/ixion.spec b/ixion.spec new file mode 100644 index 0000000..25b0406 --- /dev/null +++ b/ixion.spec @@ -0,0 +1,115 @@ +# +# Conditional build: +%bcond_without static_libs # static library +# +Summary: Generic formula compulation library +Summary(pl.UTF-8): Ogólna biblioteka do obliczania wzorów +Name: ixion +Version: 0.2.0 +Release: 1 +License: MIT +Group: Libraries +Source0: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz +# Source0-md5: 0f63ee487fda8f21fafa767b3c447ac9 +URL: http://kohei.us/2010/06/21/ixion-threaded-formula-calculation-library/ +BuildRequires: boost-devel >= 1.36 +BuildRequires: libstdc++-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Ixion aims to provide a library for calculating the results of formula +expressions stored in multiple named targets, or "cells". The cells +can be referenced from each other, and the library takes care of +resolving their dependencies automatically upon calculation. The +caller can run the calculation routine either in a single-threaded +mode, or a multi-threaded mode. The library also supports +re-calculation where the contents of one or more cells have been +modified since the last calculation, and a partial calculation of only +the affected cells gets performed. It is written entirely in C++, and +makes extensive use of the boost library to achieve portability across +different platforms. + +%description -l pl.UTF-8 +Projekt Ixion ma na celu dostarczenie biblioteki do obliczania wyników +wyrażeń określonych wzorami zapisanymi w wielu nazwanych miejscach - +"komórkach". Komórki mogą odwoływać się do siebie nawzajem, a +biblioteka dba o automatyczne rozwiązywanie ich zależności przy +obliczeniach. Procedura obliczająca może być wywołana w trybie +jednowątkowym lub wielowątkowym. Biblioteka obsługuje także ponowne +przeliczanie w przypadku zmiany zawartości jednej lub większej liczby +komórek od poprzednich obliczeń; wykonywane jest tylko przeliczanie +komórek, których zmiana dotyczy. Biblioteka jest napisana całkowicie w +C++ i intensywnie wykorzystuje bibliotekę boost, aby osiągnąć +przenośność na wiele platform. + +%package devel +Summary: Development files for ixion +Summary(pl.UTF-8): Pliki nagłówkowe dla ixion +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: boost-devel >= 1.36 +Requires: libstdc++-devel + +%description devel +This package contains the header files for developing applications +that use ixion. + +%description devel -l pl.UTF-8 +Pen pakiet zawiera pliki nagłówkowe do tworzenia aplikacji opartych na +ixion. + +%package static +Summary: Static ixion library +Summary(pl.UTF-8): Statyczna biblioteka ixion +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static ixion library. + +%description static -l pl.UTF-8 +Statyczna biblioteka ixion. + +%prep +%setup -q + +%build +%configure \ + %{!?with_static_libs:--disable-static} + +%{__make} + + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +# obsoleted by pkg-config +%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS COPYING ChangeLog README +%attr(755,root,root) %{_bindir}/ixion-parser +%attr(755,root,root) %{_bindir}/ixion-sorter +%attr(755,root,root) %{_libdir}/libixion-0.2.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libixion-0.2.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libixion-0.2.so +%{_includedir}/libixion-0.2 +%{_pkgconfigdir}/ixion-0.2.pc + +%if %{with static_libs} +%files static +%defattr(644,root,root,755) +%{_libdir}/libixion-0.2.a +%endif -- 2.44.0