!11 python-stestr delete -S git from %autosetup, and delete BuildRequires git

From: @chenyanpanHW
Reviewed-by: @xiyuanwang
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2021-08-02 02:38:51 +00:00 committed by Gitee
commit 9115617e20

View File

@ -2,7 +2,7 @@
Name: python-stestr Name: python-stestr
Version: 3.0.1 Version: 3.0.1
Release: 4 Release: 5
Summary: A test runner runner similar to testrepository Summary: A test runner runner similar to testrepository
License: Apache-2.0 License: Apache-2.0
URL: http://stestr.readthedocs.io/en/latest/ URL: http://stestr.readthedocs.io/en/latest/
@ -17,7 +17,6 @@ stestr hard codes python-subunit-isms into how it works.
%package -n python3-stestr %package -n python3-stestr
Summary: A test runner runner similar to testrepository Summary: A test runner runner similar to testrepository
BuildRequires: git
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pbr BuildRequires: python3-pbr
@ -51,7 +50,7 @@ which enabled testr to work with any subunit emitting runner are gone. \
stestr hard codes python-subunit-isms into how it works. stestr hard codes python-subunit-isms into how it works.
%prep %prep
%autosetup -n stestr-%{version} -S git %autosetup -n stestr-%{version} -p1
rm -rf stestr.egg-info rm -rf stestr.egg-info
rm -f test-requirements.txt requirements.txt rm -f test-requirements.txt requirements.txt
sed -i 's/pbr>=2.0.0/pbr/g' setup.py sed -i 's/pbr>=2.0.0/pbr/g' setup.py
@ -77,6 +76,9 @@ PYTHON=%{__python3} %{__python3} setup.py test || :
%{python3_sitelib}/stestr-*.egg-info %{python3_sitelib}/stestr-*.egg-info
%changelog %changelog
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.0.1-5
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Mon Dec 28 2020 liksh <liks11@chinaunicom.cn> - 3.0.1-4 * Mon Dec 28 2020 liksh <liks11@chinaunicom.cn> - 3.0.1-4
- Remove python2 support - Remove python2 support