Blame python-html5-parser.spec

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