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