]>
Commit | Line | Data |
---|---|---|
7522e0a0 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
7522e0a0 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = libmpc |
b1c97f06 MT |
7 | version = 1.0 |
8 | release = 1 | |
9 | thisapp = mpc-%{version} | |
10 | ||
11 | compat_version = 0.9 | |
7522e0a0 | 12 | |
802ea3af MT |
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. | |
5ab091a5 | 17 | |
802ea3af | 18 | description |
b1c97f06 MT |
19 | Mpc is a C library for the arithmetic of complex numbers with |
20 | arbitrarily high precision and correct rounding of the result. | |
7522e0a0 | 21 | It is built upon and follows the same principles as Mpfr. |
802ea3af MT |
22 | end |
23 | ||
c01b4a93 | 24 | source_dl = http://www.multiprecision.org/mpc/download/ |
b1c97f06 | 25 | sources += mpc-%{compat_version}.tar.gz |
802ea3af MT |
26 | |
27 | build | |
28 | requires | |
b1c97f06 MT |
29 | gmp-devel >= 4.3.2 |
30 | mpfr-devel >= 2.4.2 | |
802ea3af MT |
31 | end |
32 | ||
b1c97f06 MT |
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 | |
802ea3af MT |
44 | |
45 | test | |
b1c97f06 | 46 | export LD_LIBRARY_PATH=$(pwd)/src/.libs |
802ea3af | 47 | make check |
b1c97f06 MT |
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 | |
802ea3af MT |
58 | end |
59 | end | |
60 | ||
61 | packages | |
62 | package %{name} | |
c01b4a93 | 63 | |
802ea3af MT |
64 | package %{name}-devel |
65 | template DEVEL | |
66 | end | |
1f9bc2f0 | 67 | |
b1c97f06 MT |
68 | package %{name}-compat |
69 | summary = Compat libraries of %{thisapp}. | |
70 | ||
71 | files | |
72 | %{libdir}/libmpc.so.2* | |
73 | end | |
74 | end | |
75 | ||
1f9bc2f0 MT |
76 | package %{name}-debuginfo |
77 | template DEBUGINFO | |
78 | end | |
802ea3af | 79 | end |