]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - compat-gmp/compat-gmp.nm
tzdata: Update to 2014j
[people/ms/ipfire-3.x.git] / compat-gmp / compat-gmp.nm
CommitLineData
bef9b7be
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = compat-gmp
7version = 4.3.2
8release = 1
9thisapp = gmp-%{version}
10
11groups = System/Libraries
12url = http://gmplib.org/
13license = LGPLv3+
14summary = A GNU arbitrary precision library.
15
16description
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.
24end
25
26source_dl += https://gmplib.org/download/gmp/ ftp://ftp.gnu.org/gnu/gmp/
27sources = %{thisapp}.tar.xz
28
29build
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
61end
62
63packages
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
77end