1 Star 0 Fork 12

xh/python-mysqlclient

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-mysqlclient.spec 2.88 KB
一键复制 编辑 原始数据 按行查看 历史
靳智敏 提交于 2020-10-30 14:10 . remove python2 dependency
Name: python-mysqlclient
Version: 1.3.12
Release: 9
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
BuildRequires: gcc mariadb-connector-c-devel openssl-devel zlib-devel
BuildRequires: python3-devel python3-setuptools python3-debug
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
%{python3_sitearch}/*.py
%{python3_sitearch}/_mysql.cpython-3?*.so
%dir %{python3_sitearch}/__pycache__
%{python3_sitearch}/__pycache__/*
%dir %{python3_sitearch}/MySQLdb
%{python3_sitearch}/MySQLdb/*.py
%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
%{python3_sitearch}/_mysql.cpython-3?d*.so
%changelog
* 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xinghe_1/python-mysqlclient.git
git@gitee.com:xinghe_1/python-mysqlclient.git
xinghe_1
python-mysqlclient
python-mysqlclient
master

搜索帮助