!5 remove python2 dependency

From: @xinghe_1
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-30 15:49:54 +08:00 committed by Gitee
commit 5d15d2611f

View File

@ -2,7 +2,7 @@
Name: python-cssselect Name: python-cssselect
Version: 1.1.0 Version: 1.1.0
Release: 1 Release: 2
Summary: CSS Selectors for Python Summary: CSS Selectors for Python
License: BSD License: BSD
URL: https://github.com/scrapy/cssselect URL: https://github.com/scrapy/cssselect
@ -16,16 +16,6 @@ Such expressions can be used in lxml or another XPath engine to find the
matching elements in an XML or HTML document. matching elements in an XML or HTML document.
%package -n python2-%{pkgname}
%{?python_provide:%python_provide python2-%{pkgname}}
Summary: %{summary}
BuildRequires: python2-devel python2-setuptools
%description -n python2-%{pkgname}
Cssselect parses CSS3 Selectors and translates them to XPath 1.0 expressions.
Such expressions can be used in lxml or another XPath engine to find the
matching elements in an XML or HTML document. This is the Python 2 version.
%package -n python3-%{pkgname} %package -n python3-%{pkgname}
%{?python_provide:%python_provide python3-%{pkgname}} %{?python_provide:%python_provide python3-%{pkgname}}
Summary: %{summary} Summary: %{summary}
@ -41,25 +31,20 @@ matching elements in an XML or HTML document. This is the Python 3 version.
%autosetup -n %{pkgname}-%{version} %autosetup -n %{pkgname}-%{version}
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%files -n python2-%{pkgname}
%doc README.rst
%license LICENSE
%{python2_sitelib}/%{pkgname}*/
%files -n python3-%{pkgname} %files -n python3-%{pkgname}
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python3_sitelib}/%{pkgname}*/ %{python3_sitelib}/%{pkgname}*/
%changelog %changelog
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.1.0-2
- remove python2 dependency
* Jul Thu 16 2020 yanglongkang <yanglongkang@huawei.com> - 1.1.0-1 * Jul Thu 16 2020 yanglongkang <yanglongkang@huawei.com> - 1.1.0-1
- update package to 1.1.0 - update package to 1.1.0