From 71d5a26481a50c32b839f8b2e8027772b5c33c9d Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 10:49:01 +0100 Subject: [PATCH] automatic version update by autodist [release 22.10.0-1mamba;Fri Dec 09 2022] --- python-black.spec | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/python-black.spec b/python-black.spec index 4af110c..59c96ed 100644 --- a/python-black.spec +++ b/python-black.spec @@ -1,6 +1,6 @@ %define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-black -Version: 22.8.0 +Version: 22.10.0 Release: 1mamba Summary: The uncompromising code formatter Group: System/Libraries @@ -16,11 +16,11 @@ BuildRequires: python3.7dist(click) BuildRequires: python3.7dist(mypy-extensions) BuildRequires: python3.7dist(pathspec) BuildRequires: python3.7dist(platformdirs) -BuildRequires: python3.7dist(setuptools) 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}. @@ -33,26 +33,38 @@ BuildRequires: python3.7dist(typing-extensions) %setup -q -n black-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%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} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info -%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* +%{_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 +* 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