2022-05-24 11:56:57 +00:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2023-04-26 11:10:35 +08:00
|
|
|
|
2019-09-30 11:14:44 -04:00
|
|
|
Name: python-beautifulsoup4
|
2023-04-26 11:10:35 +08:00
|
|
|
Version: 4.12.2
|
2022-05-24 11:56:57 +00:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Screen-scraping library
|
2019-09-30 11:14:44 -04:00
|
|
|
License: MIT
|
2022-11-10 14:48:12 +08:00
|
|
|
URL: https://www.crummy.com/software/BeautifulSoup/bs4/
|
2023-04-26 11:10:35 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
|
|
|
|
|
Source1: tox-run-pkgs.tar.gz
|
|
|
|
|
Patch0: 0001-add-tox-config-file-for-test.patch
|
2019-09-30 11:14:44 -04:00
|
|
|
BuildArch: noarch
|
2022-11-10 14:48:12 +08:00
|
|
|
|
|
|
|
|
Requires: python3-soupsieve
|
|
|
|
|
|
2022-05-24 11:56:57 +00:00
|
|
|
%description
|
|
|
|
|
This package provides a python library which is designed for quick
|
|
|
|
|
turnaround projects.It provides methods for navigating and modifying
|
|
|
|
|
a parse tree.It can help convert incoming documents to Unicode
|
2019-09-30 11:14:44 -04:00
|
|
|
and outgoing documents to utf-8.
|
|
|
|
|
|
2022-05-24 11:56:57 +00:00
|
|
|
%package -n python3-beautifulsoup4
|
|
|
|
|
Summary: Screen-scraping library
|
|
|
|
|
Provides: python-beautifulsoup4
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-html5lib
|
|
|
|
|
BuildRequires: python3-lxml
|
2022-11-10 14:48:12 +08:00
|
|
|
BuildRequires: python3-pip
|
2023-04-26 11:10:35 +08:00
|
|
|
BuildRequires: python3-tox
|
|
|
|
|
BuildRequires: python3-html5lib
|
|
|
|
|
BuildRequires: python3-lxml
|
|
|
|
|
BuildRequires: python3-soupsieve
|
|
|
|
|
BuildRequires: python3-editables
|
|
|
|
|
BuildRequires: python3-hatch-vcs
|
|
|
|
|
BuildRequires: python3-hatchling
|
2022-05-24 11:56:57 +00:00
|
|
|
%description -n python3-beautifulsoup4
|
|
|
|
|
This package provides a python library which is designed for quick
|
|
|
|
|
turnaround projects.It provides methods for navigating and modifying
|
|
|
|
|
a parse tree.It can help convert incoming documents to Unicode
|
|
|
|
|
and outgoing documents to utf-8.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Screen-scraping library
|
|
|
|
|
Provides: python3-beautifulsoup4-doc
|
|
|
|
|
%description help
|
|
|
|
|
This package provides a python library which is designed for quick
|
|
|
|
|
turnaround projects.It provides methods for navigating and modifying
|
|
|
|
|
a parse tree.It can help convert incoming documents to Unicode
|
|
|
|
|
and outgoing documents to utf-8.
|
2019-09-30 11:14:44 -04:00
|
|
|
|
|
|
|
|
%prep
|
2023-04-26 11:10:35 +08:00
|
|
|
# tox-run-pkgs.tar.gz is local pkgs for tox run
|
|
|
|
|
# use conda to create py36,py37,py38,py39,py310,py311 env
|
|
|
|
|
# use command line below to create the pkgs contents and make tar.gz
|
|
|
|
|
# pip download -d ./tox-run-pkgs -r tox-deps.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
|
# tar -czvf tor-run-pkgs.tar.gz tor-run-pkgs
|
|
|
|
|
%setup -c -b 1
|
|
|
|
|
%autosetup -p1 -n beautifulsoup4-%{version} -b 0
|
|
|
|
|
# config pip use local pkgs dir and check
|
|
|
|
|
pip config set install.no-index true
|
|
|
|
|
pip config set install.find-links %{_builddir}/tox-run-pkgs
|
|
|
|
|
ls %{_builddir}/tox-run-pkgs
|
|
|
|
|
cat ~/.config/pip/pip.conf
|
2019-09-30 11:14:44 -04:00
|
|
|
|
|
|
|
|
%build
|
2023-04-26 11:10:35 +08:00
|
|
|
%pyproject_build
|
2019-09-30 11:14:44 -04:00
|
|
|
|
|
|
|
|
%install
|
2023-04-26 11:10:35 +08:00
|
|
|
%pyproject_install beautifulsoup4==%{version}
|
2019-09-30 11:14:44 -04:00
|
|
|
|
|
|
|
|
%check
|
2023-04-26 11:10:35 +08:00
|
|
|
tox
|
2019-09-30 11:14:44 -04:00
|
|
|
|
2023-04-26 11:10:35 +08:00
|
|
|
%files -n python3-beautifulsoup4
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc NEWS.txt
|
|
|
|
|
%{python3_sitelib}/beautifulsoup4-%{version}.dist-info/
|
|
|
|
|
%{python3_sitelib}/bs4
|
2019-09-30 11:14:44 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2023-04-26 11:10:35 +08:00
|
|
|
* Wed Apr 26 2023 Dongxing Wang <dxwangk@isoftstone.com> - 4.12.2-1
|
|
|
|
|
- Add build requires pythone3-soupsieve and upgrade to 4.12.2
|
|
|
|
|
|
2022-11-10 14:48:12 +08:00
|
|
|
* Thu Nov 10 2022 liqiuyu <liqiuyu@kylinos.cn> - 4.11.1-1
|
|
|
|
|
- Upgrade package to version 4.11.1
|
|
|
|
|
|
2022-05-24 11:56:57 +00:00
|
|
|
* Tue May 24 2022 renliang <renliang@uniontech.com> - 4.10.0-1
|
|
|
|
|
- Upgrade package python3-beautifulsoup4 to version 4.10.0
|
|
|
|
|
|
2022-01-10 17:58:01 +08:00
|
|
|
* Mon Jan 10 2022 shixuantong <shixuantong@huawei.com> - 4.9.3-2
|
|
|
|
|
- converts the code base to Python 3, and removes the use_2to3 reference in setup.py.
|
|
|
|
|
|
2021-07-26 11:37:59 +08:00
|
|
|
* Mon Jul 26 2021 liusheng<liusheng2048@huawei.com> - 4.9.3-1
|
|
|
|
|
- Upgrade to version 4.9.3
|
|
|
|
|
|
2020-08-05 09:27:39 +08:00
|
|
|
* Fri Oct 30 2020 wangjie<wangjie294@huawei.com> -4.6.3-4
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove python2
|
2020-08-04 19:32:43 +08:00
|
|
|
* Tue Aug 4 2020 wenzhanli<wenzhanli2@huawei.com> - 4.6.3-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix make test error
|
|
|
|
|
|
2019-09-30 11:14:44 -04:00
|
|
|
* Sat Sep 21 2019 yangfeiyu <yangfeiyu2@huawei.com> - 4.6.3-2
|
|
|
|
|
- spec init
|