forked from pool/python-pilkit
Accepting request 896631 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/896631 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pilkit?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 1 08:51:39 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
- %check: use %pytest rpm macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 18 10:15:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pilkit
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,27 +17,25 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-pilkit
|
||||
Version: 2.0
|
||||
Release: 0
|
||||
Summary: A collection of utilities and processors for the Python Imaging Libary
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/matthewwithanm/pilkit/
|
||||
URL: https://github.com/matthewwithanm/pilkit/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pilkit/pilkit-%{version}.tar.gz
|
||||
Patch0: pil-fix-test.patch
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module mock >= 1.0.1}
|
||||
BuildRequires: %{python_module nose >= 1.3.6}
|
||||
BuildRequires: %{python_module nose-progressive >= 1.5.1}
|
||||
%endif
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -59,10 +57,8 @@ interface for performing manipulations on PIL images.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user