From 42239f1562c2606969a9a3320cab45ef0c74f92496179572e3d965ca60a32a93 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:25:31 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoints?expand=0&rev=7 --- python-entrypoints.changes | 5 +++++ python-entrypoints.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-entrypoints.changes b/python-entrypoints.changes index 66e2c79..9782abf 100644 --- a/python-entrypoints.changes +++ b/python-entrypoints.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:47:39 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Thu Nov 9 18:47:32 UTC 2017 - toddrme2178@gmail.com diff --git a/python-entrypoints.spec b/python-entrypoints.spec index 8c0d053..b16bf7b 100644 --- a/python-entrypoints.spec +++ b/python-entrypoints.spec @@ -1,7 +1,7 @@ # # spec file for package python-entrypoints # -# 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: https://github.com/takluyver/entrypoints Source: https://files.pythonhosted.org/packages/source/e/entrypoints/entrypoints-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} From 8666c4820df2379e74a48a650fcf8c634ab6891b8c1bdf95f2cd737d03893d8c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:12:45 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoints?expand=0&rev=8 --- python-entrypoints.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python-entrypoints.spec b/python-entrypoints.spec index b16bf7b..c297610 100644 --- a/python-entrypoints.spec +++ b/python-entrypoints.spec @@ -24,10 +24,11 @@ Release: 0 Summary: Discover and load entry points from installed packages License: MIT Group: Development/Languages/Python -Url: https://github.com/takluyver/entrypoints +URL: https://github.com/takluyver/entrypoints Source: https://files.pythonhosted.org/packages/source/e/entrypoints/entrypoints-%{version}.tar.gz BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %if %{with test} BuildRequires: %{python_module pytest} BuildRequires: python-configparser @@ -35,8 +36,6 @@ BuildRequires: python-configparser %ifpython2 Requires: python-configparser >= 3.5 %endif -BuildArch: noarch - %python_subpackages %description @@ -62,15 +61,14 @@ plugins, or multiple groups if it has different kinds of plugins. %if %{with test} %check pushd tests -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} $python test_entrypoints.py } popd %endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE +%license LICENSE %{python_sitelib}/entrypoints.py* %pycache_only %{python_sitelib}/__pycache__/entrypoints*.py* %{python_sitelib}/entrypoints-%{version}-py*.egg-info