automatic version update by autodist [release 22.10.0-1mamba;Fri Dec 09 2022]
This commit is contained in:
parent
4eda6fbfc5
commit
71d5a26481
@ -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 <autodist@mambasoft.it> 22.10.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Sep 01 2022 Automatic Build System <autodist@mambasoft.it> 22.8.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user