%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-black Version: 23.3.0 Release: 2mamba Summary: The uncompromising code formatter Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/psf/black Source: https://pypi.debian.net/black/black-%{version}.tar.gz License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel BuildRequires: python3.7dist(click) BuildRequires: python3.7dist(mypy-extensions) BuildRequires: python3.7dist(packaging) BuildRequires: python3.7dist(pathspec) BuildRequires: python3.7dist(platformdirs) BuildRequires: python3.7dist(tomli) BuildRequires: python3.7dist(typed-ast) BuildRequires: python3.7dist(typing-extensions) ## AUTOBUILDREQ-END BuildRequires: python-hatch_fancy_pypi_readme-py3 %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n black-%{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}/black*; do mv %{buildroot}${f}{,-%{?pyappend}} done %endif %files %{?pyappend} %defattr(-,root,root) %{_bindir}/black* %dir %{python_sitelib}/%{pkgname}-%{version}.dist-info %{python_sitelib}/%{pkgname}-%{version}.dist-info/* %{python_sitelib}/__pycache__/_black_version*.pyc %{python_sitelib}/_black_version.py %dir %{python_sitelib}/blackd %{python_sitelib}/blackd/* %dir %{python_sitelib}/blib2to3 %{python_sitelib}/blib2to3/* %dir %{python_sitelib}/%{pkgname} %{python_sitelib}/%{pkgname}/* %doc LICENSE %changelog * Sat Apr 08 2023 Sdk Build System 23.3.0-2mamba - rebuilt with python 3.10 * Thu Mar 30 2023 Automatic Build System 23.3.0-1mamba - automatic version update by autodist * Thu Feb 02 2023 Automatic Build System 23.1.0-1mamba - automatic version update by autodist * Sat Dec 17 2022 Automatic Build System 22.12.0-1mamba - automatic version update by autodist * Fri Dec 09 2022 Automatic Build System 22.10.0-1mamba - automatic version update by autodist * Thu Sep 01 2022 Automatic Build System 22.8.0-1mamba - automatic version update by autodist * Tue Jun 28 2022 Automatic Build System 22.6.0-1mamba - automatic version update by autodist * Tue Mar 29 2022 Automatic Build System 22.3.0-1mamba - automatic version update by autodist * Mon Feb 14 2022 Silvan Calarco 22.1.0-1mamba - package created using the webbuild interface