python-mysqlclient/python-mysqlclient.spec

129 lines
4.3 KiB
RPMSpec
Raw Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-mysqlclient
Version: 2.1.1
Release: 1mamba
Summary: Python interface to MySQL
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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: libpython3-devel
## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.7.4
BuildRequires: python-setuptools-devel
Provides: python-MySQL
Obsoletes: python-MySQL
Requires: python >= %python_version
%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
* Thu Jun 23 2022 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic version update by autodist
* Sat May 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-2mamba
- rebuilt with distdeps
* Thu Nov 18 2021 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic version update by autodist
* Mon Feb 01 2021 Automatic Build System <autodist@mambasoft.it> 2.0.3-1mamba
- automatic version update by autodist
* Sun Aug 09 2020 Automatic Build System <autodist@mambasoft.it> 2.0.1-1mamba
- automatic version update by autodist
* Sun Jul 19 2020 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
- automatic version update by autodist
* Thu Nov 21 2019 Automatic Build System <autodist@mambasoft.it> 1.4.6-1mamba
- automatic version update by autodist
* Fri Nov 08 2019 Automatic Build System <autodist@mambasoft.it> 1.4.5-1mamba
- automatic version update by autodist
* Tue Aug 13 2019 Automatic Build System <autodist@mambasoft.it> 1.4.4-1mamba
- automatic version update by autodist
* Sat Aug 10 2019 Automatic Build System <autodist@mambasoft.it> 1.4.3-1mamba
- automatic version update by autodist
* Thu Aug 08 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-2mamba
- rebuilt with python3 3.7.4
* Fri Feb 08 2019 Automatic Build System <autodist@mambasoft.it> 1.4.2-1mamba
- automatic version update by autodist
* Tue Jan 29 2019 Automatic Build System <autodist@mambasoft.it> 1.4.1-1mamba
- automatic version update by autodist
* Tue Dec 11 2018 Automatic Build System <autodist@mambasoft.it> 1.3.14-1mamba
- automatic version update by autodist
* Thu Oct 25 2018 Automatic Build System <autodist@mambasoft.it> 1.3.13-1mamba
- automatic version update by autodist
* Thu Oct 26 2017 Automatic Build System <autodist@mambasoft.it> 1.3.9-1mamba
- automatic update by autodist
* Sat Sep 17 2016 Automatic Build System <autodist@mambasoft.it> 1.3.7-1mamba
- automatic update by autodist
* Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.6-1mamba
- update to 1.3.6
- switched from python-MySQL and added python3 support
* Fri May 15 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-4mamba
- rebuilt with mariadb
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-3mamba
- python 2.7 mass rebuild
* Fri Jan 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-2mamba
- rebuilt in devel
* Mon Mar 07 2011 gil <puntogil@libero.it> 1.2.3-1mamba
- package created by autospec