!6 Remove python-traceback2 subpackage

Merge pull request !6 from jpzhang187/master
This commit is contained in:
openeuler-ci-bot 2020-08-11 19:07:56 +08:00 committed by Gitee
commit 4b7a4afa9a

View File

@ -1,26 +1,17 @@
Name: python-traceback2
Version: 1.4.0
Release: 19
Release: 20
Summary: Backport of the traceback module
License: Python
URL: https://github.com/testing-cabal/traceback2
Source0: https://pypi.python.org/packages/source/t/traceback2/traceback2-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-pbr python2-linecache2 python2-devel
BuildRequires: python3-pbr python3-devel
%description
A backport of traceback to older supported Pythons.
%package -n python2-traceback2
Summary: Backport of the traceback module
Requires: python2-linecache2
%{?python_provide:%python_provide python2-traceback2}
%description -n python2-traceback2
A backport of traceback to older supported Pythons.
%package -n python3-traceback2
Summary: Backport of the traceback module
Requires: python3-linecache2
@ -31,34 +22,27 @@ A backport of traceback to older supported Pythons.
%prep
%setup -qc
mv traceback2-%{version} python2
mv python2/traceback2/tests .
cp -a python2 python3
mv traceback2-%{version} python3
mv python3/traceback2/tests .
%build
cd python2
%{__python2} setup.py build
cd ../python3
cd python3
%{__python3} setup.py build
cd ..
%install
# python3 must be install first
cd python3
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
cd ../python2
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
cd ..
%files -n python2-traceback2
%doc python2/README.rst python2/AUTHORS python2/ChangeLog
%{python2_sitelib}/*
%files -n python3-traceback2
%doc python3/README.rst python3/AUTHORS python3/ChangeLog
%{python3_sitelib}/*
%changelog
* Tue Aug 11 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.4.0-20
- Remove python2-traceback2 subpackage
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4.0-19
- Type:other
- Id:NA