diff --git a/PyMySQL-0.9.2.tar.gz b/PyMySQL-0.9.2.tar.gz deleted file mode 100644 index aa4d74d7345e4a78607c22b9e452e08fbf3e27df..0000000000000000000000000000000000000000 Binary files a/PyMySQL-0.9.2.tar.gz and /dev/null differ diff --git a/PyMySQL-0.9.3.tar.gz b/PyMySQL-0.9.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3335adcf0bad893cf4dbd025da3b50a43758ee61 Binary files /dev/null and b/PyMySQL-0.9.3.tar.gz differ diff --git a/python-PyMySQL.spec b/python-PyMySQL.spec index c4806705c04a631e0133cb6e46728530104f27be..7f3e7d83621b7ded40171b45f3c68ef9e17931b6 100644 --- a/python-PyMySQL.spec +++ b/python-PyMySQL.spec @@ -1,16 +1,12 @@ +%global _empty_manifest_terminate_build 0 Name: python-PyMySQL -Version: 0.9.2 -Release: 3 -Summary: Pure Python MySQL Client +Version: 0.9.3 +Release: 1 +Summary: Pure Python MySQL Driver License: MIT -URL: https://pypi.python.org/pypi/PyMySQL/ -Source0: https://files.pythonhosted.org/packages/source/P/PyMySQL/PyMySQL-%{version}.tar.gz - -BuildRequires: python2-cryptography python2-devel python2-setuptools -BuildRequires: python3-cryptography python3-devel python3-setuptools - +URL: https://github.com/PyMySQL/PyMySQL/ +Source0: https://files.pythonhosted.org/packages/da/15/23ba6592920e21cb40eb0fe0ea002d2b6177beb1ca8a4c1add5a8f32754d/PyMySQL-0.9.3.tar.gz BuildArch: noarch - %description This package contains a pure-Python MySQL client library, based on PEP 249. Most public APIs are compatible with mysqlclient and MySQLdb. @@ -20,48 +16,81 @@ store_result, and use_result. You should use high level APIs defined in PEP 249. But some APIs like autocommit and ping are supported because PEP 249 doesn't cover their usecase. -%package -n python2-PyMySQL -Summary: Pure Python2 MySQL Client -Requires: python2-cryptography -%{?python_provide:%python_provide python2-PyMySQL} - -%description -n python2-PyMySQL +%package -n python3-PyMySQL +Summary: Pure Python MySQL Driver +Provides: python-PyMySQL +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-cryptography +%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 -n python3-PyMySQL -Summary: Pure Python3 MySQL client -Requires: python3-cryptography -%{?python_provide:%python_provide python3-PyMySQL} +NOTE: PyMySQL doesn't support low level APIs _mysql provides like data_seek, +store_result, and use_result. You should use high level APIs defined in PEP 249. +But some APIs like autocommit and ping are supported because PEP 249 doesn't +cover their usecase. -%description -n python3-PyMySQL +%package help +Summary: Pure Python MySQL Driver +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. +NOTE: PyMySQL doesn't support low level APIs _mysql provides like data_seek, +store_result, and use_result. You should use high level APIs defined in PEP 249. +But some APIs like autocommit and ping are supported because PEP 249 doesn't +cover their usecase. %prep -%autosetup -n PyMySQL-%{version} -p1 +%autosetup -n PyMySQL-%{version} %build -%py2_build %py3_build %install -%py2_install %py3_install - -%files -n python2-PyMySQL -%doc README.rst -%license LICENSE -%{python2_sitelib}/* - -%files -n python3-PyMySQL -%doc README.rst -%license LICENSE -%{python3_sitelib}/* - +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 Feb 10 2022 OpenStack_SIG - 0.9.3-1 +- Remove the support of python2 and upgrade the version to 0.9.3 + * Fri Feb 14 2020 hy-euler - 0.9.2-3 - Package Initialization