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