automatic version update by autodist [release 0.10.0-1mamba;Mon Mar 06 2023]

This commit is contained in:
Automatic Build System 2024-01-06 10:55:39 +01:00
parent fb6f81f1f2
commit 03978c8932

View File

@ -1,6 +1,6 @@
%define pkgname %(echo %name | cut -d- -f2-)
Name: python-build
Version: 0.9.0
Version: 0.10.0
Release: 1mamba
Summary: A simple, correct PEP517 package builder
Group: System/Libraries
@ -14,8 +14,7 @@ License: MIT
BuildRequires: libpython3-devel
BuildRequires: python3.7dist(importlib-metadata)
BuildRequires: python3.7dist(packaging)
BuildRequires: python3.7dist(pep517)
BuildRequires: python3.7dist(setuptools)
BuildRequires: python3.7dist(pyproject-hooks)
BuildRequires: python3.7dist(tomli)
## AUTOBUILDREQ-END
@ -30,31 +29,32 @@ BuildRequires: python3.7dist(tomli)
%setup -q -n build-%{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
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
%if "%{?with_pyver}" != "3"
mv %{buildroot}%{_bindir}/pyproject-build{,-%{with_pyver}}
sed -i "s|pyproject-build|pyproject-build-%{with_pyver}|" %{name}.filelist
# Rename any conflicting file outside of python site packages tree
for f in %{_bindir}/pyproject-build; 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}/pyproject-build*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENSE
%changelog
* Mon Mar 06 2023 Automatic Build System <autodist@mambasoft.it> 0.10.0-1mamba
- automatic version update by autodist
* Fri Oct 28 2022 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
- automatic version update by autodist