diff --git a/gmpy2-2.0.8.zip b/gmpy2-2.0.8.zip deleted file mode 100644 index 21e56db..0000000 --- a/gmpy2-2.0.8.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f -size 280551 diff --git a/gmpy2-2.1.2.tar.gz b/gmpy2-2.1.2.tar.gz new file mode 100644 index 0000000..91d9f64 --- /dev/null +++ b/gmpy2-2.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da75140bca128ece795895477e53b43773e3748aa90ba6170eae7ca2c74b82d1 +size 258445 diff --git a/python-gmpy2.changes b/python-gmpy2.changes index 32b7f9a..010657f 100644 --- a/python-gmpy2.changes +++ b/python-gmpy2.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Mon Feb 21 03:30:39 UTC 2022 - Steve Kowalik + +- Update to 2.1.2: + * Allow GIL release for mpz/xmpz/mpq types only. + * Improve argument type processing by saving type information to + decrease the number of type check calls. Especially helpful for mpfr and mpc types. + * Avoid MPFR bug in mfr_fac_ui (gmpy2.factorial) on platforms where + long is 32-bits and argument is >= 44787929. + * Adjust test suite to reflect changes in output in MPFR 4.1.0. + * Added cmp() and cmp_abs(). + * Improved compatibility with _numbers_ protocol. + * Initial support for MPFR4 + + Add nrandom() + + grandom() now calls nrandom twice; may return different values versus MPFR3 + + Add rootn(); same as root() except different sign when taking even root of -0.0 + * Thread-safe contexts are now supported. Properly integrating thread-safe contexts required + an extensive rewrite of almost all internal functions. + * MPFR and MPC are now required. It is no longer possible to build a version of gmpy2 that + only supports the GMP library. + * The function inverse() now raises an exception if the inverse does not exist. + * Context methods have been added for MPFR/MPC related functions. + * A new context option (rational_division) has been added that changes the behavior of + integer division involving mpz instances to return a rational result instead of a + floating point result. + * gmpy2 types are now registered in the numeric tower. +- Remove unzip BuildRequires, as upstream has switched to tarballs. + ------------------------------------------------------------------- Thu May 24 17:33:34 UTC 2018 - toddrme2178@gmail.com diff --git a/python-gmpy2.spec b/python-gmpy2.spec index 8e32a9a..cfd4fe2 100644 --- a/python-gmpy2.spec +++ b/python-gmpy2.spec @@ -1,7 +1,7 @@ # # spec file for package python-gmpy2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,19 +12,18 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-gmpy2 -Version: 2.0.8 +Version: 2.1.2 Release: 0 Summary: GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3x -License: LGPL-3.0 -Group: Development/Languages/Python -Url: https://github.com/aleaxit/gmpy -Source: https://files.pythonhosted.org/packages/source/g/gmpy2/gmpy2-%{version}.zip +License: LGPL-3.0-only +URL: https://github.com/aleaxit/gmpy +Source: https://files.pythonhosted.org/packages/source/g/gmpy2/gmpy2-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -33,7 +32,6 @@ BuildRequires: libmpir-devel BuildRequires: mpc-devel BuildRequires: mpfr-devel BuildRequires: python-rpm-macros -BuildRequires: unzip %python_subpackages