public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-cargo-c] eln: Adapt cargo-c macros to support the same flags as the cargo counterparts
Date: Thu, 15 Oct 2026 01:27:28 GMT	[thread overview]
Message-ID: <179202764813.1.6742660248477324185.rpms-rust-cargo-c-65c67f3c4d2c@fedoraproject.org> (raw)

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                 \
 }
 

                 reply	other threads:[~2026-10-15  1:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179202764813.1.6742660248477324185.rpms-rust-cargo-c-65c67f3c4d2c@fedoraproject.org \
    --to=decathorpe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox