14
0

Accepting request 359049 from home:TheBlackCat:branches:devel:languages:python

Add coerce_comments_to_work_with_lxml.patch

OBS-URL: https://build.opensuse.org/request/show/359049
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5lib?expand=0&rev=20
This commit is contained in:
Todd R
2016-02-12 15:04:05 +00:00
committed by Git OBS Bridge
parent 29be0eb4b5
commit 642aa315f9
3 changed files with 82 additions and 5 deletions

View File

@@ -24,6 +24,8 @@ License: MIT
Group: Development/Languages/Python
Url: https://github.com/html5lib/html5lib-python
Source: http://pypi.python.org/packages/source/h/html5lib/html5lib-%{version}.tar.gz
# PATCH-FIX-UPSTREAM coerce_comments_to_work_with_lxml.patch - fix comments for new lxml comment validation - https://github.com/html5lib/html5lib-python/issues/224
Patch0: coerce_comments_to_work_with_lxml.patch
BuildRequires: python-Genshi >= 0.7
BuildRequires: python-devel
BuildRequires: python-lxml
@@ -56,6 +58,7 @@ simple custom format
%prep
%setup -q -n html5lib-%{version}
%patch0 -p1
%build
python setup.py build
@@ -63,11 +66,11 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# %if 0%{?suse_version} && 0%{?suse_version} > 1110
# %check
# export LANG=en_US.UTF-8
# py.test
# %endif
%if 0%{?suse_version} && 0%{?suse_version} > 1110
%check
export LANG=en_US.UTF-8
py.test
%endif
%files
%defattr(-,root,root,-)