12 Commits

Author SHA1 Message Date
b7f08f6134 automatic version update by autodist [release 1.3.0-1mamba;Sun Aug 03 2025] 2025-08-03 22:28:33 +02:00
ccce39a110 automatic version update by autodist [release 1.2.2.post1-2mamba;Mon Oct 07 2024] 2024-10-08 15:21:03 +02:00
3ab3beb698 automatic version update by autodist [release 1.2.2.post1-1mamba;Mon Oct 07 2024] 2024-10-07 09:31:03 +02:00
687ab303d4 automatic version update by autodist [release 1.2.2-1mamba;Sat Sep 07 2024] 2024-09-08 11:15:53 +02:00
b9171e5525 automatic version update by autodist [release 1.2.1-1mamba;Thu Apr 25 2024] 2024-04-25 21:52:22 +02:00
8a93291e08 obsolete python-build-py310 [release 1.1.1-2mamba;Sun Mar 24 2024] 2024-03-24 20:28:32 +01:00
4de52002fb automatic version update by autodist [release 1.1.1-1mamba;Fri Mar 01 2024] 2024-03-01 12:47:23 +01:00
e77c5d792c rebuilt with python3 = 3.11.5 [release 1.0.3-2mamba;Sat Sep 23 2023] 2024-01-06 10:55:39 +01:00
c16554e4f4 automatic version update by autodist [release 1.0.3-1mamba;Thu Sep 07 2023] 2024-01-06 10:55:39 +01:00
04a825f6b7 automatic version update by autodist [release 1.0.0-1mamba;Sat Sep 02 2023] 2024-01-06 10:55:39 +01:00
03978c8932 automatic version update by autodist [release 0.10.0-1mamba;Mon Mar 06 2023] 2024-01-06 10:55:39 +01:00
fb6f81f1f2 automatic version update by autodist [release 0.9.0-1mamba;Fri Oct 28 2022] 2024-01-06 10:55:38 +01:00

View File

@ -1,7 +1,7 @@
%define pkgname %(echo %name | cut -d- -f2-)
Name: python-build
Version: 0.8.0
Release: 2mamba
Version: 1.3.0
Release: 1mamba
Summary: A simple, correct PEP517 package builder
Group: System/Libraries
Vendor: openmamba
@ -10,19 +10,22 @@ 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
BuildArch: noarch
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
BuildRequires: python3.7dist(importlib-metadata)
BuildRequires: python3.7dist(packaging)
BuildRequires: python3.7dist(pep517)
BuildRequires: python3.7dist(setuptools)
BuildRequires: python3.7dist(tomli)
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(packaging)
BuildRequires: python3.11dist(pyproject-hooks)
## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.11.5
%description
%{summary}.
%if 0%{?with_pyver}
%if "0%{?with_pyver}" == "03"
%define py_requires_append \
Obsoletes: python-build-py310 <= 1.1.1-1mamba
%endif
%pyver_package
%endif
@ -30,31 +33,80 @@ BuildRequires: python3.7dist(tomli)
%setup -q -n build-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%if "0%{?with_pyver}" == "03"
# Bootstrap
virtualenv -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}"
%{__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
%if "%{?with_pyver}" != "3"
mv %{buildroot}%{_bindir}/pyproject-build{,-%{with_pyver}}
sed -i "s|pyproject-build|pyproject-build-%{with_pyver}|" %{name}.filelist
%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
%endif
%files %{?pyappend} -f %{name}.filelist
%if "%{?with_pyver}" != "3"
# 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}
%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
* Sun Aug 03 2025 Automatic Build System <autodist@openmamba.org> 1.3.0-1mamba
- automatic version update by autodist
* Mon Oct 07 2024 Automatic Build System <autodist@openmamba.org> 1.2.2.post1-2mamba
- automatic version update by autodist
* Mon Oct 07 2024 Automatic Build System <autodist@openmamba.org> 1.2.2.post1-1mamba
- automatic version update by autodist
* Sat Sep 07 2024 Automatic Build System <autodist@openmamba.org> 1.2.2-1mamba
- automatic version update by autodist
* Thu Apr 25 2024 Automatic Build System <autodist@openmamba.org> 1.2.1-1mamba
- automatic version update by autodist
* Sun Mar 24 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-2mamba
- obsolete python-build-py310
* Fri Mar 01 2024 Automatic Build System <autodist@openmamba.org> 1.1.1-1mamba
- automatic version update by autodist
* 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
- automatic version update by autodist
* Sat Sep 02 2023 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
- automatic version update by autodist
* 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
* Sat May 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0-2mamba
- rebuilt with python 3.10 subpackage