2020-01-27 07:02:03 +00:00
|
|
|
%if 0%{?fedora} < 32 && 0%{?rhel} < 8
|
2019-08-19 20:56:10 +00:00
|
|
|
%global py2 1
|
|
|
|
%endif
|
|
|
|
|
2012-07-16 06:53:02 +00:00
|
|
|
Name: python-beautifulsoup4
|
2020-01-19 11:32:49 +00:00
|
|
|
Version: 4.8.2
|
2019-12-02 19:21:35 +00:00
|
|
|
Release: 1%{?dist}
|
2012-07-16 06:53:02 +00:00
|
|
|
Summary: HTML/XML parser for quick-turnaround applications like screen-scraping
|
|
|
|
License: MIT
|
|
|
|
URL: http://www.crummy.com/software/BeautifulSoup/
|
2018-02-07 17:51:46 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
|
2012-07-16 06:53:02 +00:00
|
|
|
BuildArch: noarch
|
2019-08-19 20:56:10 +00:00
|
|
|
%if 0%{?py2}
|
2018-02-07 08:26:17 +00:00
|
|
|
BuildRequires: python2-devel >= 2.7
|
2016-07-26 18:27:49 +00:00
|
|
|
# html5lib BR just for test coverage
|
2018-02-07 08:26:17 +00:00
|
|
|
BuildRequires: python2-html5lib
|
|
|
|
BuildRequires: python2-setuptools
|
2019-08-19 20:56:10 +00:00
|
|
|
BuildRequires: python2-soupsieve
|
2018-02-07 08:26:17 +00:00
|
|
|
BuildRequires: python2-lxml
|
2017-08-19 22:09:24 +00:00
|
|
|
BuildRequires: /usr/bin/2to3
|
2018-02-07 17:51:46 +00:00
|
|
|
BuildRequires: python2-tools
|
2019-08-19 20:56:10 +00:00
|
|
|
%endif
|
2018-02-07 17:51:46 +00:00
|
|
|
# html5lib BR just for test coverage
|
|
|
|
BuildRequires: python3-html5lib
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2019-08-19 20:56:10 +00:00
|
|
|
BuildRequires: python3-soupsieve
|
2018-02-07 17:51:46 +00:00
|
|
|
BuildRequires: python3-lxml
|
2012-07-16 06:53:02 +00:00
|
|
|
|
2019-06-12 12:11:19 +00:00
|
|
|
%global _description %{expand:
|
|
|
|
Beautiful Soup is a Python HTML/XML parser designed for quick
|
|
|
|
turnaround projects like screen-scraping. Three features make it
|
|
|
|
powerful:
|
|
|
|
|
|
|
|
Beautiful Soup won't choke if you give it bad markup.
|
|
|
|
|
|
|
|
Beautiful Soup provides a few simple methods and Pythonic idioms for
|
|
|
|
navigating, searching, and modifying a parse tree.
|
|
|
|
|
|
|
|
Beautiful Soup automatically converts incoming documents to Unicode
|
|
|
|
and outgoing documents to UTF-8.
|
|
|
|
|
|
|
|
Beautiful Soup parses anything you give it.
|
|
|
|
|
|
|
|
Valuable data that was once locked up in poorly-designed websites is
|
|
|
|
now within your reach. Projects that would have taken hours take only
|
|
|
|
minutes with Beautiful Soup.}
|
2012-07-16 06:53:02 +00:00
|
|
|
|
2017-08-19 13:39:42 +00:00
|
|
|
%description %_description
|
2012-07-16 06:53:02 +00:00
|
|
|
|
2019-08-19 20:56:10 +00:00
|
|
|
%if 0%{?py2}
|
2018-02-07 17:51:46 +00:00
|
|
|
%package -n python2-beautifulsoup4
|
|
|
|
Summary: %summary
|
2018-02-07 08:26:17 +00:00
|
|
|
Requires: python2-lxml
|
2019-08-19 20:56:10 +00:00
|
|
|
Requires: python2-soupsieve
|
2017-08-19 13:39:42 +00:00
|
|
|
%{?python_provide:%python_provide python2-beautifulsoup4}
|
2019-06-12 12:11:19 +00:00
|
|
|
|
2017-08-19 13:39:42 +00:00
|
|
|
%description -n python2-beautifulsoup4 %_description
|
2019-08-19 20:56:10 +00:00
|
|
|
%endif
|
2012-07-16 06:53:02 +00:00
|
|
|
|
2018-02-07 17:51:46 +00:00
|
|
|
%package -n python3-beautifulsoup4
|
|
|
|
Summary: %summary
|
2012-07-22 18:00:55 +00:00
|
|
|
Requires: python3-lxml
|
2019-08-19 20:56:10 +00:00
|
|
|
Requires: python3-soupsieve
|
2012-07-16 06:53:02 +00:00
|
|
|
Obsoletes: python3-BeautifulSoup < 1:3.2.1-2
|
2019-06-12 12:11:19 +00:00
|
|
|
%{?python_provide:%python_provide python3-beautifulsoup4}
|
|
|
|
|
2018-02-07 17:51:46 +00:00
|
|
|
%description -n python3-beautifulsoup4 %_description
|
2012-07-16 06:53:02 +00:00
|
|
|
|
|
|
|
%prep
|
2018-02-07 17:51:46 +00:00
|
|
|
%setup -q -n beautifulsoup4-%{version}
|
|
|
|
rm -rf %{py3dir} && cp -a . %{py3dir}
|
2012-07-16 06:53:02 +00:00
|
|
|
|
|
|
|
%build
|
2019-08-19 20:56:10 +00:00
|
|
|
%{?py2:%{py2_build}}
|
2012-07-16 06:53:02 +00:00
|
|
|
pushd %{py3dir}
|
|
|
|
2to3 --write --nobackups .
|
2018-02-07 17:51:46 +00:00
|
|
|
%{py3_build}
|
2012-07-16 06:53:02 +00:00
|
|
|
|
|
|
|
%install
|
2019-08-19 20:56:10 +00:00
|
|
|
%{?py2:%{py2_install}}
|
2012-07-16 06:53:02 +00:00
|
|
|
pushd %{py3dir}
|
2018-02-07 17:51:46 +00:00
|
|
|
%{py3_install}
|
2012-07-16 06:53:02 +00:00
|
|
|
|
|
|
|
%check
|
2019-08-19 20:56:10 +00:00
|
|
|
%{?py2:%{__python2} -m unittest discover -s bs4 || : }
|
2012-07-16 06:53:02 +00:00
|
|
|
pushd %{py3dir}
|
2019-08-19 20:56:10 +00:00
|
|
|
%{__python3} -m unittest discover -s bs4 || :
|
2012-07-16 06:53:02 +00:00
|
|
|
|
2019-08-19 20:56:10 +00:00
|
|
|
%if 0%{?py2}
|
2017-08-19 13:39:42 +00:00
|
|
|
%files -n python2-beautifulsoup4
|
2016-07-26 18:13:43 +00:00
|
|
|
%license COPYING.txt
|
2019-08-19 20:56:10 +00:00
|
|
|
%doc NEWS.txt TODO.txt
|
2018-02-07 17:51:46 +00:00
|
|
|
%{python2_sitelib}/beautifulsoup4-%{version}*.egg-info
|
|
|
|
%{python2_sitelib}/bs4
|
2019-08-19 20:56:10 +00:00
|
|
|
%endif
|
2012-07-16 06:53:02 +00:00
|
|
|
|
|
|
|
%files -n python3-beautifulsoup4
|
2016-07-26 18:13:43 +00:00
|
|
|
%license COPYING.txt
|
2019-08-19 20:56:10 +00:00
|
|
|
%doc NEWS.txt TODO.txt
|
2012-07-16 06:53:02 +00:00
|
|
|
%{python3_sitelib}/beautifulsoup4-%{version}*.egg-info
|
|
|
|
%{python3_sitelib}/bs4
|
|
|
|
|
|
|
|
%changelog
|
2020-01-19 11:32:49 +00:00
|
|
|
* Sun Jan 19 2020 Terje Rosten <terje.rosten@ntnu.no> - 4.8.2-1
|
|
|
|
- 4.8.2
|
|
|
|
|
2019-12-02 19:21:35 +00:00
|
|
|
* Mon Dec 02 2019 Terje Rosten <terje.rosten@ntnu.no> - 4.8.1-1
|
|
|
|
- 4.8.1
|
|
|
|
|
|
|
|
* Tue Sep 03 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.8.0-3
|
2019-09-03 16:57:29 +00:00
|
|
|
- Subpackage python2-beautifulsoup4 has been removed (#1748299)
|
|
|
|
|
2019-08-19 21:18:37 +00:00
|
|
|
* Mon Aug 19 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.8.0-2
|
|
|
|
- Rebuilt for Python 3.8 (again)
|
|
|
|
|
2019-08-19 20:56:10 +00:00
|
|
|
* Sun Aug 18 2019 Terje Rosten <terje.rosten@ntnu.no> - 4.8.0-1
|
|
|
|
- 4.8.0
|
|
|
|
|
2019-08-17 00:22:30 +00:00
|
|
|
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 4.6.3-4
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 12:22:37 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-02 05:48:42 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-08-27 16:53:14 +00:00
|
|
|
* Mon Aug 27 2018 Terje Rosten <terje.rosten@ntnu.no> - 4.6.3-1
|
|
|
|
- 4.6.3
|
|
|
|
|
2018-07-30 11:28:09 +00:00
|
|
|
* Mon Jul 30 2018 Terje Rosten <terje.rosten@ntnu.no> - 4.6.1-1
|
|
|
|
- 4.6.1
|
|
|
|
|
2018-07-13 23:35:42 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-17 20:45:45 +00:00
|
|
|
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 4.6.0-7
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-07 17:51:46 +00:00
|
|
|
* Wed Feb 07 2018 Terje Rosten <terje.rosten@ntnu.no> - 4.6.0-6
|
|
|
|
- Clean up
|
|
|
|
|
2018-02-07 08:26:17 +00:00
|
|
|
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 4.6.0-5
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2017-09-29 14:36:47 +00:00
|
|
|
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 4.6.0-4
|
|
|
|
- Cleanup spec file conditionals
|
|
|
|
|
2017-08-19 13:39:42 +00:00
|
|
|
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.6.0-3
|
|
|
|
- Python 2 binary package renamed to python2-beautifulsoup4
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
|
2017-07-27 09:43:47 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-08 16:56:58 +00:00
|
|
|
* Mon May 08 2017 Terje Rosten <terje.rosten@ntnu.no> - 4.6.0-1
|
|
|
|
- 4.6.0
|
|
|
|
|
2017-02-11 08:27:11 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-04 19:43:42 +00:00
|
|
|
* Wed Jan 04 2017 Terje Rosten <terje.rosten@ntnu.no> - 4.5.3-1
|
|
|
|
- 4.5.3
|
|
|
|
|
2016-12-19 23:52:49 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.5.1-3
|
|
|
|
- Un-bootstrap for Python 3.6
|
|
|
|
|
2016-12-19 17:20:37 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.5.1-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-08-09 17:25:33 +00:00
|
|
|
* Tue Aug 09 2016 Terje Rosten <terje.rosten@ntnu.no> - 4.5.1-1
|
|
|
|
- 4.5.1
|
|
|
|
|
2016-07-26 18:18:49 +00:00
|
|
|
* Tue Jul 26 2016 Ville Skyttä <ville.skytta@iki.fi> - 4.5.0-1
|
|
|
|
- Update to 4.5.0
|
2016-07-26 18:13:43 +00:00
|
|
|
- Mark COPYING.txt as %%license
|
2016-07-26 18:27:49 +00:00
|
|
|
- Don't require html5lib
|
|
|
|
- Require lxml on EL too
|
2016-07-26 17:34:10 +00:00
|
|
|
|
2016-07-19 09:04:05 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.1-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 19:05:26 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 15:17:33 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-10-03 14:27:09 +00:00
|
|
|
* Sat Oct 03 2015 Terje Rosten <terje.rosten@ntnu.no> - 4.4.1-1
|
|
|
|
- 4.4.1
|
|
|
|
|
2015-07-04 14:27:25 +00:00
|
|
|
* Sat Jul 04 2015 Terje Rosten <terje.rosten@ntnu.no> - 4.4.0-1
|
|
|
|
- 4.4.0
|
|
|
|
|
2015-06-18 18:36:24 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-06-07 18:48:15 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-15 15:23:03 +00:00
|
|
|
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 4.3.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2015-10-03 14:27:09 +00:00
|
|
|
* Thu Oct 17 2013 Terje Rosten <terje.rosten@ntnu.no> - 4.3.2-1
|
2013-10-21 13:22:31 +00:00
|
|
|
- 4.3.2
|
|
|
|
|
2013-08-19 18:18:15 +00:00
|
|
|
* Mon Aug 19 2013 Terje Rosten <terje.rosten@ntnu.no> - 4.3.1-1
|
|
|
|
- 4.3.1
|
|
|
|
|
2013-08-04 06:31:01 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-29 12:02:27 +00:00
|
|
|
* Sat Jun 29 2013 Terje Rosten <terje.rosten@ntnu.no> - 4.2.1-1
|
|
|
|
- 4.2.1
|
|
|
|
|
|
|
|
* Mon May 27 2013 Terje Rosten <terje.rosten@ntnu.no> - 4.2.0-1
|
2013-05-27 08:59:29 +00:00
|
|
|
- 4.2.0
|
|
|
|
|
2013-03-19 20:58:53 +00:00
|
|
|
* Tue Mar 19 2013 Ralph Bean <rbean@redhat.com> - 4.1.3-3
|
|
|
|
- Don't include python-lxml for el6.
|
|
|
|
- Conditionalize python3 support.
|
|
|
|
|
2013-02-14 19:01:45 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-12-03 13:44:37 +00:00
|
|
|
* Mon Dec 03 2012 Terje Rosten <terje.rosten@ntnu.no> - 4.1.3-1
|
|
|
|
- 4.1.3
|
|
|
|
|
2012-08-04 10:38:28 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 4.1.1-5
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-07-22 18:00:55 +00:00
|
|
|
* Sun Jul 22 2012 Terje Rosten <terje.rosten@ntnu.no> - 4.1.1-4
|
|
|
|
- Move python3 req to sub package
|
|
|
|
|
2012-07-21 05:07:59 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-16 06:53:02 +00:00
|
|
|
* Tue Jul 10 2012 Terje Rosten <terje.rosten@ntnu.no> - 4.1.1-2
|
|
|
|
- License is MIT
|
|
|
|
- Remove old cruft
|
|
|
|
- Fix obsolete
|
|
|
|
|
|
|
|
* Mon Jul 09 2012 Terje Rosten <terje.rosten@ntnu.no> - 4.1.1-1
|
|
|
|
- 4.1.1
|
|
|
|
- Obsolete the old py3-bs4 from bs3 package
|
|
|
|
|
|
|
|
* Mon May 28 2012 Terje Rosten <terje.rosten@ntnu.no> - 4.0.5-1
|
|
|
|
- 4.0.5
|
|
|
|
|
|
|
|
* Sat Mar 24 2012 Terje Rosten <terje.rosten@ntnu.no> - 4.0.1-1
|
|
|
|
- initial package based on python-BeautifulSoup.
|
|
|
|
|