From e90d55f736dddbad68d1a57c822864c4b9da6825873d58321be3d121e0e4eb4d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 14:12:37 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcversioner?expand=0&rev=7 --- python-vcversioner.changes | 5 +++++ python-vcversioner.spec | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/python-vcversioner.changes b/python-vcversioner.changes index 2b1bbe7..28e9207 100644 --- a/python-vcversioner.changes +++ b/python-vcversioner.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:55:46 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Fri Apr 7 20:55:59 UTC 2017 - toddrme2178@gmail.com diff --git a/python-vcversioner.spec b/python-vcversioner.spec index 76818f9..28a7c2e 100644 --- a/python-vcversioner.spec +++ b/python-vcversioner.spec @@ -1,7 +1,7 @@ # # spec file for package python-vcversioner # -# Copyright (c) 2017 SUSE LINUX Products 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,23 +12,23 @@ # 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-%{**}} Name: python-vcversioner Version: 2.16.0.0 Release: 0 -License: ISC Summary: Use version control tags to discover version numbers -Url: https://github.com/habnabit/vcversioner +License: ISC Group: Development/Languages/Python +Url: https://github.com/habnabit/vcversioner Source0: https://pypi.python.org/packages/source/v/vcversioner/vcversioner-%{version}.tar.gz Source1: https://raw.githubusercontent.com/habnabit/vcversioner/%{version}/COPYING +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch From 95fce93ea415106fa159f70f989cfb2f92211fa2c261c942cdeb0a53f81a770f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:25:06 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcversioner?expand=0&rev=8 --- python-vcversioner.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python-vcversioner.spec b/python-vcversioner.spec index 28a7c2e..1274f6c 100644 --- a/python-vcversioner.spec +++ b/python-vcversioner.spec @@ -23,15 +23,13 @@ Release: 0 Summary: Use version control tags to discover version numbers License: ISC Group: Development/Languages/Python -Url: https://github.com/habnabit/vcversioner -Source0: https://pypi.python.org/packages/source/v/vcversioner/vcversioner-%{version}.tar.gz +URL: https://github.com/habnabit/vcversioner +Source0: https://files.pythonhosted.org/packages/source/v/vcversioner/vcversioner-%{version}.tar.gz Source1: https://raw.githubusercontent.com/habnabit/vcversioner/%{version}/COPYING BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -54,8 +52,8 @@ cp %{SOURCE1} . %python_exec setup.py test %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst COPYING +%license COPYING +%doc README.rst %{python_sitelib}/vcversioner.py* %pycache_only %{python_sitelib}/__pycache__/vcversioner.*.py* %{python_sitelib}/vcversioner-%{version}-py*.egg-info