Compare commits
8 Commits
1.0.3-1mam
...
main
Author | SHA1 | Date | |
---|---|---|---|
b7f08f6134 | |||
ccce39a110 | |||
3ab3beb698 | |||
687ab303d4 | |||
b9171e5525 | |||
8a93291e08 | |||
4de52002fb | |||
e77c5d792c |
@ -1,6 +1,6 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2-)
|
||||
Name: python-build
|
||||
Version: 1.0.3
|
||||
Version: 1.3.0
|
||||
Release: 1mamba
|
||||
Summary: A simple, correct PEP517 package builder
|
||||
Group: System/Libraries
|
||||
@ -10,18 +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(pyproject-hooks)
|
||||
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
|
||||
|
||||
@ -29,11 +33,26 @@ BuildRequires: python3.7dist(tomli)
|
||||
%setup -q -n build-%{version}
|
||||
|
||||
%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}"
|
||||
%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
|
||||
|
||||
%if "%{?with_pyver}" != "3"
|
||||
# Rename any conflicting file outside of python site packages tree
|
||||
@ -52,6 +71,30 @@ done
|
||||
%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
|
||||
|
||||
|
Reference in New Issue
Block a user