14
0
forked from pool/python-pypng

Accepting request 834140 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/834140
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pypng?expand=0&rev=6
This commit is contained in:
2020-09-14 10:30:30 +00:00
committed by Git OBS Bridge
3 changed files with 26 additions and 0 deletions

19
pr_106.patch Normal file
View File

@@ -0,0 +1,19 @@
commit 66a8d1bc88f99a05349099e1121ef1f57856cded
Author: John Vandenberg <jayvdb@gmail.com>
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",

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 11 11:22:36 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Remove test module from runtime package with pr_106.patch
-------------------------------------------------------------------
Wed May 20 07:26:40 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

View File

@@ -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