Remove python2-unittest2 subpackage
This commit is contained in:
parent
3bbaac91ca
commit
0a5bb80097
@ -1,6 +1,6 @@
|
|||||||
Name: python-unittest2
|
Name: python-unittest2
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 16
|
Release: 17
|
||||||
Summary: New features added to the unittest testing framework in Python 2.7 and onwards
|
Summary: New features added to the unittest testing framework in Python 2.7 and onwards
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://pypi.python.org/pypi/unittest2
|
URL: http://pypi.python.org/pypi/unittest2
|
||||||
@ -15,17 +15,6 @@ unittest2 is a backport of the new features added to
|
|||||||
the unittest testing framework in Python 2.7 and onwards.
|
the unittest testing framework in Python 2.7 and onwards.
|
||||||
It is tested to run on Python 2.6, 2.7, 3.2, 3.3, 3.4 and pypy.
|
It is tested to run on Python 2.6, 2.7, 3.2, 3.3, 3.4 and pypy.
|
||||||
|
|
||||||
%package -n python2-unittest2
|
|
||||||
Summary: New features added to the unittest testing framework in Python 2.7 and onwards
|
|
||||||
%{?python_provide:%python_provide python2-unittest2}
|
|
||||||
BuildRequires: python2-devel python2-setuptools python2-six python2-traceback2
|
|
||||||
Requires: python2-traceback2 python2-setuptools python2-six
|
|
||||||
|
|
||||||
%description -n python2-unittest2
|
|
||||||
unittest2 is a backport of the new features added to
|
|
||||||
the unittest testing framework in Python 2.7 and onwards.
|
|
||||||
It is tested to run on Python 2.6, 2.7, 3.2, 3.3, 3.4 and pypy.
|
|
||||||
|
|
||||||
%package -n python3-unittest2
|
%package -n python3-unittest2
|
||||||
Summary: New features added to the unittest testing framework in Python 2.7 and onwards
|
Summary: New features added to the unittest testing framework in Python 2.7 and onwards
|
||||||
%{?python_provide:%python_provide python3-unittest2}
|
%{?python_provide:%python_provide python3-unittest2}
|
||||||
@ -42,7 +31,6 @@ It is tested to run on Python 2.6, 2.7, 3.2, 3.3, 3.4 and pypy.
|
|||||||
rm -rf unittest2.egg-info
|
rm -rf unittest2.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -53,22 +41,9 @@ ln -s unit2-%{python3_version} unit2-3
|
|||||||
ln -s unit2-%{python3_version} python3-unit2
|
ln -s unit2-%{python3_version} python3-unit2
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
%py2_install
|
|
||||||
cd %{buildroot}%{_bindir}
|
|
||||||
mv unit2 unit2-%{python2_version}
|
|
||||||
ln -s unit2-%{python2_version} unit2-2
|
|
||||||
ln -s unit2-2 unit2
|
|
||||||
cd -
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} -m unittest2
|
|
||||||
%{__python3} -m unittest2
|
%{__python3} -m unittest2
|
||||||
|
|
||||||
%files -n python2-unittest2
|
|
||||||
%doc README.txt
|
|
||||||
%{_bindir}/unit2*
|
|
||||||
%{python2_sitelib}/unittest2*
|
|
||||||
|
|
||||||
%files -n python3-unittest2
|
%files -n python3-unittest2
|
||||||
%doc README.txt
|
%doc README.txt
|
||||||
%{_bindir}/unit2-*
|
%{_bindir}/unit2-*
|
||||||
@ -76,5 +51,8 @@ cd -
|
|||||||
%{python3_sitelib}/unittest2*
|
%{python3_sitelib}/unittest2*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 11 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.1.0-17
|
||||||
|
- Remove python2-unittest2 subpackage
|
||||||
|
|
||||||
* Wed Nov 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.0-16
|
* Wed Nov 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.0-16
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user