1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = gmp-%{version}
11 groups = System/Libraries
12 url = http://gmplib.org/
14 summary = A GNU arbitrary precision library.
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.
26 source_dl += https://gmplib.org/download/gmp/ ftp://ftp.gnu.org/gnu/gmp/
27 sources = %{thisapp}.tar.xz
37 if "%{DISTRO_ARCH}" == "x86_64"
41 if "%{DISTRO_ARCH}" == "i686"
45 configure_options += \
51 export LD_LIBRARY_PATH=$(pwd)/.libs
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
74 package %{name}-debuginfo