public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-cargo-c] eln: Adapt cargo-c macros to support the same flags as the cargo counterparts
@ 2026-10-15 1:27 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-10-15 1:27 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-cargo-c
Branch : eln
Commit : 65c67f3c4d2cea0323cd6d94f3867c97c5f62329
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2023-09-30T11:37:35+02:00
Stats : +22/-18 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rust-cargo-c/c/65c67f3c4d2cea0323cd6d94f3867c97c5f62329?branch=eln
Log:
Adapt cargo-c macros to support the same flags as the cargo counterparts
---
diff --git a/macros.cargo-c b/macros.cargo-c
index 9168f25..a037810 100644
--- a/macros.cargo-c
+++ b/macros.cargo-c
@@ -1,22 +1,26 @@
-%cargo_cbuild %{shrink:\
- %{__cargo} cbuild \
- %{__cargo_common_opts} \
- --release \
- --destdir=%{buildroot} \
- --prefix=%{_prefix} \
- --libdir=%{_libdir} \
- --includedir=%{_includedir} \
- --pkgconfigdir=%{_libdir}/pkgconfig \
+%cargo_cbuild(naf:)\
+%{shrink: \
+ %{__cargo} cbuild \
+ %{__cargo_common_opts} \
+ --profile rpm \
+ %{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}} \
+ --destdir=%{buildroot} \
+ --prefix=%{_prefix} \
+ --libdir=%{_libdir} \
+ --includedir=%{_includedir} \
+ --pkgconfigdir=%{_libdir}/pkgconfig \
}
-%cargo_cinstall %{shrink:\
- %{__cargo} cinstall \
- %{__cargo_common_opts} \
- --release \
- --destdir=%{buildroot} \
- --prefix=%{_prefix} \
- --libdir=%{_libdir} \
- --includedir=%{_includedir} \
- --pkgconfigdir=%{_libdir}/pkgconfig \
+%cargo_cinstall(naf:)\
+%{shrink: \
+ %{__cargo} cinstall \
+ %{__cargo_common_opts} \
+ --profile rpm \
+ %{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}} \
+ --destdir=%{buildroot} \
+ --prefix=%{_prefix} \
+ --libdir=%{_libdir} \
+ --includedir=%{_includedir} \
+ --pkgconfigdir=%{_libdir}/pkgconfig \
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-15 1:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 1:27 [rpms/rust-cargo-c] eln: Adapt cargo-c macros to support the same flags as the cargo counterparts Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox