[packages/python-mysql-connector] python3 is now in separate python3-mysql-connector.spec

arekm arekm at pld-linux.org
Thu Dec 19 15:05:29 CET 2024


commit 40f5bf08efed64462e11cdbdaa7f4408200202b1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Dec 19 14:21:33 2024 +0100

    python3 is now in separate python3-mysql-connector.spec

 python-mysql-connector.spec | 95 ---------------------------------------------
 1 file changed, 95 deletions(-)
---
diff --git a/python-mysql-connector.spec b/python-mysql-connector.spec
index b6d210b..4890ff1 100644
--- a/python-mysql-connector.spec
+++ b/python-mysql-connector.spec
@@ -3,8 +3,6 @@
 #
 # Conditional build:
 %bcond_with	tests		# build with tests (requires mysql server)
-%bcond_without	python2		# build without python2
-%bcond_without	python3		# build without python3
 
 %define		pname	mysql-connector
 Summary:	The MySQL Client/Protocol implemented in Python
@@ -26,16 +24,9 @@ Patch3:		py10.patch
 URL:		http://dev.mysql.com/doc/connector-python/en/
 BuildRequires:	mysql-devel
 BuildRequires:	protobuf-devel >= 3.0.0
-%if %{with python2}
 BuildRequires:	python-devel
 BuildRequires:	python-modules
 BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel
-BuildRequires:	python3-modules
-BuildRequires:	python3-setuptools
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with tests}
@@ -56,24 +47,6 @@ zaimplementowany całkowicie w Pythonie. Do uruchomienia tego
 sterownika, zgodnego z DB API v2.0 Pythona, nie są potrzebne
 biblioteki MySQL-a, ani żadna kompilacja.
 
-%package -n python3-%{pname}
-Summary:	The MySQL Client/Protocol implemented in Python
-Summary(pl.UTF-8):	Protokół kliencki MySQL zaimplementowany w Pythonie
-Group:		Development/Languages/Python
-Requires:	python3-modules
-
-%description -n python3-%{pname}
-MySQL Connector/Python is implementing the MySQL Client/Server
-protocol completely in Python. No MySQL libraries are needed, and no
-compilation is necessary to run this Python DB API v2.0 compliant
-driver.
-
-%description -n python3-%{pname} -l pl.UTF-8
-MySQL Connector/Python to protokół klient-serwer MySQL-a
-zaimplementowany całkowicie w Pythonie. Do uruchomienia tego
-sterownika, zgodnego z DB API v2.0 Pythona, nie są potrzebne
-biblioteki MySQL-a, ani żadna kompilacja.
-
 %prep
 %setup -q -n mysql-connector-python-%{version}
 %patch0 -p1
@@ -86,7 +59,6 @@ export MYSQLXPB_PROTOC=%{_bindir}/protoc
 export MYSQLXPB_PROTOBUF_INCLUDE_DIR=%{_includedir}
 export MYSQLXPB_PROTOBUF_LIB_DIR=%{_libdir}
 
-%if %{with python2}
 %py_build
 %if %{with tests}
 export PYTHONPATH="$(pwd)/$(echo build-2/lib*)"
@@ -97,20 +69,6 @@ export PYTHONPATH="$(pwd)/$(echo build-2/lib*)"
 	--with-mysql=%{_prefix} \
 	--with-mysql-share=%{_datadir}/mysql
 %endif
-%endif
-
-%if %{with python3}
-%py3_build
-%if %{with tests}
-export PYTHONPATH="$(pwd)/$(echo build-3/lib*)"
-%{__python3} unittests.py \
-	--verbosity 1 \
-	--keep --stats \
-	--skip-install \
-	--with-mysql=%{_prefix} \
-	--with-mysql-share=%{_datadir}/mysql
-%endif
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -120,21 +78,13 @@ export MYSQLXPB_PROTOC=%{_bindir}/protoc
 export MYSQLXPB_PROTOBUF_INCLUDE_DIR=%{_includedir}
 export MYSQLXPB_PROTOBUF_LIB_DIR=%{_libdir}
 
-%if %{with python2}
 %py_install \
 	--with-mysql-capi=%{_prefix}
 %py_postclean
-%endif
-
-%if %{with python3}
-%py3_install \
-	--with-mysql-capi=%{_prefix}
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.txt README.txt
@@ -160,48 +110,3 @@ rm -rf $RPM_BUILD_ROOT
 %if "%{py_ver}" > "2.4"
 %{py_sitedir}/mysql_connector_python-*.egg-info
 %endif
-%endif
-
-%if %{with python3}
-%files -n python3-%{pname}
-%defattr(644,root,root,755)
-%doc CHANGES.txt README.txt
-%attr(755,root,root) %{py3_sitedir}/_mysql_connector.cpython-*.so
-%{py3_sitedir}/mysql*.egg-info
-%dir %{py3_sitedir}/mysql
-%{py3_sitedir}/mysql/*.py
-%dir %{py3_sitedir}/mysql/__pycache__
-%{py3_sitedir}/mysql/__pycache__/*.py[co]
-%dir %{py3_sitedir}/mysql/connector
-%{py3_sitedir}/mysql/connector/*.py
-%dir %{py3_sitedir}/mysql/connector/__pycache__
-%{py3_sitedir}/mysql/connector/__pycache__/*.py[co]
-%dir %{py3_sitedir}/mysql/connector/django
-%{py3_sitedir}/mysql/connector/django/*.py
-%dir %{py3_sitedir}/mysql/connector/django/__pycache__
-%{py3_sitedir}/mysql/connector/django/__pycache__/*.py[co]
-%dir %{py3_sitedir}/mysql/connector/locales
-%{py3_sitedir}/mysql/connector/locales/*.py
-%dir %{py3_sitedir}/mysql/connector/locales/__pycache__
-%{py3_sitedir}/mysql/connector/locales/__pycache__/*.py[co]
-%dir %{py3_sitedir}/mysql/connector/locales/eng
-%{py3_sitedir}/mysql/connector/locales/eng/*.py
-%dir %{py3_sitedir}/mysql/connector/locales/eng/__pycache__
-%{py3_sitedir}/mysql/connector/locales/eng/__pycache__/*.py[co]
-%dir %{py3_sitedir}/mysqlx
-%{py3_sitedir}/mysqlx/*.py
-%dir %{py3_sitedir}/mysqlx/__pycache__
-%{py3_sitedir}/mysqlx/__pycache__/*.py[co]
-%dir %{py3_sitedir}/mysqlx/locales
-%{py3_sitedir}/mysqlx/locales/*.py
-%dir %{py3_sitedir}/mysqlx/locales/__pycache__
-%{py3_sitedir}/mysqlx/locales/__pycache__/*.py[co]
-%dir %{py3_sitedir}/mysqlx/locales/eng
-%{py3_sitedir}/mysqlx/locales/eng/*.py
-%dir %{py3_sitedir}/mysqlx/locales/eng/__pycache__
-%{py3_sitedir}/mysqlx/locales/eng/__pycache__/*.py[co]
-%dir %{py3_sitedir}/mysqlx/protobuf
-%{py3_sitedir}/mysqlx/protobuf/*.py
-%dir %{py3_sitedir}/mysqlx/protobuf/__pycache__
-%{py3_sitedir}/mysqlx/protobuf/__pycache__/*.py[co]
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-mysql-connector.git/commitdiff/40f5bf08efed64462e11cdbdaa7f4408200202b1



More information about the pld-cvs-commit mailing list