%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: ascmhl Version: 0.9.3 Release: 1mamba Summary: ASC Media Hash List (ASC MHL) Group: Applications/Multimedia Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/ascmitc/mhl Source: https://pypi.debian.net/ascmhl/ascmhl-%{version}.tar.gz Patch0: ascmhl-0.9.3-python-click-8.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel BuildRequires: python3.11dist(click) BuildRequires: python3.11dist(lxml) BuildRequires: python3.11dist(packaging) BuildRequires: python3.11dist(pathspec) BuildRequires: python3.11dist(python-dateutil) BuildRequires: python3.11dist(requests) BuildRequires: python3.11dist(xxhash) ## AUTOBUILDREQ-END BuildRequires: python-pytest-runner-py3 %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q %patch 0 -p1 sed -i "s|Click.*7|Click>=7|" setup.py requirements.txt ascmhl.egg-info/requires.txt %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 rm -rf %{buildroot}%{python_sitelib}/tests %files %defattr(-,root,root) %{_bindir}/ascmhl %{_bindir}/ascmhl-debug %dir %{python_sitelib}/%{pkgname}-%{version}.dist-info %{python_sitelib}/%{pkgname}-%{version}.dist-info/* %dir %{python_sitelib}/%{pkgname} %{python_sitelib}/%{pkgname}/* %changelog * Mon Jan 08 2024 Silvan Calarco 0.9.3-1mamba - package created using the webbuild interface