From 90d9544cbe95598df6b26cbf94ebb01033b1d586e8cdefab916fcbf751ea0dd1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:47:07 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pilkit?expand=0&rev=3 --- python-pilkit.changes | 5 +++++ python-pilkit.spec | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/python-pilkit.changes b/python-pilkit.changes index 12f6f3d..16a6637 100644 --- a/python-pilkit.changes +++ b/python-pilkit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:51:33 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Sat Nov 18 12:05:03 UTC 2017 - tbechtold@suse.com diff --git a/python-pilkit.spec b/python-pilkit.spec index 376d036..c2de8f7 100644 --- a/python-pilkit.spec +++ b/python-pilkit.spec @@ -1,7 +1,7 @@ # # spec file for package python-pilkit # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,22 +21,21 @@ Name: python-pilkit Version: 2.0 Release: 0 -License: BSD-3-Clause Summary: A collection of utilities and processors for the Python Imaging Libary -Url: http://github.com/matthewwithanm/pilkit/ +License: BSD-3-Clause Group: Development/Languages/Python +Url: http://github.com/matthewwithanm/pilkit/ Source: https://files.pythonhosted.org/packages/source/p/pilkit/pilkit-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # SECTION test requirements %if %{with test} BuildRequires: %{python_module mock >= 1.0.1} BuildRequires: %{python_module nose-progressive >= 1.5.1} +BuildRequires: %{python_module Pillow} BuildRequires: %{python_module mock >= 1.0.1} BuildRequires: %{python_module nose >= 1.3.6} -BuildRequires: %{python_module Pillow} %endif # /SECTION BuildRequires: fdupes From 072df9bcd58b8b111efcb0c5e3679198dd150099fc22a6f69cc69000937df6ed Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:18:13 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pilkit?expand=0&rev=4 --- python-pilkit.spec | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/python-pilkit.spec b/python-pilkit.spec index c2de8f7..a8838f2 100644 --- a/python-pilkit.spec +++ b/python-pilkit.spec @@ -24,23 +24,20 @@ 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: http://github.com/matthewwithanm/pilkit/ Source: https://files.pythonhosted.org/packages/source/p/pilkit/pilkit-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch # SECTION test requirements %if %{with test} -BuildRequires: %{python_module mock >= 1.0.1} -BuildRequires: %{python_module nose-progressive >= 1.5.1} - 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 -BuildRequires: fdupes -BuildArch: noarch - %python_subpackages %description @@ -66,8 +63,8 @@ interface for performing manipulations on PIL images. %endif %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS LICENSE README.rst +%license LICENSE +%doc AUTHORS README.rst %{python_sitelib}/* %changelog