rebuilt with python3 = 3.11.5 [release 1.0.3-2mamba;Sat Sep 23 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 10:55:39 +01:00
parent c16554e4f4
commit e77c5d792c

View File

@ -1,7 +1,7 @@
%define pkgname %(echo %name | cut -d- -f2-) %define pkgname %(echo %name | cut -d- -f2-)
Name: python-build Name: python-build
Version: 1.0.3 Version: 1.0.3
Release: 1mamba Release: 2mamba
Summary: A simple, correct PEP517 package builder Summary: A simple, correct PEP517 package builder
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -11,12 +11,11 @@ URL: https://github.com/pypa/build
Source: https://pypi.debian.net/build/build-%{version}.tar.gz Source: https://pypi.debian.net/build/build-%{version}.tar.gz
License: MIT License: MIT
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel BuildRequires: libpython311-devel
BuildRequires: python3.7dist(importlib-metadata) BuildRequires: python3.11dist(packaging)
BuildRequires: python3.7dist(packaging) BuildRequires: python3.11dist(pyproject-hooks)
BuildRequires: python3.7dist(pyproject-hooks)
BuildRequires: python3.7dist(tomli)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.11.5
%description %description
%{summary}. %{summary}.
@ -29,11 +28,26 @@ BuildRequires: python3.7dist(tomli)
%setup -q -n build-%{version} %setup -q -n build-%{version}
%build %build
%if "0%{?with_pyver}" == "03"
# Bootstrap
virtualenv-py310 -p %{__python3} env
source env/bin/activate
pip install build installer flit-core
CFLAGS="%{optflags}" python -m build --no-isolation --wheel
%else
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%endif
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%if "0%{?with_pyver}" == "03"
# Bootstrap
. ./env/bin/activate
python -m installer --destdir=%{buildroot} --prefix=%{_prefix} dist/*.whl
sed -i "s|$PWD/env/bin/python.*|%{__python3}|" %{buildroot}%{_bindir}/pyproject-build
%else
%{__python} -m installer --destdir=%{buildroot} dist/*.whl %{__python} -m installer --destdir=%{buildroot} dist/*.whl
%endif
%if "%{?with_pyver}" != "3" %if "%{?with_pyver}" != "3"
# Rename any conflicting file outside of python site packages tree # Rename any conflicting file outside of python site packages tree
@ -52,6 +66,9 @@ done
%doc LICENSE %doc LICENSE
%changelog %changelog
* Sat Sep 23 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.3-2mamba
- rebuilt with python3 = 3.11.5
* Thu Sep 07 2023 Automatic Build System <autodist@mambasoft.it> 1.0.3-1mamba * Thu Sep 07 2023 Automatic Build System <autodist@mambasoft.it> 1.0.3-1mamba
- automatic version update by autodist - automatic version update by autodist