diff --git a/python-PyMySQL.spec b/python-PyMySQL.spec index 9701820..7eabf8a 100644 --- a/python-PyMySQL.spec +++ b/python-PyMySQL.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Pure-Python MySQL client library License: MIT @@ -11,34 +11,17 @@ Source0: https://files.pythonhosted.org/packages/source/P/PyMySQL/PyMySQL BuildArch: noarch -# for python2 -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-cryptography - -# for python3 -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools -BuildRequires: python%{python3_pkgversion}-cryptography - %description This package contains a pure-Python MySQL client library. The goal of PyMySQL is to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython and Jython. -%package -n python2-%{pypi_name} -Summary: Pure-Python MySQL client library -Requires: python2-cryptography -%{?python_provide:%python_provide python2-%{pypi_name}} - -%description -n python2-%{pypi_name} -This package contains a pure-Python MySQL client library. The goal of PyMySQL is -to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython -and Jython. - %package -n python%{python3_pkgversion}-%{pypi_name} -Summary: Pure-Python MySQL client library +Summary: %{summary} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-cryptography Requires: python%{python3_pkgversion}-cryptography %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} @@ -56,34 +39,17 @@ rm -rf tests %build -%py2_build %py3_build %install -%py2_install -# Remove shebang -#for lib in %{buildroot}%{python2_sitelib}/pymysql/tests/thirdparty/test_MySQLdb/*.py; do -# sed -i '1{\@^#!/usr/bin/env python@d}' $lib -#done - %py3_install -# Remove shebang -#for lib in %{buildroot}%{python3_sitelib}/pymysql/tests/thirdparty/test_MySQLdb/*.py; do -# sed -i '1{\@^#!/usr/bin/env python@d}' $lib -#done %check # Tests cannot be launch on koji, they require a mysqldb running. -%files -n python2-%{pypi_name} -%license LICENSE -%doc README.rst -%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info/ -%{python2_sitelib}/pymysql/ - %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE %doc README.rst @@ -91,6 +57,9 @@ rm -rf tests %{python3_sitelib}/pymysql/ %changelog +* Sun Dec 02 2018 Julien Enselme - 0.9.2-3 +- Remove Python 2 subpackage. + * Fri Jul 13 2018 Fedora Release Engineering - 0.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild