commit
c1b9ff874b
@ -0,0 +1 @@
|
||||
SOURCES/beautifulsoup4-4.6.3.tar.gz
|
@ -0,0 +1 @@
|
||||
c1524e05640204bd1eca7b56ec12e7dd7b2d0b8e SOURCES/beautifulsoup4-4.6.3.tar.gz
|
@ -0,0 +1,233 @@
|
||||
# Bootstracp
|
||||
%global with_tests 0
|
||||
|
||||
Name: python-beautifulsoup4
|
||||
Version: 4.6.3
|
||||
Release: 2%{?dist}.1
|
||||
Summary: HTML/XML parser for quick-turnaround applications like screen-scraping
|
||||
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
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-lxml
|
||||
BuildRequires: /usr/bin/2to3
|
||||
BuildRequires: python2-tools
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-lxml
|
||||
|
||||
%if 0%{?with_tests}
|
||||
# html5lib BR just for test coverage
|
||||
BuildRequires: python2-html5lib
|
||||
BuildRequires: python3-html5lib
|
||||
%endif # with_tests
|
||||
|
||||
|
||||
%global _description\
|
||||
Beautiful Soup is a Python HTML/XML parser designed for quick\
|
||||
turnaround projects like screen-scraping. Three features make it\
|
||||
powerful:\
|
||||
\
|
||||
Beautiful Soup wont 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.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-beautifulsoup4
|
||||
Summary: %summary
|
||||
Requires: python2-lxml
|
||||
%{?python_provide:%python_provide python2-beautifulsoup4}
|
||||
%description -n python2-beautifulsoup4 %_description
|
||||
|
||||
%package -n python3-beautifulsoup4
|
||||
Summary: %summary
|
||||
Requires: python3-lxml
|
||||
Obsoletes: python3-BeautifulSoup < 1:3.2.1-2
|
||||
%description -n python3-beautifulsoup4 %_description
|
||||
|
||||
%prep
|
||||
%setup -q -n beautifulsoup4-%{version}
|
||||
mv AUTHORS.txt AUTHORS.txt.iso
|
||||
iconv -f ISO-8859-1 -t UTF-8 -o AUTHORS.txt AUTHORS.txt.iso
|
||||
touch -r AUTHORS.txt.iso AUTHORS.txt
|
||||
rm -rf %{py3dir} && cp -a . %{py3dir}
|
||||
|
||||
%build
|
||||
%{py2_build}
|
||||
pushd %{py3dir}
|
||||
2to3 --write --nobackups .
|
||||
%{py3_build}
|
||||
|
||||
%install
|
||||
%{py2_install}
|
||||
pushd %{py3dir}
|
||||
%{py3_install}
|
||||
|
||||
%if 0%{?with_tests}
|
||||
%check
|
||||
%{__python2} -m unittest discover -s bs4
|
||||
pushd %{py3dir}
|
||||
%{__python3} -m unittest discover -s bs4
|
||||
%endif # with_tests
|
||||
|
||||
%files -n python2-beautifulsoup4
|
||||
%license COPYING.txt
|
||||
%doc AUTHORS.txt NEWS.txt TODO.txt
|
||||
%{python2_sitelib}/beautifulsoup4-%{version}*.egg-info
|
||||
%{python2_sitelib}/bs4
|
||||
|
||||
%files -n python3-beautifulsoup4
|
||||
%license COPYING.txt
|
||||
%doc AUTHORS.txt NEWS.txt TODO.txt
|
||||
%{python3_sitelib}/beautifulsoup4-%{version}*.egg-info
|
||||
%{python3_sitelib}/bs4
|
||||
|
||||
%changelog
|
||||
* Thu Feb 22 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 4.6.3-2.1
|
||||
- Rebuilt for MSVSphere 8.9
|
||||
|
||||
* Mon Jul 22 2019 Stephen Smoogen <smooge@fedora00.int.smoogespace.com> - 4.6.3-2.1
|
||||
- Add in Troy Dawson <tdawson@redhat.com> patch for bootstrapping
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Mon Aug 27 2018 Terje Rosten <terje.rosten@ntnu.no> - 4.6.3-1
|
||||
- 4.6.3
|
||||
|
||||
* Mon Jul 30 2018 Terje Rosten <terje.rosten@ntnu.no> - 4.6.1-1
|
||||
- 4.6.1
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 4.6.0-7
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Wed Feb 07 2018 Terje Rosten <terje.rosten@ntnu.no> - 4.6.0-6
|
||||
- Clean up
|
||||
|
||||
* 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)
|
||||
|
||||
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 4.6.0-4
|
||||
- Cleanup spec file conditionals
|
||||
|
||||
* 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
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Mon May 08 2017 Terje Rosten <terje.rosten@ntnu.no> - 4.6.0-1
|
||||
- 4.6.0
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Wed Jan 04 2017 Terje Rosten <terje.rosten@ntnu.no> - 4.5.3-1
|
||||
- 4.5.3
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.5.1-3
|
||||
- Un-bootstrap for Python 3.6
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 4.5.1-2
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Tue Aug 09 2016 Terje Rosten <terje.rosten@ntnu.no> - 4.5.1-1
|
||||
- 4.5.1
|
||||
|
||||
* Tue Jul 26 2016 Ville Skyttä <ville.skytta@iki.fi> - 4.5.0-1
|
||||
- Update to 4.5.0
|
||||
- Mark COPYING.txt as %%license
|
||||
- Don't require html5lib
|
||||
- Require lxml on EL too
|
||||
|
||||
* 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
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* 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
|
||||
|
||||
* Sat Oct 03 2015 Terje Rosten <terje.rosten@ntnu.no> - 4.4.1-1
|
||||
- 4.4.1
|
||||
|
||||
* Sat Jul 04 2015 Terje Rosten <terje.rosten@ntnu.no> - 4.4.0-1
|
||||
- 4.4.0
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
|
||||
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 4.3.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
||||
|
||||
* Thu Oct 17 2013 Terje Rosten <terje.rosten@ntnu.no> - 4.3.2-1
|
||||
- 4.3.2
|
||||
|
||||
* Mon Aug 19 2013 Terje Rosten <terje.rosten@ntnu.no> - 4.3.1-1
|
||||
- 4.3.1
|
||||
|
||||
* 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
|
||||
|
||||
* 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
|
||||
- 4.2.0
|
||||
|
||||
* Tue Mar 19 2013 Ralph Bean <rbean@redhat.com> - 4.1.3-3
|
||||
- Don't include python-lxml for el6.
|
||||
- Conditionalize python3 support.
|
||||
|
||||
* 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
|
||||
|
||||
* Mon Dec 03 2012 Terje Rosten <terje.rosten@ntnu.no> - 4.1.3-1
|
||||
- 4.1.3
|
||||
|
||||
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 4.1.1-5
|
||||
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
||||
|
||||
* Sun Jul 22 2012 Terje Rosten <terje.rosten@ntnu.no> - 4.1.1-4
|
||||
- Move python3 req to sub package
|
||||
|
||||
* 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
|
||||
|
||||
* 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.
|
||||
|
Loading…
Reference in new issue