|
|
@ -1,9 +1,11 @@
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 1
|
|
|
|
%global with_python3 1
|
|
|
|
%global with_python3 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%global oname beautifulsoup4
|
|
|
|
%global oname beautifulsoup4
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-beautifulsoup4
|
|
|
|
Name: python-beautifulsoup4
|
|
|
|
Version: 4.1.3
|
|
|
|
Version: 4.1.3
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: HTML/XML parser for quick-turnaround applications like screen-scraping
|
|
|
|
Summary: HTML/XML parser for quick-turnaround applications like screen-scraping
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -12,11 +14,20 @@ Source0: http://www.crummy.com/software/BeautifulSoup/bs4/download/beauti
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-html5lib
|
|
|
|
BuildRequires: python-html5lib
|
|
|
|
BuildRequires: python-lxml
|
|
|
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
|
|
|
|
BuildRequires: python-unittest2
|
|
|
|
|
|
|
|
BuildRequires: python-nose
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python-html5lib
|
|
|
|
Requires: python-html5lib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
BuildRequires: python-lxml
|
|
|
|
Requires: python-lxml
|
|
|
|
Requires: python-lxml
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python-tools
|
|
|
|
BuildRequires: python-tools
|
|
|
|
BuildRequires: python3-html5lib
|
|
|
|
BuildRequires: python3-html5lib
|
|
|
@ -104,7 +115,11 @@ pushd %{py3dir}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
|
|
|
|
PYTHONPATH=$(pwd) nosetests
|
|
|
|
|
|
|
|
%else
|
|
|
|
%{__python} -m unittest discover -s bs4
|
|
|
|
%{__python} -m unittest discover -s bs4
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
pushd %{py3dir}
|
|
|
@ -125,6 +140,10 @@ pushd %{py3dir}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|