From 243ab66a06f5d3823371106709aad7e59aab77cb Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Mon, 22 Jul 2019 18:41:43 +0000 Subject: [PATCH] Add in Troy Dawson patch for bootstrapping --- python-beautifulsoup4.spec | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/python-beautifulsoup4.spec b/python-beautifulsoup4.spec index cafec22..1cdb418 100644 --- a/python-beautifulsoup4.spec +++ b/python-beautifulsoup4.spec @@ -1,24 +1,30 @@ +# Bootstracp +%global with_tests 0 + Name: python-beautifulsoup4 Version: 4.6.3 -Release: 2%{?dist} +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 -# html5lib BR just for test coverage -BuildRequires: python2-html5lib BuildRequires: python2-setuptools BuildRequires: python2-lxml BuildRequires: /usr/bin/2to3 BuildRequires: python2-tools -# html5lib BR just for test coverage -BuildRequires: python3-html5lib 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\ @@ -70,10 +76,12 @@ pushd %{py3dir} 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 @@ -88,6 +96,9 @@ pushd %{py3dir} %{python3_sitelib}/bs4 %changelog +* Mon Jul 22 2019 Stephen Smoogen - 4.6.3-2.1 +- Add in Troy Dawson patch for bootstrapping + * Sat Feb 02 2019 Fedora Release Engineering - 4.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild