From 0069ebabb93478a2998c04dd07187bcf4e10a8ba Mon Sep 17 00:00:00 2001 From: Sayan Paul Date: Mon, 9 Oct 2023 12:33:45 +0000 Subject: [PATCH] fix: add rpm profile Signed-off-by: Sayan Paul --- greenboot.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/greenboot.spec b/greenboot.spec index 9145ff8..ebc5cd1 100644 --- a/greenboot.spec +++ b/greenboot.spec @@ -175,7 +175,10 @@ rustflags = %{__global_rustflags_toml} %else rustflags = "%{__global_rustflags_toml}" %endif - + +[profile.rpm] +inherits = "release" + [install] root = "%{buildroot}%{_prefix}" @@ -196,12 +199,7 @@ EOF %endif %build -%if 0%{?rhel} && !0%{?eln} %cargo_build -%else -%cargo_build --release -j2 -%endif - %install %cargo_install