From db57e4acc0acb02dfb73044e8071f89e631cbcfb9106d6b5119e00cfff022413 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 14:13:08 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenvwrapper?expand=0&rev=59 --- python-virtualenvwrapper.changes | 5 +++++ python-virtualenvwrapper.spec | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/python-virtualenvwrapper.changes b/python-virtualenvwrapper.changes index 90b3fc4..687bd52 100644 --- a/python-virtualenvwrapper.changes +++ b/python-virtualenvwrapper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:55:51 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Mon Jan 8 07:47:07 UTC 2018 - alarrosa@suse.com diff --git a/python-virtualenvwrapper.spec b/python-virtualenvwrapper.spec index 6485f4f..84a7d4e 100644 --- a/python-virtualenvwrapper.spec +++ b/python-virtualenvwrapper.spec @@ -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/ # @@ -27,7 +27,6 @@ Group: Development/Languages/Python Url: https://virtualenvwrapper.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz Patch: virtualenvwrapper-4.2-fix-bashisms.patch -BuildRequires: %{python_module devel} BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros From 2adebc7f82bb05fa47f0590cd7967573781945aa67618f025c38af28bbae967e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:25:16 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenvwrapper?expand=0&rev=60 --- python-virtualenvwrapper.spec | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/python-virtualenvwrapper.spec b/python-virtualenvwrapper.spec index 84a7d4e..9e80f0d 100644 --- a/python-virtualenvwrapper.spec +++ b/python-virtualenvwrapper.spec @@ -24,23 +24,22 @@ Release: 0 Summary: Enhancements to virtualenv License: MIT Group: Development/Languages/Python -Url: https://virtualenvwrapper.readthedocs.io/ +URL: https://virtualenvwrapper.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz -Patch: virtualenvwrapper-4.2-fix-bashisms.patch +Patch0: virtualenvwrapper-4.2-fix-bashisms.patch BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-stevedore +Requires: python-virtualenv +Requires: python-virtualenv-clone +BuildArch: noarch %if %{with test} BuildRequires: %{python_module stevedore} BuildRequires: %{python_module virtualenv-clone} BuildRequires: %{python_module virtualenv} %endif -BuildRequires: fdupes -Requires: python-stevedore -Requires: python-virtualenv -Requires: python-virtualenv-clone -BuildArch: noarch - %python_subpackages %description @@ -61,7 +60,7 @@ conflicts in their dependencies. %prep %setup -q -n virtualenvwrapper-%{version} -%patch -p1 +%patch0 -p1 sed -i -e '1i#!/bin/sh' virtualenvwrapper.sh %build @@ -90,8 +89,8 @@ done %python_uninstall_alternative virtualenvwrapper %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS ChangeLog LICENSE README.es.rst README.ja.rst README.txt +%license LICENSE +%doc AUTHORS ChangeLog README.es.rst README.ja.rst README.txt %python_alternative %{_bindir}/virtualenvwrapper %python_alternative %{_bindir}/virtualenvwrapper_lazy %{python_sitelib}/*