[packages/maturin] - use plain build dir instead of %%builddir macro (which bumps rpm dependency to >= 1:4.19)
qboosh
qboosh at pld-linux.org
Mon May 26 18:57:48 CEST 2025
commit 7406a1f321ab9b84cfb28eaa019c5aeb542c73f6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon May 26 18:32:59 2025 +0200
- use plain build dir instead of %%builddir macro (which bumps rpm dependency to >= 1:4.19)
maturin.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/maturin.spec b/maturin.spec
index 184bd00..6200152 100644
--- a/maturin.spec
+++ b/maturin.spec
@@ -48,9 +48,9 @@ Maturin bindings for Python.
%{__mv} maturin-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock
-diffstat -l -p1 %PATCH0 | xargs sha256sum > %builddir/x32.patch.sha256
+diffstat -l -p1 %{PATCH0} | xargs sha256sum > x32.patch.sha256
%patch -P0 -p1
-cat %builddir/x32.patch.sha256 | while read old_sum f; do
+cat x32.patch.sha256 | while read old_sum f; do
new_sum=$(sha256sum $f | cut -f1 -d' ')
test "$old_sum" != "$new_sum"
%{__sed} -i -e "s/$old_sum/$new_sum/" vendor/ring/.cargo-checksum.json
@@ -89,7 +89,7 @@ export CARGO_HOME="$(pwd)/.cargo"
%if %{with python3}
export RUSTFLAGS="%{rpmrustflags}"
export MATURIN_SETUP_ARGS="%__cargo_common_opts --target %rust_target --target-dir %cargo_targetdir"
-rm $RPM_BUILD_ROOT%{_bindir}/maturin
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/maturin
%py3_install_pyproject
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/maturin.git/commitdiff/c58ba69860851602e4436cb87a5b477e0079cb34
More information about the pld-cvs-commit
mailing list