From 8b6c2238f87f0108e910fb278468ce69a32d8246eb1fb8f9b180dc6b8d8e557d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:29:52 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-glfw?expand=0&rev=3 --- python-glfw.changes | 5 +++++ python-glfw.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-glfw.changes b/python-glfw.changes index 3014935..e00d841 100644 --- a/python-glfw.changes +++ b/python-glfw.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:48:29 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Tue Nov 7 18:23:57 UTC 2017 - toddrme2178@gmail.com diff --git a/python-glfw.spec b/python-glfw.spec index aefeade..fed900e 100644 --- a/python-glfw.spec +++ b/python-glfw.spec @@ -1,7 +1,7 @@ # # spec file for package python-glfw # -# 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-glfw Version: 1.4.0 Release: 0 -License: MIT Summary: A ctypes-based wrapper for GLFW3 -Url: https://github.com/FlorianRhiem/pyGLFW +License: MIT Group: Development/Languages/Python +Url: https://github.com/FlorianRhiem/pyGLFW Source: https://files.pythonhosted.org/packages/source/g/glfw/glfw-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros From f82a7a3a48b1f5b93e81c647e7d7066e6757d6310fe8338f0eea6af7624d05ee Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:14:01 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-glfw?expand=0&rev=4 --- python-glfw.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/python-glfw.spec b/python-glfw.spec index fed900e..6405d7f 100644 --- a/python-glfw.spec +++ b/python-glfw.spec @@ -24,17 +24,16 @@ Release: 0 Summary: A ctypes-based wrapper for GLFW3 License: MIT Group: Development/Languages/Python -Url: https://github.com/FlorianRhiem/pyGLFW +URL: https://github.com/FlorianRhiem/pyGLFW Source: https://files.pythonhosted.org/packages/source/g/glfw/glfw-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: libglfw3 +BuildArch: noarch %if %{with test} BuildRequires: libglfw3 %endif -Requires: libglfw3 -BuildArch: noarch - %python_subpackages %description @@ -69,8 +68,8 @@ except for: %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.txt LICENSE.txt README.txt +%license LICENSE.txt +%doc CHANGES.txt README.txt %{python_sitelib}/* %changelog