Compare commits
No commits in common. "4b7a4afa9a6f2643a71f51e0205634c01e37dc37" and "60d5b29aa1d55804217cebf76185f4143394847c" have entirely different histories.
4b7a4afa9a
...
60d5b29aa1
@ -1,19 +1,30 @@
|
|||||||
Name: python-traceback2
|
Name: python-traceback2
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 20
|
Release: 19
|
||||||
Summary: Backport of the traceback module
|
Summary: Backport of the Python stdlib 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: python3-pbr python3-devel
|
BuildRequires: python2-devel python2-pbr python2-linecache2 python3-devel python3-pbr
|
||||||
|
|
||||||
|
BuildRequires: python2-contextlib2 python2-fixtures python2-testtools python2-unittest2
|
||||||
|
BuildRequires: python3-contextlib2 python3-fixtures python3-testtools python3-unittest2
|
||||||
|
|
||||||
%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 Python stdlib 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 Python stdlib traceback module
|
||||||
Requires: python3-linecache2
|
Requires: python3-linecache2
|
||||||
%{?python_provide:%python_provide python3-traceback2}
|
%{?python_provide:%python_provide python3-traceback2}
|
||||||
|
|
||||||
@ -21,30 +32,114 @@ Requires: python3-linecache2
|
|||||||
A backport of traceback to older supported Pythons.
|
A backport of traceback to older supported Pythons.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qc
|
%autosetup -c -n traceback2-%{version} -p1
|
||||||
mv traceback2-%{version} python3
|
mv traceback2-%{version} python2
|
||||||
mv python3/traceback2/tests .
|
mv python2/traceback2/tests .
|
||||||
|
cp -a python2 python3
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd python3
|
cd python2
|
||||||
|
%{__python2} setup.py build
|
||||||
|
cd ../python3
|
||||||
%{__python3} setup.py build
|
%{__python3} setup.py build
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%install
|
%install
|
||||||
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 ..
|
||||||
|
|
||||||
|
%check
|
||||||
|
cd python2
|
||||||
|
mv ../tests traceback2/
|
||||||
|
%{__python2} -m unittest2 -v
|
||||||
|
mv traceback2/tests ../
|
||||||
|
cd ../python3
|
||||||
|
mv ../tests traceback2/
|
||||||
|
%{__python3} -m unittest2 -v || true
|
||||||
|
mv traceback2/tests ../
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%files -n python2-traceback2
|
||||||
|
%doc python2/AUTHORS python2/ChangeLog python2/README.rst
|
||||||
|
%{python2_sitelib}/*
|
||||||
|
|
||||||
%files -n python3-traceback2
|
%files -n python3-traceback2
|
||||||
%doc python3/README.rst python3/AUTHORS python3/ChangeLog
|
%doc python3/AUTHORS python3/ChangeLog python3/README.rst
|
||||||
%{python3_sitelib}/*
|
%{python3_siName: python-traceback2
|
||||||
|
Version: 1.4.0
|
||||||
|
Release: 19
|
||||||
|
Summary: Backport of the Python stdlib 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-devel python2-pbr python2-linecache2 python3-devel python3-pbr
|
||||||
|
|
||||||
|
BuildRequires: python2-contextlib2 python2-fixtures python2-testtools python2-unittest2
|
||||||
|
BuildRequires: python3-contextlib2 python3-fixtures python3-testtools python3-unittest2
|
||||||
|
|
||||||
|
%description
|
||||||
|
A backport of traceback to older supported Pythons.
|
||||||
|
|
||||||
|
%package -n python2-traceback2
|
||||||
|
Summary: Backport of the Python stdlib 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 Python stdlib traceback module
|
||||||
|
Requires: python3-linecache2
|
||||||
|
%{?python_provide:%python_provide python3-traceback2}
|
||||||
|
|
||||||
|
%description -n python3-traceback2
|
||||||
|
A backport of traceback to older supported Pythons.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -c -n traceback2-%{version} -p1
|
||||||
|
mv traceback2-%{version} python2
|
||||||
|
mv python2/traceback2/tests .
|
||||||
|
cp -a python2 python3
|
||||||
|
|
||||||
|
%build
|
||||||
|
cd python2
|
||||||
|
%{__python2} setup.py build
|
||||||
|
cd ../python3
|
||||||
|
%{__python3} setup.py build
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%install
|
||||||
|
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 ..
|
||||||
|
|
||||||
|
%check
|
||||||
|
cd python2
|
||||||
|
mv ../tests traceback2/
|
||||||
|
%{__python2} -m unittest2 -v
|
||||||
|
mv traceback2/tests ../
|
||||||
|
cd ../python3
|
||||||
|
mv ../tests traceback2/
|
||||||
|
%{__python3} -m unittest2 -v || true
|
||||||
|
mv traceback2/tests ../
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
%files -n python2-traceback2
|
||||||
|
%doc python2/AUTHORS python2/ChangeLog python2/README.rst
|
||||||
|
%{python2_sitelib}/*
|
||||||
|
|
||||||
|
%files -n python3-traceback2
|
||||||
|
%doc python3/AUTHORS python3/ChangeLog python3/README.rst
|
||||||
|
%{python3_sielib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Aug 11 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.4.0-20
|
* Fri Nov 15 2019 sunguoshuai <sunguoshuai@huawei.com> - 1.4.0-19
|
||||||
- Remove python2-traceback2 subpackage
|
- Package init
|
||||||
|
|
||||||
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4.0-19
|
|
||||||
- Type:other
|
|
||||||
- Id:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:init package
|
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: testing-cabal/traceback2
|
|
||||||
tag_prefix: ^
|
|
||||||
seperator: .
|
|
||||||
Loading…
x
Reference in New Issue
Block a user