remove python2
This commit is contained in:
parent
463cc7c59d
commit
c81f6c9226
@ -1,25 +1,17 @@
|
||||
Name: python-junitxml
|
||||
Version: 0.7
|
||||
Release: 17
|
||||
Release: 18
|
||||
Summary: Python unittest TestResult that outputs JUnit compatible XML
|
||||
License: LGPLv3
|
||||
URL: https://launchpad.net/pyjunitxml
|
||||
Source0: https://pypi.python.org/packages/source/j/junitxml/junitxml-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%description
|
||||
A Python unittest TestResult that outputs JUnit compatible
|
||||
XML.
|
||||
|
||||
%package -n python2-junitxml
|
||||
Summary: Python unittest TestResult that outputs JUnit compatible XML
|
||||
%{?python_provide:%python_provide python2-junitxml}
|
||||
|
||||
%description -n python2-junitxml
|
||||
A Python unittest TestResult that outputs JUnit compatible
|
||||
XML.
|
||||
|
||||
%package -n python3-junitxml
|
||||
Summary: Python unittest TestResult that outputs JUnit compatible XML
|
||||
BuildRequires: python3-devel
|
||||
@ -30,28 +22,15 @@ XML.
|
||||
|
||||
%prep
|
||||
%autosetup -n junitxml-%{version} -p1
|
||||
rm -rf %{py3dir};cp -a . %{py3dir}
|
||||
|
||||
%build
|
||||
%{__python2} setup.py build
|
||||
cd %{py3dir};%{__python3} setup.py build;cd -
|
||||
%{__python3} setup.py build
|
||||
|
||||
%install
|
||||
cd %{py3dir};%{__python3} setup.py install --skip-build --root %{buildroot};cd -
|
||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
||||
mv %{buildroot}%{_bindir}/pyjunitxml %{buildroot}%{_bindir}/pyjunitxml-%{python3_version}
|
||||
ln -s ./pyjunitxml-%{python3_version} %{buildroot}%{_bindir}/pyjunitxml-3
|
||||
|
||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
||||
mv %{buildroot}%{_bindir}/pyjunitxml %{buildroot}%{_bindir}/pyjunitxml-%{python2_version}
|
||||
ln -s ./pyjunitxml-%{python2_version} %{buildroot}%{_bindir}/pyjunitxml-2
|
||||
ln -s ./pyjunitxml-2 %{buildroot}%{_bindir}/pyjunitxml
|
||||
|
||||
%files -n python2-junitxml
|
||||
%{_bindir}/{pyjunitxml,pyjunitxml-2}
|
||||
%{_bindir}/pyjunitxml-%{python2_version}
|
||||
%{python2_sitelib}/*
|
||||
%doc COPYING
|
||||
|
||||
%files -n python3-junitxml
|
||||
%{_bindir}/pyjunitxml-3
|
||||
%{_bindir}/pyjunitxml-%{python3_version}
|
||||
@ -59,5 +38,8 @@ ln -s ./pyjunitxml-2 %{buildroot}%{_bindir}/pyjunitxml
|
||||
%doc COPYING
|
||||
|
||||
%changelog
|
||||
* Wed Oct 21 2020 Ge wang <wangge20@huawei.com> - 0.7-18
|
||||
- remove python2 packages
|
||||
|
||||
* Mon Mar 9 2020 likexin <likexin4@huawei.com> - 0.7-17
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user