!6 Remove python-traceback2 subpackage
Merge pull request !6 from jpzhang187/master
This commit is contained in:
commit
4b7a4afa9a
@ -1,26 +1,17 @@
|
|||||||
Name: python-traceback2
|
Name: python-traceback2
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 19
|
Release: 20
|
||||||
Summary: Backport of the traceback module
|
Summary: Backport of the traceback module
|
||||||
License: Python
|
License: Python
|
||||||
URL: https://github.com/testing-cabal/traceback2
|
URL: https://github.com/testing-cabal/traceback2
|
||||||
Source0: https://pypi.python.org/packages/source/t/traceback2/traceback2-%{version}.tar.gz
|
Source0: https://pypi.python.org/packages/source/t/traceback2/traceback2-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-pbr python2-linecache2 python2-devel
|
|
||||||
BuildRequires: python3-pbr python3-devel
|
BuildRequires: python3-pbr python3-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A backport of traceback to older supported Pythons.
|
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
|
%package -n python3-traceback2
|
||||||
Summary: Backport of the traceback module
|
Summary: Backport of the traceback module
|
||||||
Requires: python3-linecache2
|
Requires: python3-linecache2
|
||||||
@ -31,34 +22,27 @@ A backport of traceback to older supported Pythons.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qc
|
%setup -qc
|
||||||
mv traceback2-%{version} python2
|
mv traceback2-%{version} python3
|
||||||
mv python2/traceback2/tests .
|
mv python3/traceback2/tests .
|
||||||
cp -a python2 python3
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd python2
|
cd python3
|
||||||
%{__python2} setup.py build
|
|
||||||
cd ../python3
|
|
||||||
%{__python3} setup.py build
|
%{__python3} setup.py build
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# python3 must be install first
|
|
||||||
cd python3
|
cd python3
|
||||||
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%{__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 ..
|
cd ..
|
||||||
|
|
||||||
%files -n python2-traceback2
|
|
||||||
%doc python2/README.rst python2/AUTHORS python2/ChangeLog
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-traceback2
|
%files -n python3-traceback2
|
||||||
%doc python3/README.rst python3/AUTHORS python3/ChangeLog
|
%doc python3/README.rst python3/AUTHORS python3/ChangeLog
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4.0-19
|
||||||
- Type:other
|
- Type:other
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user