]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - compat-gmp/compat-gmp.nm
tzdata: Update to 2014j
[people/ms/ipfire-3.x.git] / compat-gmp / compat-gmp.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = compat-gmp
7 version = 4.3.2
8 release = 1
9 thisapp = gmp-%{version}
10
11 groups = System/Libraries
12 url = http://gmplib.org/
13 license = LGPLv3+
14 summary = A GNU arbitrary precision library.
15
16 description
17 The gmp package contains GNU MP, a library for arbitrary precision
18 arithmetic, signed integers operations, rational numbers and floating
19 point numbers. GNU MP is designed for speed, for both small and very
20 large operands. GNU MP is fast because it uses fullwords as the basic
21 arithmetic type, it uses fast algorithms, it carefully optimizes
22 assembly code for many CPUs' most common inner loops, and it generally
23 emphasizes speed over simplicity/elegance in its operations.
24 end
25
26 source_dl += https://gmplib.org/download/gmp/ ftp://ftp.gnu.org/gnu/gmp/
27 sources = %{thisapp}.tar.xz
28
29 build
30 requires
31 gcc-c++
32 m4
33 end
34
35 export ABI = standard
36
37 if "%{DISTRO_ARCH}" == "x86_64"
38 ABI = 64
39 end
40
41 if "%{DISTRO_ARCH}" == "i686"
42 ABI = 32
43 end
44
45 configure_options += \
46 --enable-cxx \
47 --enable-mpbsd \
48 --disable-static
49
50 test
51 export LD_LIBRARY_PATH=$(pwd)/.libs
52 make check
53 end
54
55 install
56 # Install just the library and no headers.
57 mkdir -pv %{BUILDROOT}%{libdir}
58 install -m 644 .libs/libgmp.so.3.5.2 %{BUILDROOT}%{libdir}
59 ln -svf libgmp.so.3.5.2 %{BUILDROOT}%{libdir}/libgmp.so.3
60 end
61 end
62
63 packages
64 package %{name}
65 provides
66 gmp = %{thisver}
67 end
68
69 obsoletes
70 gmp <= %{thisver}
71 end
72 end
73
74 package %{name}-debuginfo
75 template DEBUGINFO
76 end
77 end