6cd33fc880
* New C++ functions gcd and lcm for mpz_class * New public mpn functions mpn_divexact_1, mpn_zero_p, and mpn_cnd_swap * New public mpq_cmp_z function, to efficiently compare rationals with integers * Support for more 32-bit arm processors * Support for AVX-less modern x86 CPUs * Speedups and bugfixes - Includes gmp-6.0.0-ppc64-gcd.diff, now removed - Update gmp keyring OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=63
128 lines
3.5 KiB
RPMSpec
128 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package gmp
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gmp
|
|
Version: 6.1.0
|
|
Release: 0
|
|
Summary: The GNU MP Library
|
|
License: GPL-3.0+ and LGPL-3.0+
|
|
Group: System/Libraries
|
|
Url: https://gmplib.org/
|
|
Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.bz2
|
|
Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.bz2.sig
|
|
Source2: %{name}.keyring
|
|
Source3: baselibs.conf
|
|
Patch0: gmp-noexec.diff
|
|
BuildRequires: gcc-c++
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
A library for calculating huge numbers (integer and floating point).
|
|
|
|
%package -n libgmp10
|
|
Summary: Shared library for the GNU MP Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libgmp10
|
|
A library for calculating huge numbers (integer and floating point).
|
|
|
|
%package -n libgmpxx4
|
|
Summary: C++ bindings for the GNU MP Library
|
|
Group: System/Libraries
|
|
Requires: libgmp10 >= %{version}
|
|
|
|
%description -n libgmpxx4
|
|
A library for calculating huge numbers (integer and floating point).
|
|
|
|
This package contains C++ bindings
|
|
C++ bindings for the GNU MP Library.
|
|
|
|
%package devel
|
|
Summary: Include Files and Libraries for Development with the GNU MP Library
|
|
Group: Development/Languages/C and C++
|
|
Requires: libgmp10 = %{version}
|
|
Requires: libgmpxx4 = %{version}
|
|
Requires(pre): %{install_info_prereq}
|
|
|
|
%description devel
|
|
These libraries are needed to develop programs which calculate with
|
|
huge numbers (integer and floating point).
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
|
|
%build
|
|
# Do not use %%configure here, that will break build on SLE11 because
|
|
# there we pass a mismatched --target. See bnc#870358.
|
|
export CFLAGS="%{optflags} -fexceptions"
|
|
./configure \
|
|
--host=%{_host} \
|
|
--build=%{_build} \
|
|
--prefix=%{_prefix} \
|
|
--libdir=%{_libdir} \
|
|
--enable-cxx \
|
|
--enable-fat
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
# do not disable "make check", FIX THE BUGS!
|
|
make %{?_smp_mflags} check
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
rm %{buildroot}%{_libdir}/libgmp.la
|
|
rm %{buildroot}%{_libdir}/libgmpxx.la
|
|
rm %{buildroot}%{_libdir}/libgmpxx.a
|
|
|
|
%post -n libgmp10 -p /sbin/ldconfig
|
|
|
|
%post -n libgmpxx4 -p /sbin/ldconfig
|
|
|
|
%post devel
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%postun -n libgmp10 -p /sbin/ldconfig
|
|
|
|
%postun -n libgmpxx4 -p /sbin/ldconfig
|
|
|
|
%postun devel
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%files -n libgmp10
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgmp.so.10*
|
|
|
|
%files -n libgmpxx4
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgmpxx.so.4*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS README NEWS
|
|
%doc demos
|
|
%doc %{_infodir}/gmp.info*.gz
|
|
%{_libdir}/libgmp.a
|
|
%{_libdir}/libgmp.so
|
|
%{_libdir}/libgmpxx.so
|
|
%{_includedir}/gmp.h
|
|
%{_includedir}/gmpxx.h
|
|
|
|
%changelog
|