remove python2 support

This commit is contained in:
桐小哥 2020-08-27 10:24:58 +08:00 committed by Gitee
parent 1d48c91492
commit 8da196c0a5

View File

@ -1,6 +1,6 @@
Name: python-urlgrabber
Version: 4.0.0
Release: 1
Release: 2
Summary: Cross-protocol urlgrabber
License: LGPLv2+
Url: http://urlgrabber.baseurl.org/
@ -20,13 +20,6 @@ and use this package.
%description %_description
%package -n python2-urlgrabber
Summary: %summary
BuildRequires: python2-devel python2dist(setuptools) python2dist(pycurl) python2dist(six)
%{?python_provide:%python_provide python2-urlgrabber}
%description -n python2-urlgrabber %_description
%package -n python3-urlgrabber
Summary: %summary
Provides: urlgrabber = %{version}-%{release}
@ -39,21 +32,13 @@ BuildRequires: python3-devel python3dist(setuptools) python3dist(pycurl) python3
%autosetup -n urlgrabber-%{version} -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
sed -e "s|/usr/bin/python|%{__python3}|" -i $RPM_BUILD_ROOT/%{_libexecdir}/*
rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version}
%files -n python2-urlgrabber
%license LICENSE
%doc README ChangeLog TODO
%{python2_sitelib}/urlgrabber
%{python2_sitelib}/urlgrabber-%{version}-py?.?.egg-info
%files -n python3-urlgrabber
%license LICENSE
%doc README ChangeLog TODO
@ -63,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version}
%{python3_sitelib}/urlgrabber-%{version}-py?.?.egg-info
%changelog
* Thu Aug 27 2020 shixuantong<shixuantong@huawei.com> - 4.0.1-2
- remove python2
* Fri Feb 28 2020 lingsheng <lingsheng@huawei.com> - 4.0.0-1
- update version to 4.0.0