SHA256
1
0
forked from pool/gmp

Accepting request 887008 from devel:libraries:c_c++

Please stage with brp-check-suse (Staging:B)

- Compute FIPS hmac for libgmp.so.10 [bsc#1184555]

- do not break SLE 12 build when applying spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/887008
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gmp?expand=0&rev=58
This commit is contained in:
Dominique Leuenberger 2021-04-23 15:49:35 +00:00 committed by Git OBS Bridge
commit 9ec5f700b8
2 changed files with 24 additions and 9 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Apr 20 12:59:35 UTC 2021 - Richard Biener <rguenther@suse.com>
- Compute FIPS hmac for libgmp.so.10 [bsc#1184555]
-------------------------------------------------------------------
Sat Apr 10 12:05:09 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
- do not break SLE 12 build when applying spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 9 07:24:19 UTC 2020 - Richard Biener <rguenther@suse.com> Wed Dec 9 07:24:19 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package gmp # spec file for package gmp
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,11 +16,12 @@
# #
%{!?make_build: %define make_build make %{?_smp_mflags}}
Name: gmp Name: gmp
Version: 6.2.1 Version: 6.2.1
Release: 0 Release: 0
Summary: A library for calculating huge numbers Summary: A library for calculating huge numbers
License: GPL-3.0-or-later AND (LGPL-3.0-or-later OR GPL-2.0-or-later) License: (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: https://gmplib.org/ URL: https://gmplib.org/
Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz Source0: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz
@ -29,6 +30,7 @@ Source2: %{name}.keyring
Source3: baselibs.conf Source3: baselibs.conf
# revert change causing bsc#1179751 # revert change causing bsc#1179751
Patch1: gmp-6.2.1-arm64-invert_limb.patch Patch1: gmp-6.2.1-arm64-invert_limb.patch
BuildRequires: fipscheck
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: m4 BuildRequires: m4
BuildRequires: pkgconfig BuildRequires: pkgconfig
@ -41,7 +43,7 @@ available memory in the machine GMP runs on.
%package -n libgmp10 %package -n libgmp10
Summary: A library for calculating huge numbers Summary: A library for calculating huge numbers
License: LGPL-3.0-or-later OR GPL-2.0-or-later License: GPL-2.0-or-later OR LGPL-3.0-or-later
Group: System/Libraries Group: System/Libraries
%description -n libgmp10 %description -n libgmp10
@ -50,7 +52,7 @@ signed integers, rational numbers, and floating-point numbers.
%package -n libgmpxx4 %package -n libgmpxx4
Summary: C++ bindings for the GNU MP Library Summary: C++ bindings for the GNU MP Library
License: LGPL-3.0-or-later OR GPL-2.0-or-later License: GPL-2.0-or-later OR LGPL-3.0-or-later
Group: System/Libraries Group: System/Libraries
Requires: libgmp10 >= %{version} Requires: libgmp10 >= %{version}
@ -62,12 +64,12 @@ This package contains C++ bindings for the GNU MP Library.
%package devel %package devel
Summary: Include Files and Libraries for Development with the GNU MP Library Summary: Include Files and Libraries for Development with the GNU MP Library
License: GPL-3.0-or-later AND (LGPL-3.0-or-later OR GPL-2.0-or-later) License: (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: libgmp10 = %{version} Requires: libgmp10 = %{version}
Requires: libgmpxx4 = %{version} Requires: libgmpxx4 = %{version}
Requires(pre): %{install_info_prereq} Requires(pre): %{install_info_prereq}
Requires(preun): %{install_info_prereq} Requires(preun):%{install_info_prereq}
%description devel %description devel
These libraries are needed to develop programs which calculate with These libraries are needed to develop programs which calculate with
@ -75,7 +77,7 @@ huge numbers (integer and floating point).
%prep %prep
%setup -q %setup -q
%patch1 -p0 %patch1
%build %build
export CFLAGS="%{optflags} -fexceptions" export CFLAGS="%{optflags} -fexceptions"
@ -83,21 +85,23 @@ export CFLAGS="%{optflags} -fexceptions"
--disable-static \ --disable-static \
--enable-cxx \ --enable-cxx \
--enable-fat --enable-fat
make %{?_smp_mflags} %make_build
%check %check
# do not disable "make check", FIX THE BUGS! # do not disable "make check", FIX THE BUGS!
make %{?_smp_mflags} check %make_build check
%install %install
%make_install %make_install
rm %{buildroot}%{_libdir}/libgmp.la rm %{buildroot}%{_libdir}/libgmp.la
rm %{buildroot}%{_libdir}/libgmpxx.la rm %{buildroot}%{_libdir}/libgmpxx.la
export BRP_FIPSHMAC_FILES=%{buildroot}%{_libdir}/libgmp.so.10
%post -n libgmp10 -p /sbin/ldconfig %post -n libgmp10 -p /sbin/ldconfig
%post -n libgmpxx4 -p /sbin/ldconfig %post -n libgmpxx4 -p /sbin/ldconfig
%postun -n libgmp10 -p /sbin/ldconfig %postun -n libgmp10 -p /sbin/ldconfig
%postun -n libgmpxx4 -p /sbin/ldconfig %postun -n libgmpxx4 -p /sbin/ldconfig
%post devel %post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
@ -107,6 +111,7 @@ rm %{buildroot}%{_libdir}/libgmpxx.la
%files -n libgmp10 %files -n libgmp10
%license COPYING* %license COPYING*
%{_libdir}/libgmp.so.10* %{_libdir}/libgmp.so.10*
%{_libdir}/.libgmp.so.10.hmac
%files -n libgmpxx4 %files -n libgmpxx4
%{_libdir}/libgmpxx.so.4* %{_libdir}/libgmpxx.so.4*