!4 remove python2
From: @jlwwlsqc Reviewed-by: @xydong Signed-off-by: @xydong
This commit is contained in:
commit
2e678fb619
@ -1,12 +1,11 @@
|
||||
Name: python-beautifulsoup4
|
||||
Version: 4.6.3
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: HTML/XML parser for quick-turnaround projects
|
||||
License: MIT
|
||||
URL: http://www.crummy.com/software/BeautifulSoup/
|
||||
Source0: https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel >= 2.7 python2-html5lib python2-setuptools python2-lxml python2-tools
|
||||
BuildRequires: python3-devel python3-html5lib python3-setuptools python3-lxml
|
||||
|
||||
%global _description\
|
||||
@ -17,12 +16,6 @@ and outgoing documents to utf-8.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-beautifulsoup4
|
||||
Summary: %summary
|
||||
%description -n python2-beautifulsoup4 %_description
|
||||
Requires: python2-lxml
|
||||
%{?python_provide:%python_provide python2-beautifulsoup4}
|
||||
|
||||
%package -n python3-beautifulsoup4
|
||||
Summary: %summary
|
||||
%description -n python3-beautifulsoup4 %_description
|
||||
@ -38,27 +31,18 @@ rm -rf %{py3dir}
|
||||
cp -a . %{py3dir}
|
||||
|
||||
%build
|
||||
%{py2_build}
|
||||
pushd %{py3dir}
|
||||
2to3 --write --nobackups .
|
||||
%{py3_build}
|
||||
|
||||
%install
|
||||
%{py2_install}
|
||||
pushd %{py3dir}
|
||||
%{py3_install}
|
||||
|
||||
%check
|
||||
%{?py2:%{__python2} -m unittest discover -s bs4 || :}
|
||||
pushd %{py3dir}
|
||||
%{__python3} -m unittest discover -s bs4 || :
|
||||
|
||||
%files -n python2-beautifulsoup4
|
||||
%{python2_sitelib}/bs4
|
||||
%{python2_sitelib}/beautifulsoup4-%{version}*.egg-info
|
||||
%doc TODO.txt AUTHORS.txt NEWS.txt
|
||||
%license COPYING.txt
|
||||
|
||||
%files -n python3-beautifulsoup4
|
||||
%{python3_sitelib}/bs4
|
||||
%{python3_sitelib}/beautifulsoup4-%{version}*.egg-info
|
||||
@ -66,6 +50,11 @@ pushd %{py3dir}
|
||||
%license COPYING.txt
|
||||
|
||||
%changelog
|
||||
* Fri Oct 30 2020 wangjie<wangjie294@huawei.com> -4.6.3-4
|
||||
- Type:NA
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:remove python2
|
||||
* Tue Aug 4 2020 wenzhanli<wenzhanli2@huawei.com> - 4.6.3-3
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user