[packages/python3-mysqlclient] Up to 2.2.7
arekm
arekm at pld-linux.org
Sun May 4 15:19:25 CEST 2025
commit 93df7f682da1a1414e15d469e950da317c8f818a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun May 4 14:37:54 2025 +0200
Up to 2.2.7
python-mysqlclient.spec | 119 -----------------------------------------------
python3-mysqlclient.spec | 58 +++++++++++++++++++++++
2 files changed, 58 insertions(+), 119 deletions(-)
---
diff --git a/python-mysqlclient.spec b/python-mysqlclient.spec
deleted file mode 100644
index c98b4ca..0000000
--- a/python-mysqlclient.spec
+++ /dev/null
@@ -1,119 +0,0 @@
-# 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)
-Name: python-%{module}
-Version: 1.3.6
-Release: 5
-License: GPL
-Group: Libraries/Python
-Source0: https://pypi.python.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz
-# 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
-Provides: python-MySQLdb
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-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 -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.
-
-%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
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/*.so
-%{py_sitedir}/*.py?
-%dir %{py_sitedir}/MySQLdb
-%{py_sitedir}/MySQLdb/*.py?
-%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
-
diff --git a/python3-mysqlclient.spec b/python3-mysqlclient.spec
new file mode 100644
index 0000000..72a6ae7
--- /dev/null
+++ b/python3-mysqlclient.spec
@@ -0,0 +1,58 @@
+# Conditional build:
+
+%define module mysqlclient
+Summary: A Python interface to MySQL (MySQLdb compatible)
+Summary(pl.UTF-8): Interfejs Pythona do MySQL (kompatybilny z MySQLdb)
+Name: python3-%{module}
+Version: 2.2.7
+Release: 1
+License: GPL
+Group: Libraries/Python
+Source0: https://pypi.python.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz
+# Source0-md5: 95868b0f5c4c0eada33d18ca959cc512
+URL: https://pypi.python.org/pypi/mysqlclient
+BuildRequires: python3-devel >= 1:3.3
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.710
+Requires: python3-modules
+Requires: python3-modules
+Provides: python3-MySQLdb
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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 -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
+%py3_build %{?with_tests:test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py3_sitedir}/MySQLdb/*.so
+%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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-mysqlclient.git/commitdiff/93df7f682da1a1414e15d469e950da317c8f818a
More information about the pld-cvs-commit
mailing list