summaryrefslogtreecommitdiffstats
path: root/misc/libixion.spec.in
blob: fb3fdea7878bd04653ea09c714e0d85f22d4b580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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