Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
0d7117adc1
!9 【更新版本】更新master分支到最新的发布版本2.1.1
From: @kkzhs_admin 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-08-08 10:50:18 +00:00
kkz
13fdb31773 upgrade to 2.1.1(the latest version) 2022-08-03 14:11:44 +08:00
openeuler-ci-bot
701a6b3c90
!8 更新sepc文件以适配python3.10的编译
From: @markeryang 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
2022-05-19 06:47:05 +00:00
markeryang
207087b843 update the spec file to adapt python3.10 2022-05-19 14:21:11 +08:00
openeuler-ci-bot
4855c1adfe !7 remove python2 dependency
From: @xinghe_1
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-30 15:43:20 +08:00
jinzhimin369
40b02a7876 remove python2 dependency 2020-10-30 14:10:48 +08:00
openeuler-ci-bot
1542ee93d8 !3 python-mysqlclient
Merge pull request !3 from 靳智敏/master
2020-06-19 10:00:16 +08:00
jinzhimin369
b0de34a6a1 Adapt to the new features of python 3.8 2020-06-18 17:33:08 +08:00
openeuler-ci-bot
ec8943e605 !2 python-mysqlclient
Merge pull request !2 from wangef/master
2020-05-19 14:47:44 +08:00
wwx913452
2c95eb7a43 added python-mysqlclient.yaml 2020-05-07 14:53:36 +08:00
4 changed files with 25 additions and 62 deletions

Binary file not shown.

BIN
mysqlclient-2.1.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,15 +1,13 @@
Name: python-mysqlclient
Version: 1.3.12
Release: 7
Version: 2.1.1
Release: 1
Summary: MySQL database connector for Python
License: GPLv2+
URL: https://github.com/PyMySQL/mysqlclient-python
Source0: https://pypi.python.org/packages/6f/86/bad31f1c1bb0cc99e88ca2adb7cb5c71f7a6540c1bb001480513de76a931/mysqlclient-1.3.12.tar.gz
Source0: https://files.pythonhosted.org/packages/50/5f/eac919b88b9df39bbe4a855f136d58f80d191cfea34a3dcf96bf5d8ace0a/mysqlclient-2.1.1.tar.gz
BuildRequires: gcc mariadb-connector-c-devel openssl-devel zlib-devel
BuildRequires: python2-devel python2-setuptools
BuildRequires: python3-devel python3-setuptools
BuildRequires: python2-debug python3-debug
BuildRequires: python3-devel python3-setuptools python3-debug
Provides: python-mysql = %{version}-%{release}
Obsoletes: python-mysql < %{version}-%{release}
@ -18,34 +16,6 @@ Obsoletes: python-mysql < %{version}-%{release}
MySQLdb is an interface to the popular MySQL database server that
provides the Python database API.
%package -n python2-mysqlclient
Summary: MySQL database connector for Python2
Provides: MySQL-python = %{version}-%{release}
Obsoletes: MySQL-python < %{version}-%{release}
Provides: python-mysql = %{version}-%{release}
Obsoletes: python-mysql < %{version}-%{release}
Provides: python-mysql%{_isa} = %{version}-%{release}
Provides: python2-mysql = %{version}-%{release}
Obsoletes: python2-mysql < %{version}-%{release}
%description -n python2-mysqlclient
MySQL database connector for Python2
%package -n python2-mysqlclient-debug
Summary: Python2 interface to MySQL, built for the CPython debug runtime
Requires: python2-mysqlclient%{_isa} = %{version}-%{release}
Provides: MySQL-python-debug = %{version}-%{release}
Obsoletes: MySQL-python-debug < %{version}-%{release}
Provides: python-mysql-debug = %{version}-%{release}
Obsoletes: python-mysql-debug < %{version}-%{release}
Provides: python-mysql-debug%{_isa} = %{version}-%{release}
Provides: python2-mysql-debug = %{version}-%{release}
Obsoletes: python2-mysql-debug < %{version}-%{release}
%description -n python2-mysqlclient-debug
Python2 interface to MySQL, built for the CPython debug runtime
%package -n python3-mysqlclient
Summary: MySQL database connector for Python3
Provides: MySQL-python3 = %{version}-%{release}
@ -74,47 +44,21 @@ Python3 interface to MySQL, built for the CPython debug runtime
%autosetup -n mysqlclient-%{version} -p1
%build
%py2_build
CFLAGS="$RPM_OPT_FLAGS" %{__python2}-debug setup.py build
%py3_build
CFLAGS="$RPM_OPT_FLAGS" %{__python3}-debug setup.py build
%install
%py2_install
%{__python2}-debug setup.py install -O1 --root %{buildroot} --skip-build
%py3_install
%{__python3}-debug setup.py install -O1 --root %{buildroot} --skip-build
%files -n python2-mysqlclient
%doc README.md doc/*.rst
%license LICENSE
%{python2_sitearch}/*.py
%{python2_sitearch}/*.py[co]
%{python2_sitearch}/_mysql.so
%dir %{python2_sitearch}/MySQLdb
%{python2_sitearch}/MySQLdb/*.py
%{python2_sitearch}/MySQLdb/*.py[co]
%dir %{python2_sitearch}/MySQLdb/constants
%{python2_sitearch}/MySQLdb/constants/*
%dir %{python2_sitearch}/mysqlclient-%{version}-py2.*.egg-info
%{python2_sitearch}/mysqlclient-%{version}-py2.*.egg-info/*
%files -n python2-mysqlclient-debug
%{python2_sitearch}/_mysql_d.so
%files -n python3-mysqlclient
%doc README.md doc/*.rst
%license LICENSE
%{python3_sitearch}/*.py
%{python3_sitearch}/_mysql.cpython-3?m*.so
%dir %{python3_sitearch}/__pycache__
%{python3_sitearch}/__pycache__/*
%dir %{python3_sitearch}/MySQLdb
%{python3_sitearch}/MySQLdb/*.py
%{python3_sitearch}/MySQLdb/_mysql.cpython-3?*.so
%dir %{python3_sitearch}/MySQLdb/__pycache__
%{python3_sitearch}/MySQLdb/__pycache__/*
%dir %{python3_sitearch}/MySQLdb/constants
@ -125,8 +69,23 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3}-debug setup.py build
%{python3_sitearch}/mysqlclient-%{version}-py3.*.egg-info/*
%files -n python3-mysqlclient-debug
%{python3_sitearch}/_mysql.cpython-3?dm*.so
%{python3_sitearch}/MySQLdb/_mysql.cpython-3*d*.so
%changelog
* 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
* 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
* Fri Feb 14 2020 hy-euler <eulerstoragemt@huawei.com> - 1.3.12-7
- Package Initialization

4
python-mysqlclient.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: PyMySQL/mysqlclient-python
tag_prefix: ^v
seperator: .