2024-01-06 10:55:38 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2-)
|
|
|
|
Name: python-build
|
2024-04-25 21:52:22 +02:00
|
|
|
Version: 1.2.1
|
|
|
|
Release: 1mamba
|
2024-01-06 10:55:38 +01:00
|
|
|
Summary: A simple, correct PEP517 package builder
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/pypa/build
|
|
|
|
Source: https://pypi.debian.net/build/build-%{version}.tar.gz
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 10:55:39 +01:00
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(packaging)
|
|
|
|
BuildRequires: python3.11dist(pyproject-hooks)
|
2024-01-06 10:55:38 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 10:55:39 +01:00
|
|
|
BuildRequires: libpython3-devel >= 3.11.5
|
2024-01-06 10:55:38 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
2024-03-24 20:28:32 +01:00
|
|
|
%if "0%{?with_pyver}" == "03"
|
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: python-build-py310 <= 1.1.1-1mamba
|
|
|
|
%endif
|
2024-01-06 10:55:38 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n build-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 10:55:39 +01:00
|
|
|
%if "0%{?with_pyver}" == "03"
|
|
|
|
# Bootstrap
|
2024-04-25 21:52:22 +02:00
|
|
|
virtualenv -p %{__python3} env
|
2024-01-06 10:55:39 +01:00
|
|
|
source env/bin/activate
|
|
|
|
pip install build installer flit-core
|
|
|
|
CFLAGS="%{optflags}" python -m build --no-isolation --wheel
|
|
|
|
%else
|
2024-01-06 10:55:39 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 10:55:39 +01:00
|
|
|
%endif
|
2024-01-06 10:55:38 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 10:55:39 +01:00
|
|
|
%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
|
2024-01-06 10:55:39 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 10:55:39 +01:00
|
|
|
%endif
|
2024-01-06 10:55:38 +01:00
|
|
|
|
2024-01-06 10:55:38 +01:00
|
|
|
%if "%{?with_pyver}" != "3"
|
2024-01-06 10:55:39 +01:00
|
|
|
# Rename any conflicting file outside of python site packages tree
|
|
|
|
for f in %{_bindir}/pyproject-build; do
|
|
|
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
done
|
2024-01-06 10:55:38 +01:00
|
|
|
%endif
|
|
|
|
|
2024-01-06 10:55:39 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 10:55:38 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:55:39 +01:00
|
|
|
%{_bindir}/pyproject-build*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
2024-01-06 10:55:38 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-04-25 21:52:22 +02:00
|
|
|
* Thu Apr 25 2024 Automatic Build System <autodist@openmamba.org> 1.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-24 20:28:32 +01:00
|
|
|
* Sun Mar 24 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-2mamba
|
|
|
|
- obsolete python-build-py310
|
|
|
|
|
2024-03-01 12:47:23 +01:00
|
|
|
* Fri Mar 01 2024 Automatic Build System <autodist@openmamba.org> 1.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:55:39 +01:00
|
|
|
* Sat Sep 23 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.3-2mamba
|
|
|
|
- rebuilt with python3 = 3.11.5
|
|
|
|
|
2024-01-06 10:55:39 +01:00
|
|
|
* Thu Sep 07 2023 Automatic Build System <autodist@mambasoft.it> 1.0.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:55:39 +01:00
|
|
|
* Sat Sep 02 2023 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:55:39 +01:00
|
|
|
* Mon Mar 06 2023 Automatic Build System <autodist@mambasoft.it> 0.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:55:38 +01:00
|
|
|
* Fri Oct 28 2022 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:55:38 +01:00
|
|
|
* Sat May 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0-2mamba
|
|
|
|
- rebuilt with python 3.10 subpackage
|
|
|
|
|
2024-01-06 10:55:38 +01:00
|
|
|
* Mon May 23 2022 Automatic Build System <autodist@mambasoft.it> 0.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:55:38 +01:00
|
|
|
* Fri Jan 14 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-1mamba
|
|
|
|
- package created using the webbuild interface
|