]>
Commit | Line | Data |
---|---|---|
ee1f8b9c SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = compat-mpfr | |
7 | version = 2.4.2 | |
8 | release = 1 | |
9 | ||
10 | thisapp = mpfr-%{version} | |
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 | |
23 | library. | |
24 | end | |
25 | ||
26 | source_dl = http://ftp.gnu.org/gnu/mpfr/ | |
27 | ||
28 | build | |
29 | requires | |
30 | gmp-devel >= 4.3.2 | |
31 | gmp-devel < 6.0.0 | |
32 | end | |
33 | ||
34 | configure_options += \ | |
35 | --enable-thread-safe \ | |
36 | --disable-assert | |
37 | ||
38 | test | |
39 | export LD_LIBRARY_PATH=$(pwd)/.libs | |
40 | make check | |
41 | end | |
42 | ||
43 | install | |
44 | # Only install libraries. | |
45 | mkdir -pv %{BUILDROOT}%{libdir} | |
46 | install -m 644 .libs/libmpfr.so.1.2.2 %{BUILDROOT}%{libdir} | |
47 | ln -svf libmpfr.so.1.2.2 %{BUILDROOT}%{libdir}/libmpfr.so.1 | |
48 | end | |
49 | end | |
50 | ||
51 | packages | |
52 | package %{name} | |
53 | provides | |
54 | mpfr = %{thisver} | |
55 | end | |
56 | ||
57 | obsoletes | |
58 | mpfr-compat | |
59 | end | |
60 | ||
61 | conflicts | |
62 | mpfr <= %{thisver} | |
63 | end | |
64 | end | |
65 | ||
66 | package %{name}-debuginfo | |
67 | template DEBUGINFO | |
68 | end | |
69 | end |