python-beautifulsoup4/python-beautifulsoup4.spec

67 lines
1.9 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:14:44 -04:00
Name: python-beautifulsoup4
Version: 4.9.3
Release: 2
2019-09-30 11:14:44 -04:00
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: python3-devel python3-html5lib python3-setuptools python3-lxml
BuildRequires: python3-soupsieve
Patch6000: backport-converts-the-code-base-to-Python-3-and-removes-the-u.patch
2019-09-30 11:14:44 -04:00
%global _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\
and outgoing documents to utf-8.
%description %_description
%package -n python3-beautifulsoup4
Summary: %summary
%description -n python3-beautifulsoup4 %_description
Obsoletes: python3-BeautifulSoup < 1:3.2.1-2
Requires: python3-lxml
%prep
%setup -q -n beautifulsoup4-%{version}
%patch6000 -p1
2019-09-30 11:14:44 -04:00
%build
%{py3_build}
%install
%{py3_install}
%check
2020-08-04 19:32:43 +08:00
%{__python3} -m unittest discover -s bs4 || :
2019-09-30 11:14:44 -04:00
%files -n python3-beautifulsoup4
%license COPYING.txt
%doc NEWS.txt TODO.txt
%{python3_sitelib}/beautifulsoup4-%{version}*.egg-info
%{python3_sitelib}/bs4
2019-09-30 11:14:44 -04:00
%changelog
* 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.
* Mon Jul 26 2021 liusheng<liusheng2048@huawei.com> - 4.9.3-1
- Upgrade to version 4.9.3
* 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