rebuilt with python3 = 3.11.5 (bootstrap support) [release 0.7.0-2mamba;Sat Sep 23 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 11:16:57 +01:00
parent 678f451c79
commit 7ab7552ee1

View File

@ -1,7 +1,7 @@
%define pkgname %(echo %name | cut -d- -f2-) %define pkgname %(echo %name | cut -d- -f2-)
Name: python-installer Name: python-installer
Version: 0.7.0 Version: 0.7.0
Release: 1mamba Release: 2mamba
Summary: A library for installing Python wheels Summary: A library for installing Python wheels
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -11,8 +11,9 @@ URL: https://github.com/pypa/installer
Source: https://pypi.debian.net/installer/installer-%{version}.tar.gz Source: https://pypi.debian.net/installer/installer-%{version}.tar.gz
License: MIT License: MIT
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel BuildRequires: libpython311-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.11.5
%description %description
%{summary}. %{summary}.
@ -25,11 +26,25 @@ BuildRequires: libpython3-devel
%setup -q -n installer-%{version} %setup -q -n installer-%{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
%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
@ -47,6 +62,9 @@ CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%doc LICENSE %doc LICENSE
%changelog %changelog
* Sat Sep 23 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-2mamba
- rebuilt with python3 = 3.11.5 (bootstrap support)
* Sat Mar 18 2023 Automatic Build System <autodist@mambasoft.it> 0.7.0-1mamba * Sat Mar 18 2023 Automatic Build System <autodist@mambasoft.it> 0.7.0-1mamba
- automatic version update by autodist - automatic version update by autodist