From d3c67550429e1380d11fcd91eea430790905e67c33f24e71cb7972c34d3c5c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 06:46:51 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5-parser?expand=0&rev=29 --- .gitattributes | 23 ++++++++ .gitignore | 1 + python-html5-parser-0.4.12.tar.gz | 3 + python-html5-parser.changes | 98 +++++++++++++++++++++++++++++++ python-html5-parser.spec | 68 +++++++++++++++++++++ 5 files changed, 193 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-html5-parser-0.4.12.tar.gz create mode 100644 python-html5-parser.changes create mode 100644 python-html5-parser.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-html5-parser-0.4.12.tar.gz b/python-html5-parser-0.4.12.tar.gz new file mode 100644 index 0000000..e285007 --- /dev/null +++ b/python-html5-parser-0.4.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6218fc5ff5103935aa2d85ed24c501b7d458a09311987163a6789f6c08fb41d +size 291150 diff --git a/python-html5-parser.changes b/python-html5-parser.changes new file mode 100644 index 0000000..dfb9057 --- /dev/null +++ b/python-html5-parser.changes @@ -0,0 +1,98 @@ +------------------------------------------------------------------- +Wed May 28 06:46:30 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Mon Nov 20 06:16:01 UTC 2023 - ecsos + +- Update to 0.4.12 + No changelog from upstream. + See instead here: + https://github.com/kovidgoyal/html5-parser/compare/v0.4.11...v0.4.12?diff=unified&name=v0.4.12 + +------------------------------------------------------------------- +Fri Jun 23 04:59:34 UTC 2023 - ecsos + +- Update to 0.4.11 + No changelog from upstream. + See instead here: + https://github.com/kovidgoyal/html5-parser/compare/v0.4.10...v0.4.11?diff=unified&name=v0.4.11 +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Dec 23 11:59:31 UTC 2021 - ecsos + +- Skip python2 to fix build error for Leap in devel repo. + +------------------------------------------------------------------- +Fri Oct 15 08:27:05 UTC 2021 - ecsos + +- Update to 0.4.10 + No changelog from upstream. + See instead here: + https://github.com/kovidgoyal/html5-parser/compare/v0.4.9...v0.4.10?diff=unified&name=v0.4.10 + +------------------------------------------------------------------- +Mon May 31 07:30:34 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest_arch rpm macro for post 15 + +------------------------------------------------------------------- +Thu Apr 9 11:12:17 UTC 2020 - Marketa Calabkova + +- Update to 0.4.9 + * Fix an error parsing XHTML where the xlink namespace is defined on + the root node but not on a node where the default namespace is redefined + +------------------------------------------------------------------- +Wed Sep 11 15:01:52 UTC 2019 - Tomáš Chvátal + +- Update to 0.4.8: + No changelog from upstream. + See instead here: + https://github.com/kovidgoyal/html5-parser/compare/v0.4.7...v0.4.8?diff=unified&name=v0.4.8 + +------------------------------------------------------------------- +Mon Jul 1 06:29:09 UTC 2019 - ecsos@opensuse.org + +- update to 0.4.7 + No changelog from upstream. + See instead here: + https://github.com/kovidgoyal/html5-parser/compare/v0.4.6...v0.4.7?diff=unified&name=v0.4.7 + +------------------------------------------------------------------- +Wed May 29 14:38:09 UTC 2019 - ecsos@opensuse.org + +- update to 0.4.6 + No changelog from upstream. + See instead here: + https://github.com/kovidgoyal/html5-parser/compare/v0.4.5...v0.4.6?diff=unified&name=v0.4.6 + +------------------------------------------------------------------- +Tue Feb 5 12:02:41 UTC 2019 - Hans-Peter Jansen + +- add pkgconfig build dependency + +------------------------------------------------------------------- +Wed Jun 27 17:15:29 UTC 2018 - ecsos@opensuse.org + +- update to 0.4.5 + No changelog from upstream. + See instead here: + https://github.com/kovidgoyal/html5-parser/compare/v0.4.4...v0.4.5?diff=unified&name=v0.4.5 + +------------------------------------------------------------------- +Fri Sep 29 16:19:18 UTC 2017 - jengelh@inai.de + +- Reword descriptions for neutrality and accuracy. + +------------------------------------------------------------------- +Mon Aug 14 14:52:38 UTC 2017 - opensuse@dstoecker.de + +- update to 0.4.4 + +------------------------------------------------------------------- +Fri Jul 28 17:02:03 UTC 2017 - ecsos@opensuse.org + +- initial version 0.4.3 diff --git a/python-html5-parser.spec b/python-html5-parser.spec new file mode 100644 index 0000000..0ee2390 --- /dev/null +++ b/python-html5-parser.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-html5-parser +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-html5-parser +Version: 0.4.12 +Release: 0 +Summary: C based HTML 5 parsing for Python +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/kovidgoyal/html5-parser +Source: https://github.com/kovidgoyal/html5-parser/archive/v%{version}/%{name}-%{version}.tar.gz +BuildRequires: %{python_module beautifulsoup4} +BuildRequires: %{python_module chardet} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module lxml >= 3.8.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(libxml-2.0) +%python_subpackages + +%description +A standards compliant, C based HTML 5 parser for Python. It processes HTML +about thirty times faster than the "html5lib" pure Python based parser. + +%prep +%setup -q -n html5-parser-%{version} + +%build +find . -name '*.py' -exec sed -i '/#.*usr.bin.env.*python/d' {} \; +%pyproject_wheel + +%install +%pyproject_install + +%check +%if 0%{?suse_version} > 1500 +%pyunittest_arch -v test/*.py +%else +%python_exec setup.py test +%endif + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitearch}/html5_parser/ +%{python_sitearch}/html5_parser-%{version}*-info + +%changelog