2024-01-06 10:49:01 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: python-black
|
2024-01-06 10:49:01 +01:00
|
|
|
Version: 23.7.0
|
|
|
|
Release: 1mamba
|
2024-01-06 10:49:01 +01:00
|
|
|
Summary: The uncompromising code formatter
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
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)
|
2024-01-06 10:49:01 +01:00
|
|
|
BuildRequires: python3.7dist(packaging)
|
2024-01-06 10:49:01 +01:00
|
|
|
BuildRequires: python3.7dist(pathspec)
|
|
|
|
BuildRequires: python3.7dist(platformdirs)
|
|
|
|
BuildRequires: python3.7dist(tomli)
|
|
|
|
BuildRequires: python3.7dist(typing-extensions)
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 10:49:01 +01:00
|
|
|
BuildRequires: python-hatch_fancy_pypi_readme-py3
|
2024-01-06 10:49:01 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n black-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 10:49:01 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 10:49:01 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 10:49:01 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 10:49:01 +01:00
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
%if "%{?with_pyver}" != "3"
|
|
|
|
# Rename any conflicting file outside of python site packages tree
|
2024-01-06 10:49:01 +01:00
|
|
|
for f in %{_bindir}/{black,blackd}; do
|
2024-01-06 10:49:01 +01:00
|
|
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
done
|
|
|
|
%endif
|
2024-01-06 10:49:01 +01:00
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 10:49:01 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:49:01 +01:00
|
|
|
%{_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}/*
|
2024-01-06 10:49:01 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:49:01 +01:00
|
|
|
* Tue Jul 11 2023 Automatic Build System <autodist@mambasoft.it> 23.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Sat Apr 08 2023 Sdk Build System <sdk@mambasoft.it> 23.3.0-2mamba
|
|
|
|
- rebuilt with python 3.10
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Thu Mar 30 2023 Automatic Build System <autodist@mambasoft.it> 23.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Thu Feb 02 2023 Automatic Build System <autodist@mambasoft.it> 23.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Sat Dec 17 2022 Automatic Build System <autodist@mambasoft.it> 22.12.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Fri Dec 09 2022 Automatic Build System <autodist@mambasoft.it> 22.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Thu Sep 01 2022 Automatic Build System <autodist@mambasoft.it> 22.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Tue Jun 28 2022 Automatic Build System <autodist@mambasoft.it> 22.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Tue Mar 29 2022 Automatic Build System <autodist@mambasoft.it> 22.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:49:01 +01:00
|
|
|
* Mon Feb 14 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 22.1.0-1mamba
|
|
|
|
- package created using the webbuild interface
|