149 lines
5.0 KiB
RPMSpec
149 lines
5.0 KiB
RPMSpec
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
Name: python-mysqlclient
|
|
Version: 2.2.5
|
|
Release: 1mamba
|
|
Summary: MySQL/MariaDB connector for Python
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://mysqlclient.readthedocs.io/
|
|
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
|
|
MySQL/MariaDB connector for Python.
|
|
|
|
%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 Oct 24 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.5-1mamba
|
|
- update to 2.2.5
|
|
|
|
* Sat Feb 10 2024 Automatic Build System <autodist@openmamba.org> 2.2.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Feb 05 2024 Automatic Build System <autodist@openmamba.org> 2.2.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Feb 04 2024 Automatic Build System <autodist@openmamba.org> 2.2.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jan 17 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-2mamba
|
|
- removed requirement for python-setuptools-devel
|
|
|
|
* Fri Dec 15 2023 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2.2.0-2mamba
|
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
|
|
|
* Fri Jun 23 2023 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|