python-mysqlclient/python-mysqlclient.spec

92 lines
3.0 KiB
RPMSpec
Raw Normal View History

2020-02-14 16:52:58 +08:00
Name: python-mysqlclient
2022-08-03 13:45:28 +08:00
Version: 2.1.1
Release: 1
2020-02-14 16:52:58 +08:00
Summary: MySQL database connector for Python
License: GPLv2+
URL: https://github.com/PyMySQL/mysqlclient-python
2022-08-03 13:45:28 +08:00
Source0: https://files.pythonhosted.org/packages/50/5f/eac919b88b9df39bbe4a855f136d58f80d191cfea34a3dcf96bf5d8ace0a/mysqlclient-2.1.1.tar.gz
2020-02-14 16:52:58 +08:00
BuildRequires: gcc mariadb-connector-c-devel openssl-devel zlib-devel
2020-10-30 14:10:48 +08:00
BuildRequires: python3-devel python3-setuptools python3-debug
2020-02-14 16:52:58 +08:00
Provides: python-mysql = %{version}-%{release}
Obsoletes: python-mysql < %{version}-%{release}
%description
MySQLdb is an interface to the popular MySQL database server that
provides the Python database API.
%package -n python3-mysqlclient
Summary: MySQL database connector for Python3
Provides: MySQL-python3 = %{version}-%{release}
Obsoletes: MySQL-python3 < %{version}-%{release}
Provides: python3-mysql = %{version}-%{release}
Obsoletes: python3-mysql < %{version}-%{release}
Provides: python3-mysql%{_isa} = %{version}-%{release}
%description -n python3-mysqlclient
MySQL database connector for Python3
%package -n python3-mysqlclient-debug
Summary: Python3 interface to MySQL, built for the CPython debug runtime
Requires: python3-mysqlclient%{_isa} = %{version}-%{release}
Provides: MySQL-python3-debug = %{version}-%{release}
Obsoletes: MySQL-python3-debug < %{version}-%{release}
Provides: python3-mysql-debug = %{version}-%{release}
Obsoletes: python3-mysql-debug < %{version}-%{release}
Provides: python3-mysql-debug%{_isa} = %{version}-%{release}
%description -n python3-mysqlclient-debug
Python3 interface to MySQL, built for the CPython debug runtime
%prep
%autosetup -n mysqlclient-%{version} -p1
%build
%py3_build
CFLAGS="$RPM_OPT_FLAGS" %{__python3}-debug setup.py build
%install
%py3_install
%{__python3}-debug setup.py install -O1 --root %{buildroot} --skip-build
%files -n python3-mysqlclient
%doc README.md doc/*.rst
%license LICENSE
%dir %{python3_sitearch}/MySQLdb
%{python3_sitearch}/MySQLdb/*.py
2022-08-03 13:45:28 +08:00
%{python3_sitearch}/MySQLdb/_mysql.cpython-3?*.so
2020-02-14 16:52:58 +08:00
%dir %{python3_sitearch}/MySQLdb/__pycache__
%{python3_sitearch}/MySQLdb/__pycache__/*
%dir %{python3_sitearch}/MySQLdb/constants
%{python3_sitearch}/MySQLdb/constants/*.py
%dir %{python3_sitearch}/MySQLdb/constants/__pycache__
%{python3_sitearch}/MySQLdb/constants/__pycache__/*
%dir %{python3_sitearch}/mysqlclient-%{version}-py3.*.egg-info
%{python3_sitearch}/mysqlclient-%{version}-py3.*.egg-info/*
%files -n python3-mysqlclient-debug
2022-08-03 13:45:28 +08:00
%{python3_sitearch}/MySQLdb/_mysql.cpython-3*d*.so
2020-02-14 16:52:58 +08:00
%changelog
2022-08-03 13:45:28 +08:00
* Wed Aug 03 2022 kkz <zhaoshuang@uniontech.com> - 2.1.1-1
- Upgrade to 2.1.1
* Thu May 19 2022 yanglongkang <yanglongkang@h-partners.com> - 1.3.12-10
- update the spec file to adapt python3.10
2020-10-30 14:10:48 +08:00
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.3.12-9
- remove python2 dependency
* Thu Jun 18 2020 jinzhimin<jinzhimin2@huawei.com> - 1.3.12-8
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:Adapt to the new features of python 3.8
2020-02-14 16:52:58 +08:00
* Fri Feb 14 2020 hy-euler <eulerstoragemt@huawei.com> - 1.3.12-7
- Package Initialization