diff --git a/python-installer.spec b/python-installer.spec index 23c5f24..2e9da00 100644 --- a/python-installer.spec +++ b/python-installer.spec @@ -1,7 +1,7 @@ %define pkgname %(echo %name | cut -d- -f2-) Name: python-installer Version: 0.7.0 -Release: 1mamba +Release: 2mamba Summary: A library for installing Python wheels Group: System/Libraries Vendor: openmamba @@ -11,8 +11,9 @@ URL: https://github.com/pypa/installer Source: https://pypi.debian.net/installer/installer-%{version}.tar.gz License: MIT ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython3-devel +BuildRequires: libpython311-devel ## AUTOBUILDREQ-END +BuildRequires: libpython3-devel >= 3.11.5 %description %{summary}. @@ -25,11 +26,25 @@ BuildRequires: libpython3-devel %setup -q -n installer-%{version} %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 +%endif %install [ "%{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 +%endif #%if "%{?with_pyver}" != "3" ## Rename any conflicting file outside of python site packages tree @@ -47,6 +62,9 @@ CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %doc LICENSE %changelog +* Sat Sep 23 2023 Silvan Calarco 0.7.0-2mamba +- rebuilt with python3 = 3.11.5 (bootstrap support) + * Sat Mar 18 2023 Automatic Build System 0.7.0-1mamba - automatic version update by autodist