%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-mysqlclient Version: 2.2.1 Release: 2mamba Summary: Python interface to MySQL Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://sourceforge.net/projects/mysql-python/ Source: https://pypi.debian.net/mysqlclient/mysqlclient-%{version}.tar.gz License: GPL, Python License, Zope Public License ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libmariadb-devel BuildRequires: libopenssl-devel BuildRequires: libpython311-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: python3-devel >= 3.11.5-3mamba BuildRequires: libpython3-devel >= 3.7.4 Provides: python-MySQL Obsoletes: python-MySQL < 2.2.1 %description mysqlclient is a fork of MySQL-python. It add Python 3.3 support and merges some pull requests. MySQL support for Python. MySQL versions 3.23-5.1; and Python versions 2.3-2.6 are supported. MySQLdb is the Python DB API-2.0 interface. _mysql is a low-level API similiar to the MySQL C API. ZMySQLDA is a Database Adapter for Zope2. %if "%{?with_pyver}" %pyver_package %endif %prep %setup -q -n mysqlclient-%{version} %build rm -f doc/*~ export libdirname=%{_lib} CFLAGS="%{optflags}" %{__python} setup.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install \ -O1 --skip-build \ --root="%{buildroot}" \ --install-headers=%{_includedir}/python \ --install-lib=%{python_sitearch} \ --single-version-externally-managed \ --record=%{name}.filelist sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %doc doc/* %changelog * Wed Jan 17 2024 Silvan Calarco 2.2.1-2mamba - removed requirement for python-setuptools-devel * Fri Dec 15 2023 Automatic Build System 2.2.1-1mamba - automatic version update by autodist * Tue Sep 26 2023 Automatic Build System 2.2.0-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba * Fri Jun 23 2023 Automatic Build System 2.2.0-1mamba - automatic version update by autodist * Thu Jun 23 2022 Automatic Build System 2.1.1-1mamba - automatic version update by autodist * Sat May 07 2022 Silvan Calarco 2.1.0-2mamba - rebuilt with distdeps * Thu Nov 18 2021 Automatic Build System 2.1.0-1mamba - automatic version update by autodist * Mon Feb 01 2021 Automatic Build System 2.0.3-1mamba - automatic version update by autodist * Sun Aug 09 2020 Automatic Build System 2.0.1-1mamba - automatic version update by autodist * Sun Jul 19 2020 Automatic Build System 2.0.0-1mamba - automatic version update by autodist * Thu Nov 21 2019 Automatic Build System 1.4.6-1mamba - automatic version update by autodist * Fri Nov 08 2019 Automatic Build System 1.4.5-1mamba - automatic version update by autodist * Tue Aug 13 2019 Automatic Build System 1.4.4-1mamba - automatic version update by autodist * Sat Aug 10 2019 Automatic Build System 1.4.3-1mamba - automatic version update by autodist * Thu Aug 08 2019 Silvan Calarco 1.4.2-2mamba - rebuilt with python3 3.7.4 * Fri Feb 08 2019 Automatic Build System 1.4.2-1mamba - automatic version update by autodist * Tue Jan 29 2019 Automatic Build System 1.4.1-1mamba - automatic version update by autodist * Tue Dec 11 2018 Automatic Build System 1.3.14-1mamba - automatic version update by autodist * Thu Oct 25 2018 Automatic Build System 1.3.13-1mamba - automatic version update by autodist * Thu Oct 26 2017 Automatic Build System 1.3.9-1mamba - automatic update by autodist * Sat Sep 17 2016 Automatic Build System 1.3.7-1mamba - automatic update by autodist * Sat May 16 2015 Silvan Calarco 1.3.6-1mamba - update to 1.3.6 - switched from python-MySQL and added python3 support * Fri May 15 2015 Silvan Calarco 1.2.3-4mamba - rebuilt with mariadb * Fri May 17 2013 Silvan Calarco 1.2.3-3mamba - python 2.7 mass rebuild * Fri Jan 13 2012 Silvan Calarco 1.2.3-2mamba - rebuilt in devel * Mon Mar 07 2011 gil 1.2.3-1mamba - package created by autospec