5 License: GPL-2.0 and LGPL-3.0+
6 Summary: The GNU MP Library
7 Url: http://gmplib.org/
9 Source: %{name}-%{version}.tar.bz2
10 Source2: baselibs.conf
11 Source1001: gmp.manifest
12 BuildRequires: gcc-c++
13 BuildRequires: pkg-config
16 A library for calculating huge numbers (integer and floating point).
19 Summary: Shared library for the GNU MP Library
22 %description -n libgmp
23 Shared library for the GNU MP Library.
26 Summary: C++ bindings for the GNU MP Library
28 Requires: libgmp = %{version}
30 %description -n libgmpxx
31 C++ bindings for the GNU MP Library.
34 Summary: Include Files and Libraries for Development with the GNU MP Library
35 Group: Base/Development
36 Requires: libgmp = %{version}
37 Requires: libgmpxx = %{version}
40 These libraries are needed to develop programs which calculate with
41 huge numbers (integer and floating point).
48 export CFLAGS="%{optflags} -fexceptions";
54 # do not disable "make check", FIX THE BUGS!
60 %post -n libgmp -p /sbin/ldconfig
62 %post -n libgmpxx -p /sbin/ldconfig
64 %postun -n libgmp -p /sbin/ldconfig
66 %postun -n libgmpxx -p /sbin/ldconfig
69 %manifest %{name}.manifest
71 %doc AUTHORS README NEWS
74 %manifest %{name}.manifest
76 %{_libdir}/libgmp.so.10*
79 %manifest %{name}.manifest
81 %{_libdir}/libgmpxx.so.4*
84 %manifest %{name}.manifest
86 %doc AUTHORS README NEWS
87 %doc %{_infodir}/gmp.info*.gz
91 %{_libdir}/libgmpxx.so
92 %{_libdir}/pkgconfig/gmp.pc