|
|
ab7a0c8 |
%global srcname html5-parser
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
Name: python-%{srcname}
|
|
|
9f4db63 |
Version: 0.4.8
|
|
|
a29b147 |
Release: 4%{?dist}
|
|
|
9f4db63 |
Summary: A fast, standards compliant, C based, HTML 5 parser for python
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
# html5-parser-0.4.4/gumbo/utf8.c is MIT
|
|
|
ab7a0c8 |
License: ASL 2.0 and MIT
|
|
|
ab7a0c8 |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
ab7a0c8 |
Source0: https://files.pythonhosted.org/packages/source/h/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
ab7a0c8 |
|
|
|
d872690 |
BuildRequires: gcc
|
|
|
90e6655 |
BuildRequires: python3-devel
|
|
|
ab7a0c8 |
BuildRequires: libxml2-devel
|
|
|
ab7a0c8 |
BuildRequires: pkgconf
|
|
|
ab7a0c8 |
# For tests
|
|
|
ab7a0c8 |
BuildRequires: python3-lxml >= 3.8.0
|
|
|
ab7a0c8 |
BuildRequires: gtest-devel
|
|
|
ab7a0c8 |
BuildRequires: python3-chardet
|
|
|
ab7a0c8 |
BuildRequires: python3-beautifulsoup4
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%description
|
|
|
ab7a0c8 |
A fast, standards compliant, C based, HTML 5 parser for python
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%package -n python3-%{srcname}
|
|
|
9f4db63 |
Summary: %{summary}
|
|
|
ab7a0c8 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
# This package bundles sigil-gumbo a fork of gumbo
|
|
|
ab7a0c8 |
# Base project: https://github.com/google/gumbo-parser
|
|
|
ab7a0c8 |
# Forked from above: https://github.com/Sigil-Ebook/sigil-gumbo
|
|
|
ab7a0c8 |
# It also patches that bundled copy with other changes.
|
|
|
ab7a0c8 |
# sigil-gumbo bundled here was added 20170601
|
|
|
ab7a0c8 |
Provides: bundled(sigil-gumbo) = 0.9.3-20170601git0830e1145fe08
|
|
|
ab7a0c8 |
# sigil-gumbo forked off gumbo-parser at this commit in 20160216
|
|
|
ab7a0c8 |
Provides: bundled(gumbo-parser) = 0.9.3-20160216git69b580ab4de04
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%description -n python3-%{srcname}
|
|
|
ab7a0c8 |
A fast, standards compliant, C based, HTML 5 parser for python
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%prep
|
|
|
ab7a0c8 |
export debug=True
|
|
|
ab7a0c8 |
%autosetup -n %{srcname}-%{version} -p1
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
# remove shebangs from library files
|
|
|
ab7a0c8 |
sed -i -e '/^#!\//, 1d' src/html5_parser/*.py
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%build
|
|
|
ab7a0c8 |
%py3_build
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%install
|
|
|
ab7a0c8 |
%py3_install
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%check
|
|
|
ab7a0c8 |
%{__python3} setup.py test
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%files -n python3-%{srcname}
|
|
|
ab7a0c8 |
%license LICENSE
|
|
|
ab7a0c8 |
%doc README.rst
|
|
|
ab7a0c8 |
%{python3_sitearch}/*
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
%changelog
|
|
|
a29b147 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.8-4
|
|
|
a29b147 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
a29b147 |
|
|
|
90e6655 |
* Thu Aug 22 2019 Kevin Fenzi <kevin@scrye.com> - 0.4.8-3
|
|
|
90e6655 |
- Drop python2 subpackages and dependdencies. Fixes #1744402 and #1744646
|
|
|
90e6655 |
|
|
|
862c063 |
* Tue Aug 20 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.4.8-2
|
|
|
862c063 |
- Rebuilt for Python 3.8
|
|
|
862c063 |
|
|
|
9f4db63 |
* Tue Aug 20 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.4.8-1
|
|
|
9f4db63 |
- Update to latest version (#1742306)
|
|
|
9f4db63 |
- This fixes compatibility with python-beautifulsoup4 4.8.0.
|
|
|
118e67d |
|
|
|
0de3efc |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-2
|
|
|
0de3efc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
0de3efc |
|
|
|
b0b18a8 |
* Sun Jun 16 2019 Kevin Fenzi <kevin@scrye.com> - 0.4.7-1
|
|
|
b0b18a8 |
- Update to 0.4.7. Fixes bug #1716728
|
|
|
b0b18a8 |
|
|
|
0a0caef |
* Sat May 18 2019 Kevin Fenzi <kevin@scrye.com> - 0.4.6-1
|
|
|
0a0caef |
- Update to 0.4.6. Fixes bug #1709226
|
|
|
0a0caef |
|
|
|
60db513 |
* Sun Apr 14 2019 Kevin Fenzi <kevin@scrye.com> - 0.4.5-1
|
|
|
60db513 |
- Update to 0.4.5. Fixes bug #1697342
|
|
|
60db513 |
|
|
|
6839761 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-9
|
|
|
6839761 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
6839761 |
|
|
|
addb57e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-8
|
|
|
addb57e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
addb57e |
|
|
|
385631e |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.4-7
|
|
|
385631e |
- Rebuilt for Python 3.7
|
|
|
385631e |
|
|
|
e5f0c05 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-6
|
|
|
e5f0c05 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
e5f0c05 |
|
|
|
5ab06b8 |
* Fri Jan 19 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.4-5
|
|
|
5ab06b8 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
5ab06b8 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
5ab06b8 |
|
|
|
b3c541c |
* Wed Nov 08 2017 Kevin Fenzi <kevin@scrye.com> - 0.4.4-4
|
|
|
b3c541c |
- Rebuild for upgrade path from f27
|
|
|
b3c541c |
|
|
|
a7cbba4 |
* Fri Oct 20 2017 Kevin Fenzi <kevin@scrye.com> - 0.4.4-3
|
|
|
a7cbba4 |
- Adjust BuildRequires names for older releases
|
|
|
a7cbba4 |
|
|
|
ab7a0c8 |
* Fri Oct 20 2017 Kevin Fenzi <kevin@scrye.com> - 0.4.4-2
|
|
|
ab7a0c8 |
- Clarify bundled copy of sigil-gumbo in spec comments.
|
|
|
ab7a0c8 |
|
|
|
ab7a0c8 |
* Sat Aug 12 2017 Kevin Fenzi <kevin@scrye.com> - 0.4.4-1
|
|
|
ab7a0c8 |
- Initial version for Fedora
|