Skip to content

Commit

Permalink
build: add rpm build profile
Browse files Browse the repository at this point in the history
cargo build macro in fedora 39 and rawhide
is defaulting to profile name: rpm, so created
one which is inherited from release profile.

Signed-off-by: Sayan Paul <[email protected]>
  • Loading branch information
say-paul committed Oct 9, 2023
1 parent b96caca commit 20a9bbd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions greenboot.spec
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,15 @@ cat >.cargo/config << EOF
[build]
rustc = "%{__rustc}"
rustdoc = "%{__rustdoc}"
flags = ["-j4", "-Z", "avoid-dev-deps", "--profile release"]
%if 0%{?rhel} && !0%{?eln}
rustflags = flags
rustflags = %{__global_rustflags_toml}
%else
rustflags = "flags"
rustflags = "%{__global_rustflags_toml}"
%endif
[profile.rpm]
inherits = "release"
[install]
root = "%{buildroot}%{_prefix}"
Expand Down

0 comments on commit 20a9bbd

Please sign in to comment.