]>
Commit | Line | Data |
---|---|---|
a91543e1 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
a91543e1 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = mpfr |
4598ee07 | 7 | version = 3.1.0 |
35de29fe MT |
8 | release = 2 |
9 | ||
10 | compat_version = 2.4.2 | |
802ea3af MT |
11 | |
12 | groups = System/Libraries | |
13 | url = http://www.mpfr.org/ | |
14 | license = LGPLv2+ and GPLv2+ and GFDL | |
15 | summary = A C library for multiple-precision floating-point computations. | |
16 | ||
17 | description | |
18 | The MPFR library is a C library for multiple-precision floating-point | |
19 | computations with correct rounding. The MPFR is efficient and | |
20 | also has a well-defined semantics. It copies the good ideas from the | |
21 | ANSI/IEEE-754 standard for double-precision floating-point arithmetic | |
22 | (53-bit mantissa). MPFR is based on the GMP multiple-precision | |
a91543e1 | 23 | library. |
802ea3af MT |
24 | end |
25 | ||
4598ee07 | 26 | source_dl = http://mpfr.loria.fr/mpfr-%{version}/ |
35de29fe | 27 | sources += %{name}-%{compat_version}.tar.bz2 |
802ea3af MT |
28 | |
29 | build | |
30 | requires | |
4598ee07 | 31 | gmp-devel>=4.3.2 |
802ea3af MT |
32 | end |
33 | ||
34 | configure_options += \ | |
35de29fe MT |
35 | --enable-thread-safe \ |
36 | --disable-assert | |
37 | ||
38 | build_cmds | |
39 | ||
40 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
41 | ./configure \ | |
42 | %{configure_options} | |
43 | ||
44 | export LD_LIBRARY_PATH=$(pwd)/.libs | |
45 | make %{PARALLELISMFLAGS} | |
46 | end | |
802ea3af MT |
47 | |
48 | test | |
35de29fe MT |
49 | export LD_LIBRARY_PATH=$(pwd)/.libs |
50 | make check | |
51 | ||
52 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
53 | export LD_LIBRARY_PATH=$(pwd)/.libs | |
802ea3af MT |
54 | make check |
55 | end | |
4598ee07 MT |
56 | |
57 | install_cmds | |
35de29fe | 58 | cd %{DIR_SRC}/%{name}-%{compat_version} |
1609416f MT |
59 | install -m 644 .libs/libmpfr.so.1.2.2 %{BUILDROOT}%{libdir} |
60 | ln -svf libmpfr.so.1.2.2 %{BUILDROOT}%{libdir}/libmpfr.so.1 | |
4598ee07 | 61 | end |
802ea3af MT |
62 | end |
63 | ||
64 | packages | |
65 | package %{name} | |
1f9bc2f0 | 66 | |
802ea3af MT |
67 | package %{name}-devel |
68 | template DEVEL | |
69 | end | |
4598ee07 MT |
70 | |
71 | package %{name}-compat | |
72 | summary = Compat libraries of %{thisapp}. | |
73 | ||
4598ee07 | 74 | files |
1609416f | 75 | %{libdir}/libmpfr.so.1* |
4598ee07 MT |
76 | end |
77 | end | |
1f9bc2f0 MT |
78 | |
79 | package %{name}-debuginfo | |
80 | template DEBUGINFO | |
81 | end | |
802ea3af | 82 | end |