diff --git a/python-stestr.spec b/python-stestr.spec index 2dd01519d615521c9a2668385511ddb03fe1e976..ea5a134bc71498c09a480ab162f8f25854bed10b 100644 --- a/python-stestr.spec +++ b/python-stestr.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-stestr Version: 2.1.0 -Release: 1 +Release: 2 Summary: A parallel Python test runner built around subunit License: Apache-2.0 URL: http://stestr.readthedocs.io/en/latest/ @@ -14,6 +14,7 @@ stestr is parallel Python test runner designed to execute unittest test suites u %package -n python2-stestr Summary: A parallel Python test runner built around subunit Provides: python2-stestr +BuildRequires: python2-pbr BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-pip @@ -36,6 +37,8 @@ stestr is parallel Python test runner designed to execute unittest test suites u %install %py2_install +cp %{buildroot}/%{_bindir}/stestr %{buildroot}/%{_bindir}/stestr-2 +ln -sf %{_bindir}/stestr-2 %{buildroot}/%{_bindir}/stestr-%{python2_version} install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -64,6 +67,7 @@ mv %{buildroot}/doclist.lst . %files -n python2-stestr -f filelist.lst %dir %{python2_sitelib}/* +%{_bindir}/stestr* %files help -f doclist.lst %{_docdir}/*