Skip to content

Commit

Permalink
fix: add rpm profile
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Paul <[email protected]>
  • Loading branch information
say-paul committed Oct 9, 2023
1 parent a955539 commit 0069eba
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions greenboot.spec
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ rustflags = %{__global_rustflags_toml}
%else
rustflags = "%{__global_rustflags_toml}"
%endif
[profile.rpm]
inherits = "release"
[install]
root = "%{buildroot}%{_prefix}"
Expand All @@ -196,12 +199,7 @@ EOF
%endif

%build
%if 0%{?rhel} && !0%{?eln}
%cargo_build
%else
%cargo_build --release -j2
%endif


%install
%cargo_install
Expand Down

0 comments on commit 0069eba

Please sign in to comment.