]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - mpfr/mpfr.nm
mpfr: Make proper compat package (2.4.2).
[people/ms/ipfire-3.x.git] / mpfr / mpfr.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = mpfr
7 version = 3.1.0
8 release = 2
9
10 compat_version = 2.4.2
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://mpfr.loria.fr/mpfr-%{version}/
27 sources += %{name}-%{compat_version}.tar.bz2
28
29 build
30 requires
31 gmp-devel>=4.3.2
32 end
33
34 configure_options += \
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
47
48 test
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
54 make check
55 end
56
57 install_cmds
58 cd %{DIR_SRC}/%{name}-%{compat_version}
59 install -m 644 .libs/libmpfr.so.1.2.2 %{BUILDROOT}/usr/lib/
60 ln -svf libmpfr.so.1.2.2 %{BUILDROOT}/usr/lib/libmpfr.so.1
61 end
62 end
63
64 packages
65 package %{name}
66
67 package %{name}-devel
68 template DEVEL
69 end
70
71 package %{name}-compat
72 summary = Compat libraries of %{thisapp}.
73
74 files
75 /usr/lib/libmpfr.so.1*
76 end
77 end
78 end