From cea29e841c9fc1d638b66a6cf4aa097991ead7bc5bef4490bcaccd6aa404289a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:20:14 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cogapp?expand=0&rev=3 --- python-cogapp.changes | 5 +++++ python-cogapp.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-cogapp.changes b/python-cogapp.changes index 22974ae..1cc4999 100644 --- a/python-cogapp.changes +++ b/python-cogapp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:46:44 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Fri Apr 14 22:54:18 UTC 2017 - toddrme2178@gmail.com diff --git a/python-cogapp.spec b/python-cogapp.spec index ec30186..7bc30dd 100644 --- a/python-cogapp.spec +++ b/python-cogapp.spec @@ -1,7 +1,7 @@ # # spec file for package python-cogapp # -# 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,7 @@ # 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/ # @@ -26,7 +26,6 @@ License: MIT Group: Development/Languages/Python Url: http://nedbatchelder.com/code/cog Source: https://files.pythonhosted.org/packages/source/c/cogapp/cogapp-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} %if %{with test} BuildRequires: %{python_module nose} From d5b641a19e2add99ba83bc381d25de5db7a0104efc35f462f9755371e067a469 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:11:20 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cogapp?expand=0&rev=4 --- python-cogapp.spec | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/python-cogapp.spec b/python-cogapp.spec index 7bc30dd..dc19bf2 100644 --- a/python-cogapp.spec +++ b/python-cogapp.spec @@ -24,18 +24,16 @@ Release: 0 Summary: A code generator for executing Python snippets in source files License: MIT Group: Development/Languages/Python -Url: http://nedbatchelder.com/code/cog +URL: http://nedbatchelder.com/code/cog Source: https://files.pythonhosted.org/packages/source/c/cogapp/cogapp-%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(preun): update-alternatives +BuildArch: noarch %if %{with test} BuildRequires: %{python_module nose} %endif -BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch -Requires(post): update-alternatives -Requires(preun): update-alternatives - %python_subpackages %description @@ -66,8 +64,8 @@ mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog %python_uninstall_alternative cog %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE.txt README.txt +%license LICENSE.txt +%doc README.txt %python_alternative %{_bindir}/cog %{python_sitelib}/*