[packages/python-gmpy2] Rel 4; drop python3 (see python3-gmpy2.spec)

arekm arekm at pld-linux.org
Sun May 4 03:16:59 CEST 2025


commit 35e34b69a91d7daea9793f5e22293925cbeb5277
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 01:29:47 2025 +0200

    Rel 4; drop python3 (see python3-gmpy2.spec)

 python-gmpy2.spec | 64 +------------------------------------------------------
 1 file changed, 1 insertion(+), 63 deletions(-)
---
diff --git a/python-gmpy2.spec b/python-gmpy2.spec
index cb516ad..126a99f 100644
--- a/python-gmpy2.spec
+++ b/python-gmpy2.spec
@@ -2,14 +2,12 @@
 # Conditional build:
 %bcond_without	doc	# API documentation
 %bcond_with	tests	# unit tests (many inf or nan sign differences)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 Summary:	Python interface to GMP/MPIR, MPFR and MPC libraries
 Summary(pl.UTF-8):	Interfejs do bibliotek GMP/MPIR, MPFR oraz MPC
 Name:		python-gmpy2
 Version:	2.1.5
-Release:	3
+Release:	4
 License:	LGPL v3+
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/gmpy2/
@@ -19,14 +17,8 @@ URL:		https://pypi.org/project/gmpy2/
 BuildRequires:	gmp-devel
 BuildRequires:	libmpc-devel >= 1.0.3
 BuildRequires:	mpfr-devel
-%if %{with python2}
 BuildRequires:	python-devel >= 1:2.7
 BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.5
-BuildRequires:	python3-setuptools
-%endif
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -52,28 +44,6 @@ zaokrąglanej arytmetyki rzeczywistej wielokrotnej precyzji (przy
 użyciu biblioteki MPFR) oraz arytmetyki zespolonej (przy użyciu
 biblioteki MPC).
 
-%package -n python3-gmpy2
-Summary:	Python interface to GMP/MPIR, MPFR and MPC libraries
-Summary(pl.UTF-8):	Interfejs do bibliotek GMP/MPIR, MPFR oraz MPC
-Group:		Libraries/Python
-Requires:	libmpc >= 1.0.3
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-gmpy2
-gmpy2 is an optimized, C-coded Python extension module that supports
-fast multiple-precision arithmetic. gmpy2 is based on the original
-gmpy module. gmpy2 adds support for correctly rounded
-multiple-precision real arithmetic (using the MPFR library) and
-complex arithmetic (using the MPC library).
-
-%description -n python3-gmpy2 -l pl.UTF-8
-gmpy2 to zoptymalizowany, napisany w C moduł rozszerzenia Pythona,
-obsługujący szybką arytmetykę wielokrotnej precyzji. Moduł gmpy2 jest
-oparty na oryginalnym module gmpy. Dodaje obsługę poprawnie
-zaokrąglanej arytmetyki rzeczywistej wielokrotnej precyzji (przy
-użyciu biblioteki MPFR) oraz arytmetyki zespolonej (przy użyciu
-biblioteki MPC).
-
 %package apidocs
 Summary:	API documentation for Python gmpy2 module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona gmpy2
@@ -90,23 +60,12 @@ Dokumentacja API modułu Pythona gmpy2.
 %setup -q -n gmpy2-%{version}
 
 %build
-%if %{with python2}
 %py_build
 
 %if %{with tests}
 PYTHONPATH=$(echo $(pwd)/build-2/lib.linux-*) \
 %{__python} test/runtests.py
 %endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(echo $(pwd)/build-3/lib.linux-*) \
-%{__python3} test/runtests.py
-%endif
-%endif
 
 %if %{with doc}
 %{__make} -C docs html \
@@ -116,20 +75,13 @@ PYTHONPATH=$(echo $(pwd)/build-3/lib.linux-*) \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %py_install
 
 %py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc README
@@ -139,20 +91,6 @@ rm -rf $RPM_BUILD_ROOT
 %{py_sitedir}/gmpy2/*.pxd
 %{py_sitedir}/gmpy2/gmpy2.h
 %{py_sitedir}/gmpy2-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-gmpy2
-%defattr(644,root,root,755)
-%doc README
-%dir %{py3_sitedir}/gmpy2
-%attr(755,root,root) %{py3_sitedir}/gmpy2/gmpy2.cpython-*.so
-%{py3_sitedir}/gmpy2/__init__.py
-%{py3_sitedir}/gmpy2/*.pxd
-%{py3_sitedir}/gmpy2/gmpy2.h
-%{py3_sitedir}/gmpy2/__pycache__
-%{py3_sitedir}/gmpy2-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gmpy2.git/commitdiff/35e34b69a91d7daea9793f5e22293925cbeb5277



More information about the pld-cvs-commit mailing list