Accepting request 765689 from devel:libraries:c_c++
GMP 6.2.0 (forwarded request 765643 from AndreasStieger) OBS-URL: https://build.opensuse.org/request/show/765689 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gmp?expand=0&rev=53
This commit is contained in:
commit
836361f434
@ -1,13 +0,0 @@
|
|||||||
diff --git a/configure b/configure
|
|
||||||
index 12ddffd..a7890ed 100755
|
|
||||||
--- a/configure
|
|
||||||
+++ b/configure
|
|
||||||
@@ -24563,7 +24563,7 @@ struct foo foo = {
|
|
||||||
{ '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
|
|
||||||
};
|
|
||||||
EOF
|
|
||||||
-gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
|
|
||||||
+gmp_compile="$CC $CFLAGS $CPPFLAGS -fno-lto -c conftest.c >&5 2>&1"
|
|
||||||
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
|
|
||||||
(eval $gmp_compile) 2>&5
|
|
||||||
ac_status=$?
|
|
@ -1,31 +0,0 @@
|
|||||||
--- acinclude.m4.orig 2017-01-04 11:40:34.672561902 +0100
|
|
||||||
+++ acinclude.m4 2017-01-04 11:40:42.324648573 +0100
|
|
||||||
@@ -741,7 +741,7 @@
|
|
||||||
long i;
|
|
||||||
for (i = 0; i < 88 + 1; i++)
|
|
||||||
a[i] = ~0L;
|
|
||||||
- r = malloc (10000 * sizeof (unsigned long));
|
|
||||||
+ r = calloc (10000, sizeof (unsigned long));
|
|
||||||
r2 = r;
|
|
||||||
for (i = 0; i < 528; i += 23)
|
|
||||||
{
|
|
||||||
--- configure.orig 2017-01-04 11:42:54.678147652 +0100
|
|
||||||
+++ configure 2017-01-04 11:46:36.468659624 +0100
|
|
||||||
@@ -6776,7 +6776,7 @@
|
|
||||||
long i;
|
|
||||||
for (i = 0; i < 88 + 1; i++)
|
|
||||||
a[i] = ~0L;
|
|
||||||
- r = malloc (10000 * sizeof (unsigned long));
|
|
||||||
+ r = calloc (10000, sizeof (unsigned long));
|
|
||||||
r2 = r;
|
|
||||||
for (i = 0; i < 528; i += 23)
|
|
||||||
{
|
|
||||||
@@ -8394,7 +8394,7 @@
|
|
||||||
long i;
|
|
||||||
for (i = 0; i < 88 + 1; i++)
|
|
||||||
a[i] = ~0L;
|
|
||||||
- r = malloc (10000 * sizeof (unsigned long));
|
|
||||||
+ r = calloc (10000, sizeof (unsigned long));
|
|
||||||
r2 = r;
|
|
||||||
for (i = 0; i < 528; i += 23)
|
|
||||||
{
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912
|
|
||||||
size 1946336
|
|
Binary file not shown.
3
gmp-6.2.0.tar.xz
Normal file
3
gmp-6.2.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:258e6cd51b3fbdfc185c716d55f82c08aff57df0c6fbd143cf6ed561267a1526
|
||||||
|
size 2012444
|
BIN
gmp-6.2.0.tar.xz.sig
Normal file
BIN
gmp-6.2.0.tar.xz.sig
Normal file
Binary file not shown.
@ -1,13 +0,0 @@
|
|||||||
Index: mpn/m4-ccas
|
|
||||||
===================================================================
|
|
||||||
--- mpn/m4-ccas.orig
|
|
||||||
+++ mpn/m4-ccas
|
|
||||||
@@ -100,6 +100,8 @@ fi
|
|
||||||
echo "$M4 $DEFS $ASM >$TMP"
|
|
||||||
$M4 $DEFS $ASM >$TMP || exit
|
|
||||||
|
|
||||||
+echo '.section .note.GNU-stack,"",%progbits' >> $TMP
|
|
||||||
+
|
|
||||||
echo "$CC"
|
|
||||||
$CC || exit
|
|
||||||
|
|
25
gmp.changes
25
gmp.changes
@ -1,3 +1,28 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 19 21:19:41 UTC 2020 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||||
|
|
||||||
|
- GMP 6.2.0:
|
||||||
|
* New C++ functions factorial, primorial and fibonacci for mpz_class
|
||||||
|
* Functions to detect primality now substitute the first 24 Miller-Rabin
|
||||||
|
iterations with the BPSW test
|
||||||
|
* Mini-GMP: new functions mpz_2fac_ui and mpz_mfac_uiui.
|
||||||
|
* Mini-GMP: mpz_sizeinbase, mpz_get_str, and mpz_set_str now support bases up
|
||||||
|
to 62.
|
||||||
|
* various bug fixes
|
||||||
|
* Major speedup on AMD Ryzen and Epyc, IBM POWER9, 64-bit ARM CPUs
|
||||||
|
from assembly code
|
||||||
|
* Speedups from reimplementations
|
||||||
|
- drop patches:
|
||||||
|
* gmp-6.1.2-conftest.patch, upstream
|
||||||
|
* gmp-noexec.diff, upstream
|
||||||
|
* floating-point-format-no-lto.patch, similar change
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 7 21:41:52 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Move prominent summary from description to the summary field,
|
||||||
|
and update the main description.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 1 07:48:02 UTC 2019 - Martin Liška <mliska@suse.cz>
|
Mon Jul 1 07:48:02 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
43
gmp.spec
43
gmp.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gmp
|
# spec file for package gmp
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -17,33 +17,33 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: gmp
|
Name: gmp
|
||||||
Version: 6.1.2
|
Version: 6.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: The GNU MP Library
|
Summary: A library for calculating huge numbers
|
||||||
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
License: GPL-3.0-or-later AND LGPL-3.0-or-later
|
||||||
Group: System/Libraries
|
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
|
||||||
Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz.sig
|
Source1: https://gmplib.org/download/%{name}/%{name}-%{version}.tar.xz.sig
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
Patch0: gmp-noexec.diff
|
|
||||||
Patch1: gmp-6.1.2-conftest.patch
|
|
||||||
Patch2: floating-point-format-no-lto.patch
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: m4
|
BuildRequires: m4
|
||||||
BuildRequires: xz
|
BuildRequires: pkgconfig
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A library for calculating huge numbers (integer and floating point).
|
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.
|
||||||
|
|
||||||
%package -n libgmp10
|
%package -n libgmp10
|
||||||
Summary: Shared library for the GNU MP Library
|
Summary: A library for calculating huge numbers
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libgmp10
|
%description -n libgmp10
|
||||||
A library for calculating huge numbers (integer and floating point).
|
GMP is a library for arbitrary precision arithmetic, operating on
|
||||||
|
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
|
||||||
@ -51,10 +51,10 @@ Group: System/Libraries
|
|||||||
Requires: libgmp10 >= %{version}
|
Requires: libgmp10 >= %{version}
|
||||||
|
|
||||||
%description -n libgmpxx4
|
%description -n libgmpxx4
|
||||||
A library for calculating huge numbers (integer and floating point).
|
GMP is a library for arbitrary precision arithmetic, operating on
|
||||||
|
signed integers, rational numbers, and floating-point numbers.
|
||||||
|
|
||||||
This package contains C++ bindings
|
This package contains C++ bindings for the GNU MP Library.
|
||||||
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
|
||||||
@ -70,9 +70,6 @@ huge numbers (integer and floating point).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0
|
|
||||||
%patch1
|
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -fexceptions"
|
export CFLAGS="%{optflags} -fexceptions"
|
||||||
@ -86,17 +83,15 @@ make %{?_smp_mflags}
|
|||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
%make_install
|
||||||
rm %{buildroot}%{_libdir}/libgmp.la
|
rm %{buildroot}%{_libdir}/libgmp.la
|
||||||
rm %{buildroot}%{_libdir}/libgmpxx.la
|
rm %{buildroot}%{_libdir}/libgmpxx.la
|
||||||
rm %{buildroot}%{_libdir}/libgmpxx.a
|
rm %{buildroot}%{_libdir}/libgmpxx.a
|
||||||
|
|
||||||
%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}
|
||||||
|
|
||||||
@ -104,16 +99,13 @@ rm %{buildroot}%{_libdir}/libgmpxx.a
|
|||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
||||||
|
|
||||||
%files -n libgmp10
|
%files -n libgmp10
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%{_libdir}/libgmp.so.10*
|
%{_libdir}/libgmp.so.10*
|
||||||
|
|
||||||
%files -n libgmpxx4
|
%files -n libgmpxx4
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libgmpxx.so.4*
|
%{_libdir}/libgmpxx.so.4*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc AUTHORS README NEWS
|
%doc AUTHORS README NEWS
|
||||||
%doc demos
|
%doc demos
|
||||||
%{_infodir}/gmp.info*%{ext_info}
|
%{_infodir}/gmp.info*%{ext_info}
|
||||||
@ -122,5 +114,6 @@ rm %{buildroot}%{_libdir}/libgmpxx.a
|
|||||||
%{_libdir}/libgmpxx.so
|
%{_libdir}/libgmpxx.so
|
||||||
%{_includedir}/gmp.h
|
%{_includedir}/gmp.h
|
||||||
%{_includedir}/gmpxx.h
|
%{_includedir}/gmpxx.h
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user