]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - libmpc/libmpc.nm
kernel: Update to 3.13.2.
[people/ms/ipfire-3.x.git] / libmpc / libmpc.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = libmpc
7 version = 1.0
8 release = 1
9 thisapp = mpc-%{version}
10
11 compat_version = 0.9
12
13 groups = System/Libraries
14 url = http://www.multiprecision.org/
15 license = LGPLv2.1+
16 summary = Mpc is a C library for the arithmetic of complex numbers.
17
18 description
19 Mpc is a C library for the arithmetic of complex numbers with
20 arbitrarily high precision and correct rounding of the result.
21 It is built upon and follows the same principles as Mpfr.
22 end
23
24 source_dl = http://www.multiprecision.org/mpc/download/
25 sources += mpc-%{compat_version}.tar.gz
26
27 build
28 requires
29 gmp-devel >= 4.3.2
30 mpfr-devel >= 2.4.2
31 end
32
33 configure_options += \
34 --enable-shared \
35 --disable-static
36
37 build_cmds
38 cd %{DIR_SRC}/mpc-%{compat_version}
39 EGREP=egrep ./configure \
40 %{configure_options}
41
42 make %{PARALLELISMFLAGS}
43 end
44
45 test
46 export LD_LIBRARY_PATH=$(pwd)/src/.libs
47 make check
48
49 cd %{DIR_SRC}/mpc-%{compat_version}
50 export LD_LIBRARY_PATH=$(pwd)/src/.libs
51 make check
52 end
53
54 install_cmds
55 cd %{DIR_SRC}/mpc-%{compat_version}
56 install -m 644 src/.libs/libmpc.so.2.0.0 %{BUILDROOT}%{libdir}
57 ln -svf libmpc.so.2.0.0 %{BUILDROOT}%{libdir}/libmpc.so.2
58 end
59 end
60
61 packages
62 package %{name}
63
64 package %{name}-devel
65 template DEVEL
66 end
67
68 package %{name}-compat
69 summary = Compat libraries of %{thisapp}.
70
71 files
72 %{libdir}/libmpc.so.2*
73 end
74 end
75
76 package %{name}-debuginfo
77 template DEBUGINFO
78 end
79 end