2006-12-19 00:16:39 +01:00
|
|
|
#
|
2011-04-19 13:50:39 +02:00
|
|
|
# spec file for package gmp
|
2006-12-19 00:16:39 +01:00
|
|
|
#
|
2021-04-12 09:38:34 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2006-12-19 00:16:39 +01:00
|
|
|
#
|
2008-08-21 17:46:27 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-07-01 12:02:52 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:16:39 +01:00
|
|
|
#
|
|
|
|
|
2012-05-07 11:12:04 +02:00
|
|
|
|
2021-04-12 09:38:34 +02:00
|
|
|
%{!?make_build: %define make_build make %{?_smp_mflags}}
|
2006-12-19 00:16:39 +01:00
|
|
|
Name: gmp
|
2020-12-04 12:04:09 +01:00
|
|
|
Version: 6.2.1
|
2012-01-30 10:16:08 +01:00
|
|
|
Release: 0
|
2019-07-08 09:16:04 +02:00
|
|
|
Summary: A library for calculating huge numbers
|
2021-04-12 09:38:34 +02:00
|
|
|
License: (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
|
2019-07-08 09:16:04 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-01-20 08:56:31 +01:00
|
|
|
URL: https://gmplib.org/
|
2016-06-30 11:03:54 +02:00
|
|
|
Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz.sig
|
2015-02-25 09:09:16 +01:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: baselibs.conf
|
2020-12-09 08:25:26 +01:00
|
|
|
# revert change causing bsc#1179751
|
|
|
|
Patch1: gmp-6.2.1-arm64-invert_limb.patch
|
2021-04-20 15:00:26 +02:00
|
|
|
BuildRequires: fipscheck
|
2015-02-25 09:09:16 +01:00
|
|
|
BuildRequires: gcc-c++
|
2017-02-09 15:20:24 +01:00
|
|
|
BuildRequires: m4
|
2020-01-20 08:56:31 +01:00
|
|
|
BuildRequires: pkgconfig
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%description
|
2019-07-08 09:16:04 +02:00
|
|
|
GMP is a library for arbitrary precision arithmetic, operating on
|
|
|
|
signed integers, rational numbers, and floating-point numbers. There
|
|
|
|
is no practical limit to the precision except the ones implied by the
|
|
|
|
available memory in the machine GMP runs on.
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%package -n libgmp10
|
2019-07-08 09:16:04 +02:00
|
|
|
Summary: A library for calculating huge numbers
|
2021-04-12 09:38:34 +02:00
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
2009-04-23 14:59:42 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%description -n libgmp10
|
2019-07-08 09:16:04 +02:00
|
|
|
GMP is a library for arbitrary precision arithmetic, operating on
|
|
|
|
signed integers, rational numbers, and floating-point numbers.
|
2009-04-23 14:59:42 +02:00
|
|
|
|
|
|
|
%package -n libgmpxx4
|
|
|
|
Summary: C++ bindings for the GNU MP Library
|
2021-04-12 09:38:34 +02:00
|
|
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
2009-04-23 14:59:42 +02:00
|
|
|
Group: System/Libraries
|
2012-12-19 11:11:52 +01:00
|
|
|
Requires: libgmp10 >= %{version}
|
2009-04-23 14:59:42 +02:00
|
|
|
|
|
|
|
%description -n libgmpxx4
|
2019-07-08 09:16:04 +02:00
|
|
|
GMP is a library for arbitrary precision arithmetic, operating on
|
|
|
|
signed integers, rational numbers, and floating-point numbers.
|
2009-04-23 14:59:42 +02:00
|
|
|
|
2019-07-08 09:16:04 +02:00
|
|
|
This package contains C++ bindings for the GNU MP Library.
|
2009-04-23 14:59:42 +02:00
|
|
|
|
2006-12-19 00:16:39 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Include Files and Libraries for Development with the GNU MP Library
|
2021-04-12 09:38:34 +02:00
|
|
|
License: (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
|
2006-12-19 00:16:39 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2010-09-20 16:31:58 +02:00
|
|
|
Requires: libgmp10 = %{version}
|
2009-04-23 14:59:42 +02:00
|
|
|
Requires: libgmpxx4 = %{version}
|
2016-06-24 10:19:01 +02:00
|
|
|
Requires(pre): %{install_info_prereq}
|
2021-04-12 09:38:34 +02:00
|
|
|
Requires(preun):%{install_info_prereq}
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
These libraries are needed to develop programs which calculate with
|
|
|
|
huge numbers (integer and floating point).
|
|
|
|
|
|
|
|
%prep
|
2015-11-02 10:27:02 +01:00
|
|
|
%setup -q
|
2021-04-12 09:38:34 +02:00
|
|
|
%patch1
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%build
|
2015-02-25 09:09:16 +01:00
|
|
|
export CFLAGS="%{optflags} -fexceptions"
|
2016-06-30 11:03:54 +02:00
|
|
|
%configure \
|
2020-01-27 09:48:27 +01:00
|
|
|
--disable-static \
|
2016-06-30 11:03:54 +02:00
|
|
|
--enable-cxx \
|
|
|
|
--enable-fat
|
2021-04-12 09:38:34 +02:00
|
|
|
%make_build
|
2007-12-12 20:13:54 +01:00
|
|
|
|
|
|
|
%check
|
2007-01-15 00:48:10 +01:00
|
|
|
# do not disable "make check", FIX THE BUGS!
|
2021-04-12 09:38:34 +02:00
|
|
|
%make_build check
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%install
|
2020-01-20 08:56:31 +01:00
|
|
|
%make_install
|
2015-02-25 09:09:16 +01:00
|
|
|
rm %{buildroot}%{_libdir}/libgmp.la
|
|
|
|
rm %{buildroot}%{_libdir}/libgmpxx.la
|
2021-04-20 15:00:26 +02:00
|
|
|
export BRP_FIPSHMAC_FILES=%{buildroot}%{_libdir}/libgmp.so.10
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%post -n libgmp10 -p /sbin/ldconfig
|
2009-04-23 14:59:42 +02:00
|
|
|
%post -n libgmpxx4 -p /sbin/ldconfig
|
2010-09-20 16:31:58 +02:00
|
|
|
%postun -n libgmp10 -p /sbin/ldconfig
|
2009-04-23 14:59:42 +02:00
|
|
|
%postun -n libgmpxx4 -p /sbin/ldconfig
|
2021-04-12 09:38:34 +02:00
|
|
|
|
2016-06-30 11:03:54 +02:00
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
|
|
|
|
|
|
|
%preun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2010-09-20 16:31:58 +02:00
|
|
|
%files -n libgmp10
|
2018-02-26 12:10:16 +01:00
|
|
|
%license COPYING*
|
2010-09-20 16:31:58 +02:00
|
|
|
%{_libdir}/libgmp.so.10*
|
2021-04-20 15:00:26 +02:00
|
|
|
%{_libdir}/.libgmp.so.10.hmac
|
2009-04-23 14:59:42 +02:00
|
|
|
|
|
|
|
%files -n libgmpxx4
|
|
|
|
%{_libdir}/libgmpxx.so.4*
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%files devel
|
2009-04-23 14:59:42 +02:00
|
|
|
%doc AUTHORS README NEWS
|
2006-12-19 00:16:39 +01:00
|
|
|
%doc demos
|
2016-06-24 10:19:01 +02:00
|
|
|
%{_infodir}/gmp.info*%{ext_info}
|
2007-12-12 20:13:54 +01:00
|
|
|
%{_libdir}/libgmp.so
|
|
|
|
%{_libdir}/libgmpxx.so
|
2015-02-25 09:09:16 +01:00
|
|
|
%{_includedir}/gmp.h
|
|
|
|
%{_includedir}/gmpxx.h
|
2020-01-20 08:56:31 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2007-05-23 16:19:37 +02:00
|
|
|
%changelog
|