diff --git a/pr_106.patch b/pr_106.patch new file mode 100644 index 0000000..af3d94d --- /dev/null +++ b/pr_106.patch @@ -0,0 +1,19 @@ +commit 66a8d1bc88f99a05349099e1121ef1f57856cded +Author: John Vandenberg +Date: Sun Sep 13 10:45:51 2020 +0700 + + Remove test modules from runtime distribution + +Index: pypng-0.0.20/setup.py +=================================================================== +--- pypng-0.0.20.orig/setup.py ++++ pypng-0.0.20/setup.py +@@ -40,7 +40,7 @@ https://pypng.readthedocs.io/en/latest/ + author_email='drj@pobox.com', + url='https://github.com/drj11/pypng', + package_dir={'': 'code'}, +- py_modules=['png', 'test_png', 'pngsuite'], ++ py_modules=['png'], + scripts=[ + "code/prichunkpng", + "code/priforgepng", diff --git a/python-pypng.changes b/python-pypng.changes index e5cf2d9..2037d04 100644 --- a/python-pypng.changes +++ b/python-pypng.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 11 11:22:36 UTC 2020 - John Vandenberg + +- Remove test module from runtime package with pr_106.patch + ------------------------------------------------------------------- Wed May 20 07:26:40 UTC 2020 - Petr Gajdos diff --git a/python-pypng.spec b/python-pypng.spec index 0de3a5d..870a41e 100644 --- a/python-pypng.spec +++ b/python-pypng.spec @@ -26,6 +26,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/drj11/pypng Source: https://files.pythonhosted.org/packages/source/p/pypng/pypng-%{version}.tar.gz +Patch0: pr_106.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} @@ -41,6 +42,7 @@ PyPNG allows PNG image files to be read and written using pure Python. %prep %setup -q -n pypng-%{version} +%patch0 -p1 sed -i -e '/^#!\//, 1d' code/png.py %build