From f0ff2105651623b852201e3531c7243d95b9720df27c25e440979db82ea1c270 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:28:27 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freetype-py?expand=0&rev=3 --- python-freetype-py.changes | 5 +++++ python-freetype-py.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-freetype-py.changes b/python-freetype-py.changes index 1109111..f29d73a 100644 --- a/python-freetype-py.changes +++ b/python-freetype-py.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:48:12 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Tue Nov 7 18:23:47 UTC 2017 - toddrme2178@gmail.com diff --git a/python-freetype-py.spec b/python-freetype-py.spec index ad12483..0105bba 100644 --- a/python-freetype-py.spec +++ b/python-freetype-py.spec @@ -1,7 +1,7 @@ # # spec file for package python-freetype-py # -# 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,12 +21,11 @@ Name: python-freetype-py Version: 1.1 Release: 0 -License: BSD-3-Clause Summary: Freetype python bindings -Url: https://github.com/rougier/freetype-py +License: BSD-3-Clause Group: Development/Languages/Python +Url: https://github.com/rougier/freetype-py Source: https://files.pythonhosted.org/packages/source/f/freetype-py/freetype-py-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros From ca5c1e2c62fd2abc4e7f8eafe1553c0cba2a3a0bcb5b3048acafdefef4d33e19 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:13:42 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freetype-py?expand=0&rev=4 --- python-freetype-py.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/python-freetype-py.spec b/python-freetype-py.spec index 0105bba..78bcb6f 100644 --- a/python-freetype-py.spec +++ b/python-freetype-py.spec @@ -24,17 +24,16 @@ Release: 0 Summary: Freetype python bindings License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/rougier/freetype-py +URL: https://github.com/rougier/freetype-py Source: https://files.pythonhosted.org/packages/source/f/freetype-py/freetype-py-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: freetype2 +BuildArch: noarch %if %{with test} BuildRequires: freetype2 %endif -Requires: freetype2 -BuildArch: noarch - %python_subpackages %description @@ -58,8 +57,8 @@ sed -i -e '/^#!\//, 1d' freetype/ft_structs.py freetype/ft_types.py %endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE.txt README.rst +%license LICENSE.txt +%doc README.rst %{python_sitelib}/* %changelog