The command 'stestr-3' is missed after upgrade in https://gitee.com/src-openeuler/python-stestr/pulls/12 This adds the lns back. (cherry picked from commit 52aa2cb0c36614975f0857166692be2fd490f01c)
114 lines
3.3 KiB
RPMSpec
114 lines
3.3 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-stestr
|
|
Version: 3.1.0
|
|
Release: 2
|
|
Summary: A parallel Python test runner built around subunit
|
|
License: Apache-2.0
|
|
URL: http://stestr.readthedocs.io/en/latest/
|
|
Source0: https://files.pythonhosted.org/packages/b2/bd/2db3dbae7b6dd30cf45009e9d75a39413e74171314d2b0e8b68e69e5b3a5/stestr-3.1.0.tar.gz
|
|
BuildArch: noarch
|
|
%description
|
|
A parallel Python test runner built around subunit
|
|
|
|
%package -n python3-stestr
|
|
Summary: A parallel Python test runner built around subunit
|
|
Provides: python-stestr
|
|
# Base build requires
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
# General requires
|
|
BuildRequires: python3-future
|
|
BuildRequires: python3-cliff
|
|
BuildRequires: python3-subunit
|
|
BuildRequires: python3-fixtures
|
|
BuildRequires: python3-testtools
|
|
BuildRequires: python3-pyyaml
|
|
BuildRequires: python3-voluptuous
|
|
#BuildRequires: python3-subunit2sql
|
|
# General requires
|
|
Requires: python3-future
|
|
Requires: python3-pbr
|
|
Requires: python3-cliff
|
|
Requires: python3-subunit
|
|
Requires: python3-fixtures
|
|
Requires: python3-testtools
|
|
Requires: python3-pyyaml
|
|
Requires: python3-voluptuous
|
|
# Requires: python3-subunit2sql
|
|
|
|
%description -n python3-stestr
|
|
A parallel Python test runner built around subunit
|
|
|
|
%package help
|
|
Summary: A parallel Python test runner built around subunit
|
|
Provides: python3-stestr-doc
|
|
%description help
|
|
A parallel Python test runner built around subunit
|
|
|
|
%prep
|
|
%autosetup -n stestr-%{version}
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
ln -s stestr %{buildroot}/%{_bindir}/stestr-3
|
|
ln -s stestr-3 %{buildroot}/%{_bindir}/stestr-%{python3_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
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
pushd %{buildroot}
|
|
if [ -d usr/lib ]; then
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/lib64 ]; then
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/bin ]; then
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/sbin ]; then
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
touch doclist.lst
|
|
if [ -d usr/share/man ]; then
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
fi
|
|
popd
|
|
mv %{buildroot}/filelist.lst .
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
%check
|
|
# %{__python3} setup.py test
|
|
|
|
%files -n python3-stestr -f filelist.lst
|
|
%dir %{python3_sitelib}/*
|
|
%{_bindir}/stestr*
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Thu Aug 12 2021 huangtianhua <huangtianhua@huawei.com> - 3.1.0-2
|
|
- Adds ln stestr-3 and stestr-%{python3_version}
|
|
|
|
* Tue Aug 10 2021 OpenStack_SIG <openstack@openeuler.org> - 3.1.0-1
|
|
- update to 3.1.0
|
|
|
|
* 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
|
|
- Remove python2 support
|
|
|
|
* Fri Nov 20 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
- Package Spec generated
|
|
|