summaryrefslogtreecommitdiffstats
path: root/misc/libixion.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'misc/libixion.spec.in')
-rw-r--r--misc/libixion.spec.in76
1 files changed, 76 insertions, 0 deletions
diff --git a/misc/libixion.spec.in b/misc/libixion.spec.in
new file mode 100644
index 0000000..fb3fdea
--- /dev/null
+++ b/misc/libixion.spec.in
@@ -0,0 +1,76 @@
+%define _corename libixion
+%define _ver @VERSION@
+%define _pkgname %{_corename}_%{_ver}
+%define _apiver @IXION_API_VERSION@
+%define _libname %{_corename}-%{_apiver}
+
+Name: %{_corename}-0_4-0
+Version: %{_ver}
+Release: 1
+Url: http://gitorious.org/ixion
+License: MIT/X11
+Source: %{_pkgname}.tar.bz2
+Group: Development/Libraries/C and C++
+Summary: Threaded multi-target formula parser & interpreter
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: gcc-c++, libstdc++-devel, pkg-config, coreutils, boost-devel
+BuildRequires: mdds-devel >= 0.5.4
+Requires: boost >= 1.39
+
+%description
+Ixion is a general purpose formula parser & interpreter that can calculate
+multiple named targets, or "cells".
+
+Authors:
+--------
+ Kohei Yoshida <kohei.yoshida@suse.com>
+
+%package devel
+License: MIT/X11
+Group: Development/Libraries/C and C++
+Summary: Threaded multi-target formula parser & interpreter
+
+%description devel
+Ixion is a general purpose formula parser & interpreter that can calculate
+multiple named targets, or "cells".
+
+Authors:
+--------
+ Kohei Yoshida <kohei.yoshida@suse.com>
+
+%prep
+%setup -q -n %{_pkgname}
+
+%build
+./autogen.sh --prefix=/usr --libdir=%_libdir
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+make DESTDIR=$RPM_BUILD_ROOT install
+rm $RPM_BUILD_ROOT%_bindir/ixion-test
+rm $RPM_BUILD_ROOT%_libdir/%{_libname}.a
+rm $RPM_BUILD_ROOT%_libdir/%{_libname}.la
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%{_bindir}/ixion-parser
+%{_bindir}/ixion-sorter
+%{_libdir}/%{_libname}.so.*
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/%{_libname}
+%{_libdir}/%{_libname}.so
+%{_libdir}/pkgconfig/%{_libname}.pc
+
+%changelog
+