From 9597a590c1b03e79aabb8bb5c90536f568288ca5 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 10 Feb 2020 09:07:06 -0700 Subject: [PATCH] Version 2.1.0 beta4. Also run the Cython tests. --- python-gmpy2.spec | 33 ++++++++++++++++----------------- sources | 2 +- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/python-gmpy2.spec b/python-gmpy2.spec index 4b9d4db..644bf0d 100644 --- a/python-gmpy2.spec +++ b/python-gmpy2.spec @@ -1,9 +1,9 @@ %global srcname gmpy2 -%global prerelease b3 +%global prerelease b4 Name: python-%{srcname} Version: 2.1.0 -Release: 0.14%{?prerelease:.%{prerelease}}%{?dist} +Release: 0.15%{?prerelease:.%{prerelease}}%{?dist} Summary: Python interface to GMP, MPFR, and MPC License: LGPLv3+ @@ -15,6 +15,7 @@ BuildRequires: gmp-devel BuildRequires: libmpc-devel BuildRequires: pkgconfig(mpfr) BuildRequires: python3-devel +BuildRequires: python3dist(cython) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) @@ -41,24 +42,13 @@ Provides: bundled(jquery) %{common_desc} %prep -%autosetup -p0 -n %{srcname}-%{version}%{?prerelease} - -# See https://github.com/aleaxit/gmpy/pull/254 for the encoding changes. -# Fix file encodings. First the easy one. -iconv -f ISO8859-1 -t UTF-8 src/gmpy2.c > src/gmpy2.c.utf8 -touch -r src/gmpy2.c src/gmpy2.c.utf8 -mv -f src/gmpy2.c.utf8 src/gmpy2.c - -# Now the hard one. What weird encoding is this, anyway? -sed -i.orig 's/i\xad/\xc3\xad/' src/mpz_pylong.c -touch -r src/mpz_pylong.c.orig src/mpz_pylong.c -rm src/mpz_pylong.c.orig +%autosetup -n gmpy-%{srcname}-%{version}%{?prerelease} # Update the sphinx theme name sed -i "s/'default'/'classic'/" docs/conf.py -# Version 2.1.0b3 still calls itself 2.1.0b1 -sed -i "s/b1/b3/" docs/conf.py +# Version 2.1.0b4 still calls itself 2.1.0b1 +sed -i "s/b1/b4/" docs/conf.py # Symbols from the math library are also used sed -i "s/'mpfr','gmp'/&,'m'/" setup.py @@ -75,7 +65,12 @@ make -C docs html %py3_install %check -PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} test/runtests.py +export PYTHONPATH=%{buildroot}%{python3_sitearch} +%{__python3} test/runtests.py +cd test_cython +%{__python3} setup_cython.py build '--executable=%{__python3} -s' +%{__python3} runtests.py +cd - %files -n python3-%{srcname} %license COPYING COPYING.LESSER @@ -83,6 +78,10 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} test/runtests.py %{python3_sitearch}/%{srcname}* %changelog +* Mon Feb 10 2020 Jerry James - 2.1.0-0.15.b4 +- Version 2.1.0 beta4 +- Also run the Cython tests + * Thu Jan 30 2020 Fedora Release Engineering - 2.1.0-0.14.b3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index fd228b4..fafb899 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gmpy2-2.1.0b3.tar.gz) = d5da539c314d49474e984da2aa73cf0c3c61f7667afe166a033c5296bfef6c903697787ba72c1005f994caddc2d5beacc76b49468095f996d805f16477bdb33e +SHA512 (gmpy2-2.1.0b4.tar.gz) = 80e339827022063b443e624abf919f88495c092d5481a253899bb7b0b241993aa2ab9c2ece759c2a32e25540784f3340008aa730bfad28b2c5a398e297e96fea