From 01ceb3d32724b1bda18962d757b28b973543da1a9a0eb378639b1981bb6bd6e8 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 5 Feb 2025 03:01:59 +0000 Subject: [PATCH] - Initial release of 1.2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5lib-modern?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + html5lib_modern-1.2.tar.gz | 3 ++ python-html5lib-modern.changes | 4 +++ python-html5lib-modern.spec | 66 ++++++++++++++++++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 html5lib_modern-1.2.tar.gz create mode 100644 python-html5lib-modern.changes create mode 100644 python-html5lib-modern.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/html5lib_modern-1.2.tar.gz b/html5lib_modern-1.2.tar.gz new file mode 100644 index 0000000..09b8ffc --- /dev/null +++ b/html5lib_modern-1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fadbfc27ea955431270e4e79a4a4c290ba11c3a3098a95cc22dc73e312a1768 +size 275189 diff --git a/python-html5lib-modern.changes b/python-html5lib-modern.changes new file mode 100644 index 0000000..cb30393 --- /dev/null +++ b/python-html5lib-modern.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Feb 5 03:01:15 UTC 2025 - Steve Kowalik + +- Initial release of 1.2. diff --git a/python-html5lib-modern.spec b/python-html5lib-modern.spec new file mode 100644 index 0000000..62b6684 --- /dev/null +++ b/python-html5lib-modern.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-html5lib-modern +# +# 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/ +# + + +Name: python-html5lib-modern +Version: 1.2 +Release: 0 +Summary: HTML parser based on the WHATWG HTML specification +License: MIT +URL: https://github.com/html5lib/html5lib-python +Source: https://files.pythonhosted.org/packages/source/h/html5lib-modern/html5lib_modern-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-expect} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Suggests: python-genshi >= 0.7.1 +Suggests: python-chardet >= 2.2.1 +Suggests: python-lxml >= 3.4.0 +Suggests: python-chardet >= 2.2.1 +Suggests: python-genshi >= 0.7.1 +Suggests: python-lxml >= 3.4.0 +Obsoletes: python-html5lib < %{version} +Provides: python-html5lib = %{version} +Conflicts: python-htm5lib +BuildArch: noarch +%python_subpackages + +%description +HTML parser based on the WHATWG HTML specification + +%prep +%autosetup -p1 -n html5lib_modern-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc AUTHORS.rst CHANGES.rst README.rst +%{python_sitelib}/html5lib +%{python_sitelib}/html5lib_modern-%{version}.dist-info + +%changelog