From 6d8fa2c74a212ca22b404f4fa4bfe8d425be2caf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 17 Feb 2025 11:28:41 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.0.0-1mamba;Sun Feb 16 2025] --- README.md | 2 ++ python-tinyhtml5.spec | 53 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 python-tinyhtml5.spec diff --git a/README.md b/README.md index 8aeb04e..bb49c9a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-tinyhtml5 +HTML5 parser that transforms a possibly malformed HTML document into an ElementTree tree. + diff --git a/python-tinyhtml5.spec b/python-tinyhtml5.spec new file mode 100644 index 0000000..66de59a --- /dev/null +++ b/python-tinyhtml5.spec @@ -0,0 +1,53 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-tinyhtml5 +Version: 2.0.0 +Release: 1mamba +Summary: HTML5 parser that transforms a possibly malformed HTML document into an ElementTree tree +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/CourtBouillon/tinyhtml5 +Source: https://pypi.debian.net/tinyhtml5/tinyhtml5-%{version}.tar.gz +License: MIT +BuildArch: noarch +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(webencodings) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n tinyhtml5-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} +%defattr(-,root,root) +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE + +%changelog +* Sun Feb 16 2025 Silvan Calarco 2.0.0-1mamba +- package created using the webbuild interface