14
0
forked from pool/python-pypng

- Update to 0.0.19:

* No upstream changelog, many flake/codewarning fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypng?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2019-03-01 09:54:32 +00:00
committed by Git OBS Bridge
parent fc792335a7
commit 70edd18563
4 changed files with 16 additions and 25 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:985a1306319e3187e2cb3dabec95a7a0f0f281ae2e1fec04289bed520fecd932
size 377942

3
pypng-0.0.19.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3145d042947fa8121e6bd5a7e59149871bf8c13675c42371e12977499d7f3926
size 293055

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 1 09:50:17 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.0.19:
* No upstream changelog, many flake/codewarning fixes
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 4 12:52:40 UTC 2018 - Matej Cepl <mcepl@suse.com> Tue Dec 4 12:52:40 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pypng # spec file for package python-pypng
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,25 +17,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pypng Name: python-pypng
Version: 0.0.18 Version: 0.0.19
Release: 0 Release: 0
Summary: Pure Python PNG image encoder/decoder Summary: Pure Python PNG image encoder/decoder
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/drj11/pypng URL: https://github.com/drj11/pypng
Source: https://files.pythonhosted.org/packages/source/p/pypng/pypng-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pypng/pypng-%{version}.tar.gz
BuildRequires: %{python_module Cython} BuildRequires: %{python_module Cython}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python3-2to3
%if %{with test}
BuildRequires: %{python_module numpy}
%endif
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -52,22 +47,12 @@ sed -i -e '/^#!\//, 1d' code/png.py
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
%python_expand cp code/test_png.py test_png_%{$python_bin_suffix}.py %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:code $python code/test_png.py
if [ -f test_png_%{python3_bin_suffix}.py ]; then
2to3 -wn test_png_%{python3_bin_suffix}.py
fi
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}:code
$python test_png_%{$python_bin_suffix}.py
}
%endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %doc README.md
%doc README.txt %license LICENCE
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog