2018-08-20 22:22:12 +00:00
|
|
|
%global srcname html5lib
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Summary: A python based HTML parser/tokenizer
|
|
|
|
Version: 1.0.1
|
2019-09-16 10:05:41 +00:00
|
|
|
Release: 7%{?dist}
|
2018-08-20 22:22:12 +00:00
|
|
|
Epoch: 1
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/html5lib/html5lib-python
|
|
|
|
Source0: %pypi_source
|
2018-09-24 13:13:19 +00:00
|
|
|
Patch0: %{url}/pull/403.patch#/collections-abc.patch
|
2019-07-29 23:26:11 +00:00
|
|
|
#{url}/pull/414.patch#/pytest4.patch (tox.ini hunk fails)
|
|
|
|
Patch1: pytest4.patch
|
2018-09-24 13:13:19 +00:00
|
|
|
|
2018-08-20 22:22:12 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%?python_enable_dependency_generator
|
2016-12-30 23:56:20 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A python based HTML parser/tokenizer based on the WHATWG HTML5
|
|
|
|
specification for maximum compatibility with major desktop web browsers.
|
|
|
|
|
|
|
|
|
2018-08-20 22:22:12 +00:00
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: %summary
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
# Test deps
|
|
|
|
BuildRequires: python3-mock
|
|
|
|
BuildRequires: python3-pytest
|
2018-08-21 14:56:38 +00:00
|
|
|
BuildRequires: python3-pytest-expect
|
2018-08-20 22:22:12 +00:00
|
|
|
BuildRequires: python3-six
|
|
|
|
BuildRequires: python3-webencodings
|
|
|
|
|
|
|
|
# Optional test deps:
|
|
|
|
BuildRequires: python3-chardet
|
|
|
|
BuildRequires: python3-genshi
|
|
|
|
BuildRequires: python3-lxml
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
2014-05-09 19:23:09 +00:00
|
|
|
|
2018-08-20 22:22:12 +00:00
|
|
|
%description -n python3-%{srcname}
|
2012-02-21 17:09:29 +00:00
|
|
|
A python based HTML parser/tokenizer based on the WHATWG HTML5
|
|
|
|
specification for maximum compatibility with major desktop web browsers.
|
|
|
|
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%prep
|
2018-09-24 13:13:19 +00:00
|
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
2012-02-21 17:09:29 +00:00
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%build
|
2016-12-30 23:56:20 +00:00
|
|
|
%py3_build
|
2012-02-21 17:09:29 +00:00
|
|
|
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%install
|
2016-12-30 23:56:20 +00:00
|
|
|
%py3_install
|
2012-02-21 17:09:29 +00:00
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
|
2018-08-20 22:22:12 +00:00
|
|
|
%check
|
2019-07-29 23:26:11 +00:00
|
|
|
# XXX figure out the failure in test_encoding
|
|
|
|
%{__python3} -m pytest -k "not test_encoding"
|
2018-08-21 14:56:38 +00:00
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
|
2018-08-20 22:22:12 +00:00
|
|
|
%files -n python3-%{srcname}
|
2016-12-30 23:56:20 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES.rst README.rst
|
2018-08-20 22:22:12 +00:00
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
2012-02-21 17:09:29 +00:00
|
|
|
|
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
%changelog
|
2019-09-16 10:05:41 +00:00
|
|
|
* Mon Sep 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.1-7
|
|
|
|
- Drop python2-html5lib
|
|
|
|
|
2019-08-26 11:22:13 +00:00
|
|
|
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.1-6
|
|
|
|
- Reduce Python 2 build dependencies
|
|
|
|
|
2019-08-16 13:14:02 +00:00
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.1-5
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 13:54:09 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-02 07:11:50 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-09-24 13:13:19 +00:00
|
|
|
* Mon Sep 24 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.1-2
|
|
|
|
- Fix dire deprecation warnings (#1627071)
|
|
|
|
|
2018-08-20 22:22:12 +00:00
|
|
|
* Mon Aug 20 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.0.1-1
|
|
|
|
- Update to 1.0.1 (#1584176)
|
|
|
|
|
2018-07-14 00:32:18 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.999999999-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-16 08:10:43 +00:00
|
|
|
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 1:0.999999999-7
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-12 02:10:54 +00:00
|
|
|
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1:0.999999999-6
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-02-09 08:17:08 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.999999999-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-09-29 15:30:29 +00:00
|
|
|
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 0.999999999-4
|
|
|
|
- Cleanup spec file conditionals
|
|
|
|
|
2017-07-27 18:54:05 +00:00
|
|
|
* Thu Jul 27 2017 Kevin Fenzi <kevin@scrye.com> - 0.999999999-3
|
|
|
|
- Add Requires on python-webencodings. Fixes bug #1474883
|
|
|
|
|
2017-07-27 10:34:04 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.999999999-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-07-21 20:55:13 +00:00
|
|
|
* Fri Jul 21 2017 Kevin Fenzi <kevin@scrye.com> - 1:0.999999999-1
|
|
|
|
- Update to 0.999999999. Fixes bug #1431378 and #1305828
|
|
|
|
- Security fix for CVE-2016-9909, CVE-2016-9910. Fixes bug #1402706 and #1402707
|
|
|
|
|
2017-02-11 09:15:09 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.999-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-31 07:07:18 +00:00
|
|
|
* Fri Dec 30 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 1:0.999-12
|
|
|
|
- Correct usage of the %%python_provide macro
|
|
|
|
|
2016-12-30 23:56:20 +00:00
|
|
|
* Fri Dec 30 2016 Orion Poplawski <orion@cora.nwra.com> - 1:0.999-11
|
|
|
|
- Ship python2-html5lib
|
|
|
|
- Modernize spec
|
|
|
|
- Use %%license
|
|
|
|
|
2016-12-12 18:17:03 +00:00
|
|
|
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1:0.999-10
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
- Fix invalid escape sequences
|
|
|
|
|
2016-07-19 10:00:15 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.999-9
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 19:52:15 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.999-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-03 19:15:12 +00:00
|
|
|
* Tue Nov 03 2015 Robert Kuska <rkuska@redhat.com> - 1:0.999-7
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-06-18 19:36:06 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.999-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-06-07 20:48:44 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.999-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-15 13:45:00 +00:00
|
|
|
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1:0.999-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2014-05-09 19:23:09 +00:00
|
|
|
* Fri May 09 2014 Dennis Gilmore <dennis@ausil.us> - 0.999-3
|
|
|
|
- move python3 Requires and BuildRequires into the python3 sub-package
|
|
|
|
|
2014-03-12 19:37:40 +00:00
|
|
|
* Wed Mar 12 2014 Dan Scott <dan@coffeecode.net> - 0.999-2
|
|
|
|
- "six" module is a runtime requirement
|
|
|
|
|
2014-03-01 16:25:14 +00:00
|
|
|
* Sat Mar 01 2014 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> 0.999-1
|
|
|
|
- Added epoch information
|
|
|
|
|
|
|
|
* Wed Feb 26 2014 Dan Scott <dan@coffeecode.net> - 0.999-1
|
|
|
|
- Updated for new version
|
|
|
|
- Fixed bogus dates in changelog
|
|
|
|
|
2013-08-04 07:58:45 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0b2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2014-03-01 16:25:14 +00:00
|
|
|
* Mon Jul 8 2013 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.0b2-2
|
2013-07-08 16:47:19 +00:00
|
|
|
- Updated python3 support which accidently removed from previous revision.
|
|
|
|
|
2014-03-01 16:25:14 +00:00
|
|
|
* Mon Jul 8 2013 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 1.0b2-1
|
2013-07-08 02:48:56 +00:00
|
|
|
- Updated new source
|
|
|
|
|
2013-02-14 19:39:07 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-04 08:55:33 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.95-3
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-07-21 06:35:08 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-21 17:09:29 +00:00
|
|
|
* Tue Feb 21 2012 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.95-1
|
|
|
|
- Added python3 spec and updated new source
|
2012-01-14 01:46:55 +00:00
|
|
|
|
2011-07-18 16:59:43 +00:00
|
|
|
* Mon Jul 18 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.90-1
|
|
|
|
- Initial spec
|