%global _empty_manifest_terminate_build 0 Name: python-PyMySQL Version: 1.0.3 Release: 1 Summary: Pure Python MySQL Client License: MIT URL: https://pypi.python.org/pypi/PyMySQL/ Source0: https://files.pythonhosted.org/packages/7a/6f/b3fadf41239b9ca7ea3857c440c499fd2e9e0f410bb942bd8d593dce4bd6/PyMySQL-1.0.3.tar.gz Source1: setup.py BuildArch: noarch BuildRequires: python3-cryptography python3-devel python3-setuptools %description This package contains a pure-Python MySQL client library, based on PEP 249. Most public APIs are compatible with mysqlclient and MySQLdb. %package -n python3-PyMySQL Summary: Pure Python MySQL Client Requires: python3-cryptography Provides: python-PyMySQL = %{version}-%{release} %description -n python3-PyMySQL This package contains a pure-Python MySQL client library, based on PEP 249. Most public APIs are compatible with mysqlclient and MySQLdb. %package help Summary: Development documents and examples for PyMySQL Provides: python3-PyMySQL-doc %description help This package contains a pure-Python MySQL client library, based on PEP 249. Most public APIs are compatible with mysqlclient and MySQLdb. %prep %autosetup -n PyMySQL-%{version} cp %{SOURCE1} ./ %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-PyMySQL -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Apr 6 2023 wubijie - 1.0.3-1 - Update package to version 1.0.3 * Tue Nov 22 2022 jiangxinyu - 1.0.2-1 - Update package to version 1.0.2 * Wed Aug 25 2021 OpenStack_SIG - 0.9.3-3 - Revert the version to 0.9.3, because python3-aiomysql depends on the python-PyMySQL vertion ranging form 0.9 to 0.9.3 * Mon Aug 09 2021 OpenStack_SIG - 1.0.2-1 - Update version to 1.0.2, because of the dependence of Openstack Wallaby * Fri Oct 30 2020 yanglongkang - 0.9.3-2 - remove python2 dependency * Thu Jul 16 2020 yanglongkang - 0.9.3-1 - update package to 0.9.3 * Fri Feb 14 2020 hy-euler - 0.9.2-3 - Package Initialization