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}/*