[packages/rpm-pld-macros] add --no-track to %cargo_install; rel 2

atler atler at pld-linux.org
Sat Mar 1 13:52:50 CET 2025


commit 2eecc24587f4a8ecd14527b51cbdc8fb694d6905
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Mar 1 13:02:09 2025 +0100

    add --no-track to %cargo_install; rel 2

 macros.rust         | 2 ++
 rpm-pld-macros.spec | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index ee3679d..3111c10 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -6,7 +6,7 @@ Summary:	PLD Linux RPM macros
 Summary(pl.UTF-8):	Makra RPM dla Linuksa PLD
 Name:		rpm-pld-macros
 Version:	%{rpm_macros_rev}
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Development/Building
 Source0:	macros.pld
@@ -90,6 +90,8 @@ Provides:	rpmbuild(find_lang) = %{find_lang_rev}
 Provides:	rpmbuild(macros) = %{rpm_macros_rev}
 Requires:	rpm-macros-systemd
 Obsoletes:	rpm-build-macros < 1.745
+# ensure cargo with install --no-track support
+Conflicts:	cargo < 1.41.0
 Conflicts:	gettext-devel < 0.11
 # ensure not using meson without meson-related macros in package
 Conflicts:	meson < 1.6.1-3
diff --git a/macros.rust b/macros.rust
index 7996c4f..9f5b279 100644
--- a/macros.rust
+++ b/macros.rust
@@ -52,6 +52,7 @@ thumbv7neon-unknown-linux-gnueabihf\\\
 	--target-dir %{cargo_targetdir} \\\
 %{nil}
 
+# BuildRequires: cargo >= 1.41.0
 %cargo_install \\\
 	CC="%{__cc}" \\\
 	CXX="%{__cxx}" \\\
@@ -66,4 +67,5 @@ thumbv7neon-unknown-linux-gnueabihf\\\
 	%{__cargo} %{__cargo_common_opts} install \\\
 	--target %rust_target \\\
 	--target-dir %{cargo_targetdir} \\\
+	--no-track \\\
 %{nil}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/2eecc24587f4a8ecd14527b51cbdc8fb694d6905



More information about the pld-cvs-commit mailing list