From a48b01361db76968b6a3ff28f708973fccafe8e5 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mon, 2 Oct 2023 11:11:17 +0200 Subject: [PATCH] Use bundled rust deps on RHEL --- snapshot.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/snapshot.spec b/snapshot.spec index f7539c6..59a25dc 100644 --- a/snapshot.spec +++ b/snapshot.spec @@ -1,5 +1,11 @@ %bcond_without check +%if 0%{?rhel} +%global bundled_rust_deps 1 +%else +%global bundled_rust_deps 0 +%endif + %global tarball_version %%(echo %{version} | tr '~' '.') Name: snapshot @@ -56,15 +62,19 @@ Take pictures and videos on your computer, tablet, or phone. %prep %autosetup -p1 -n snapshot-%{tarball_version} +%if ! 0%{?bundled_rust_deps} rm -rf vendor %cargo_prep +%endif +%if ! 0%{?bundled_rust_deps} %generate_buildrequires %cargo_generate_buildrequires cd aperture %cargo_generate_buildrequires cd ~- +%endif %build