]>
Commit | Line | Data |
---|---|---|
58608bd4 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
58608bd4 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = gmp |
7 | version = 5.0.1 | |
ed91fe31 | 8 | release = 1 |
58608bd4 | 9 | |
802ea3af MT |
10 | groups = System/Libraries |
11 | url = http://gmplib.org/ | |
12 | license = LGPLv3+ | |
13 | summary = A GNU arbitrary precision library. | |
58608bd4 | 14 | |
802ea3af | 15 | description |
58608bd4 MT |
16 | The gmp package contains GNU MP, a library for arbitrary precision \ |
17 | arithmetic, signed integers operations, rational numbers and floating \ | |
18 | point numbers. GNU MP is designed for speed, for both small and very \ | |
19 | large operands. GNU MP is fast because it uses fullwords as the basic \ | |
20 | arithmetic type, it uses fast algorithms, it carefully optimizes \ | |
21 | assembly code for many CPUs' most common inner loops, and it generally \ | |
22 | emphasizes speed over simplicity/elegance in its operations. | |
802ea3af | 23 | end |
58608bd4 | 24 | |
ed91fe31 | 25 | source_dl = ftp://ftp.gmplib.org/pub/%{thisapp}/ |
802ea3af | 26 | sources = %{thisapp}.tar.bz2 |
64dc7375 | 27 | |
802ea3af MT |
28 | build |
29 | requires | |
30 | gcc-c++ | |
31 | m4 | |
32 | end | |
64dc7375 | 33 | |
ed91fe31 MT |
34 | ABI = standard |
35 | ||
36 | if "%{DISTRO_ARCH}" == "x86_64" | |
37 | ABI = 64 | |
38 | end | |
58608bd4 | 39 | |
ed91fe31 MT |
40 | if "%{DISTRO_ARCH}" == "i686" |
41 | ABI = 32 | |
42 | end | |
43 | ||
44 | build | |
802ea3af | 45 | ABI=%{ABI} \ |
58608bd4 | 46 | ./configure \ |
58608bd4 MT |
47 | --prefix=/usr \ |
48 | --enable-cxx \ | |
49 | --enable-mpbsd \ | |
50 | --disable-static | |
51 | ||
802ea3af MT |
52 | make %{PARALLELISMFLAGS} |
53 | end | |
54 | ||
55 | test | |
56 | make check | |
57 | end | |
58 | end | |
59 | ||
60 | packages | |
61 | package %{name} | |
62 | end | |
63 | ||
64 | package %{name}-devel | |
65 | template DEVEL | |
66 | end | |
67 | end |