fix: anda-srpm-macros (#764)

This commit is contained in:
madomado
2023-10-29 16:23:47 +08:00
committed by GitHub
parent e134124580
commit 67e9b7e972
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
Name: anda-srpm-macros
Version: 0.1.4
Version: 0.1.5
Release: 1%{?dist}
Summary: SRPM macros for extra Fedora packages
+8 -1
View File
@@ -2,6 +2,13 @@
set -eu \
%{__mkdir} -p .cargo \
cat > .cargo/config << EOF \
[profile.rpm]\
inherits = "release"\
opt-level = 3\
codegen-units = 1\
debug = 2\
strip = "none"\
\
[build]\
rustc = "%{__rustc}"\
rustdoc = "%{__rustdoc}"\
@@ -25,4 +32,4 @@ directory = "%{cargo_registry}"\
EOF\
%{__rm} -f Cargo.lock \
%{__rm} -f Cargo.toml.orig \
)
)