|
|
@ -1,6 +1,6 @@
|
|
|
|
# Ciruclar dependency with soupsieve which must be disabled at times
|
|
|
|
# Ciruclar dependency with soupsieve which must be disabled at times
|
|
|
|
%bcond_without soupsieve
|
|
|
|
%bcond_with soupsieve
|
|
|
|
%bcond_without tests
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 32 && 0%{?rhel} < 8
|
|
|
|
%if 0%{?fedora} < 32 && 0%{?rhel} < 8
|
|
|
|
%global py2 1
|
|
|
|
%global py2 1
|
|
|
@ -8,11 +8,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-beautifulsoup4
|
|
|
|
Name: python-beautifulsoup4
|
|
|
|
Version: 4.10.0
|
|
|
|
Version: 4.10.0
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: HTML/XML parser for quick-turnaround applications like screen-scraping
|
|
|
|
Summary: HTML/XML parser for quick-turnaround applications like screen-scraping
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://www.crummy.com/software/BeautifulSoup/
|
|
|
|
URL: http://www.crummy.com/software/BeautifulSoup/
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
|
|
|
|
|
|
|
|
Patch0: nosieve.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
%if 0%{?py2}
|
|
|
|
%if 0%{?py2}
|
|
|
|
BuildRequires: python2-devel >= 2.7
|
|
|
|
BuildRequires: python2-devel >= 2.7
|
|
|
@ -85,8 +86,13 @@ Obsoletes: python3-BeautifulSoup < 1:3.2.1-2
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n beautifulsoup4-%{version}
|
|
|
|
%setup -q -n beautifulsoup4-%{version}
|
|
|
|
|
|
|
|
%if %{without soupsieve}
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf %{py3dir} && cp -a . %{py3dir}
|
|
|
|
rm -rf %{py3dir} && cp -a . %{py3dir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{?py2:%{py2_build}}
|
|
|
|
%{?py2:%{py2_build}}
|
|
|
|
pushd %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
@ -122,6 +128,9 @@ pushd %{py3dir}
|
|
|
|
%{python3_sitelib}/bs4
|
|
|
|
%{python3_sitelib}/bs4
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Feb 14 2022 Steve Traylen <steve.traylen@cern.ch> - 4.10.0-5
|
|
|
|
|
|
|
|
- Build without soupsieve dependency to break circular dependency
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 13 2022 Terje Rosten <terje.rosten@ntnu.no> - 4.10.0-4
|
|
|
|
* Sun Feb 13 2022 Terje Rosten <terje.rosten@ntnu.no> - 4.10.0-4
|
|
|
|
- Rebuild to get fc36/rawhide split
|
|
|
|
- Rebuild to get fc36/rawhide split
|
|
|
|
|
|
|
|
|
|
|
|