diff --git a/fix-requirements.patch b/fix-requirements.patch new file mode 100644 index 0000000..15c1a4f --- /dev/null +++ b/fix-requirements.patch @@ -0,0 +1,30 @@ +diff -Nur aiomysql-0.0.20/requirements-dev.txt aiomysql-0.0.20-new/requirements-dev.txt +--- aiomysql-0.0.20/requirements-dev.txt 2020-09-03 18:47:14.988672930 +0200 ++++ aiomysql-0.0.20-new/requirements-dev.txt 2020-09-03 18:53:50.848427040 +0200 +@@ -1,13 +1,13 @@ +-coverage==4.5.1 +-flake8==3.5.0 +-ipdb==0.11 +-ipython==7.0.1 +-pytest==3.9.1 +-pytest-cov==2.6.0 +-pytest-sugar==0.9.1 +-PyMySQL>=0.9,<=0.9.2 +-docker==3.5.1 +-sphinx==1.8.1 +-sphinxcontrib-asyncio==0.2.0 +-sqlalchemy==1.2.12 +-uvloop==0.11.2; python_version >= '3.5' ++coverage ++flake8 ++ipdb ++ipython ++pytest ++pytest-cov ++pytest-sugar ++PyMySQL ++docker ++sphinx ++sphinxcontrib-asyncio ++sqlalchemy ++uvloop diff --git a/python-aiomysql.spec b/python-aiomysql.spec index a6d971e..f08e8d0 100644 --- a/python-aiomysql.spec +++ b/python-aiomysql.spec @@ -8,6 +8,7 @@ Summary: MySQL driver for asyncio License: MIT URL: https://github.com/aio-libs/aiomysql Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz +Patch0: fix-requirements.patch BuildArch: noarch %description @@ -30,9 +31,8 @@ aiomysql tries to be like awesome aiopg library and preserve same api, look and feel. %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 rm -rf %{pypi_name}.egg-info -sed -i -e "s/PyMySQL>=0.9,<=0.9.3/PyMySQL/g" requirements-dev.txt %build %py3_build @@ -47,8 +47,8 @@ sed -i -e "s/PyMySQL>=0.9,<=0.9.3/PyMySQL/g" requirements-dev.txt %files -n python3-%{pypi_name} %license LICENSE %doc README.rst -%{python3_sitelib}/%{pypi_name} -%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/ %changelog * Thu Sep 03 2020 Fabian Affolter - 0.0.20-6