[packages/python-mysqlclient] Drop python3 support (see python3-mysqlclient.spec)

arekm arekm at pld-linux.org
Sun May 4 15:23:52 CEST 2025


commit 345593a5dc18cf9cb7e667863daa375bdf53585c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 14:42:45 2025 +0200

    Drop python3 support (see python3-mysqlclient.spec)

 python-mysqlclient.spec | 64 +------------------------------------------------
 1 file changed, 1 insertion(+), 63 deletions(-)
---
diff --git a/python-mysqlclient.spec b/python-mysqlclient.spec
index c98b4ca..b46bfe0 100644
--- a/python-mysqlclient.spec
+++ b/python-mysqlclient.spec
@@ -1,7 +1,4 @@
 # Conditional build:
-%bcond_without  python2 # CPython 2.x module
-%bcond_without  python3 # CPython 3.x module
-
 %define		module	mysqlclient
 Summary:	A Python interface to MySQL (MySQLdb compatible)
 Summary(pl.UTF-8):	Interfejs Pythona do MySQL (kompatybilny z MySQLdb)
@@ -14,13 +11,8 @@ Source0:	https://pypi.python.org/packages/source/m/mysqlclient/mysqlclient-%{ver
 # Source0-md5:	58d7c9c617a4286a88db290e7857d3aa
 URL:		https://pypi.python.org/pypi/mysqlclient
 BuildRequires:	rpmbuild(macros) >= 1.710
-%if %{with python2}
 BuildRequires:	python-devel >= 1:2.7
 BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.3
-%endif
 BuildRequires:	rpm-pythonprov
 %pyrequires_eq	python-modules
 Requires:	python-modules
@@ -40,57 +32,20 @@ nakłada kilka patchy.
 
 MySQLdb to pythonowy interfejs do MySQL-a.
 
-%package -n python3-%{module}
-Summary:	A Python interface to MySQL (MySQLdb compatible)
-Summary(pl.UTF-8):	Interfejs Pythona do MySQL (kompatybilny z MySQLdb)
-Group:		Libraries/Python
-%pyrequires_eq	python3
-Requires:	python3-modules
-Provides:	python3-MySQLdb
-
-%description -n python3-%{module}
-mysqlclient is a fork of MySQL-python. It adds Python 3.3 support and
-merges some pull requests.
-
-MySQLdb is an interface to the popular MySQL database server for Python
-
-%description -n python3-%{module} -l pl.UTF-8
-mysqlclient to fork MySQL-python. Dodaje obsługę Pythona 3.3 oraz
-nakłada kilka patchy.
-
-MySQLdb to pythonowy interfejs do MySQL-a.
-
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
 %py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install \
-	--optimize 2 \
-	--root=$RPM_BUILD_ROOT
-%endif
-
-%if %{with python3}
-%py3_install \
-	--optimize 2 \
-	--root=$RPM_BUILD_ROOT
-%endif
+%py_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/*.so
@@ -100,20 +55,3 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{py_sitedir}/MySQLdb/constants
 %{py_sitedir}/MySQLdb/constants/*.py?
 %{py_sitedir}/*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%attr(755,root,root) %{py3_sitedir}/*.so
-%{py3_sitedir}/*.py
-%{py3_sitedir}/__pycache__
-%dir %{py3_sitedir}/MySQLdb
-%{py3_sitedir}/MySQLdb/*.py
-%{py3_sitedir}/MySQLdb/__pycache__
-%dir %{py3_sitedir}/MySQLdb/constants
-%{py3_sitedir}/MySQLdb/constants/*.py
-%{py3_sitedir}/MySQLdb/constants/__pycache__
-%{py3_sitedir}/*.egg-info
-%endif
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-mysqlclient.git/commitdiff/345593a5dc18cf9cb7e667863daa375bdf53585c



More information about the pld-cvs-commit mailing list