remove python2 of package python-setuptools_git

This commit is contained in:
zhanghua 2020-10-29 15:01:07 +08:00
parent 9724431c11
commit 1c7001bad4

View File

@ -1,6 +1,6 @@
Name: python-setuptools_git
Version: 1.1
Release: 11
Release: 12
Summary: Plugin for integrating Git into setuptools
License: BSD
URL: https://pypi.python.org/project/setuptools-git/%{version}/
@ -14,20 +14,6 @@ installed, Setuptools can be told to include in a module distribution
all the files tracked by git. This is an alternative to explicit
inclusion specifications with MANIFEST.in.
%package -n python2-setuptools_git
Summary: Plugin for integrating Git into setuptools
BuildRequires: python2-devel python2-setuptools
Requires: python2-setuptools
Provides: python2-setuptools-git == %{version}-%{release}
%{?python_provide:%python_provide python2-setuptools_git}
%description -n python2-setuptools_git
This is a plugin for setup tools that enables Git integration. Once
installed, Setuptools can be told to include in a module distribution
all the files tracked by git. This is an alternative to explicit
inclusion specifications with MANIFEST.in.
%package -n python3-setuptools_git
Summary: Plugin for integrating Git into setuptools
@ -46,11 +32,9 @@ inclusion specifications with MANIFEST.in.
%autosetup -n setuptools-git-%{version} -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
@ -59,23 +43,20 @@ inclusion specifications with MANIFEST.in.
%{_bindir}/git init
%{_bindir}/git add .
%{_bindir}/git commit -m 'commit test'
%{__python2} setup.py test -vv
export LANG="en_US.UTF-8"
%{__python3} setup.py test -vv
unset LANG
%files -n python2-setuptools_git
%doc PKG-INFO TODO.txt README.rst
%license LICENSE.txt AUTHORS.txt
%{python2_sitelib}/setuptools_git*/
%files -n python3-setuptools_git
%doc PKG-INFO TODO.txt README.rst
%license LICENSE.txt AUTHORS.txt
%{python3_sitelib}/setuptools_git*/
%changelog
& Sat Jan 18 2020 Lei Zhang <ricky.z@huawei.com> - 1.1-11
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 1.1-12
- remove python2 subpackage
* Sat Jan 18 2020 Lei Zhang <ricky.z@huawei.com> - 1.1-11
- Modify the wrong URL
* Tue Jan 07 2020 Lei Zhang <ricky.z@huawei.com> - 1.1-10