ab7a0c8
%global srcname html5-parser
ab7a0c8
ab7a0c8
Name:           python-%{srcname}
77ed93f
Version:        0.4.10
0ba8849
Release:        9%{?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
07659b7
BuildRequires:  python3-setuptools
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
0ba8849
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-9
0ba8849
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
0ba8849
2b4f53f
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-8
2b4f53f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2b4f53f
27d6984
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-7
27d6984
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
27d6984
afba341
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.4.10-6
afba341
- Rebuilt for Python 3.12
afba341
ea9adec
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-5
ea9adec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ea9adec
89f9cf1
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-4
89f9cf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
89f9cf1
52889cf
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.4.10-3
52889cf
- Rebuilt for Python 3.11
52889cf
451c919
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-2
451c919
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
451c919
77ed93f
* Sat Nov 06 2021 Kevin Fenzi <kevin@scrye.com> - 0.4.10-1
77ed93f
- Update to 0.4.10. Fixes rhbz#2006688
77ed93f
a3bd486
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.9-6
a3bd486
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a3bd486
d228af9
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.9-5
d228af9
- Rebuilt for Python 3.10
d228af9
c7674d1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.9-4
c7674d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c7674d1
666975f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.9-3
666975f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
666975f
77689e6
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.9-2
77689e6
- Rebuilt for Python 3.9
77689e6
7ef1ee9
* Sat Feb 15 2020 Kevin Fenzi <kevin@scrye.com> - 0.4.9-1
7ef1ee9
- Update to 0.4.9. Fixes bug 1768159
7ef1ee9
b6965de
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-5
b6965de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b6965de
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