[Rpm-maint] [rpm-software-management/rpm] Is there some oneliner to be used with %{with bootstrap} (Discussion #3536)

Vít Ondruch notifications at github.com
Fri Jan 24 11:40:50 UTC 2025


In my spec file, I've got this `bcond`ized BR:

~~~
%if %{without bootstrap}
BuildRequires: rubygem(railties) = %{version}
%endif
~~~

Is there a way to shorten it to oneliner? This is one option, but then I'll rather stay with the former:

~~~
%[%{without bootstrap} ? "BuildRequires: rubygem(railties) = %{version}" : ""]
~~~

If something like this could work:

~~~
%{%{without bootstrap}:BuildRequires: rubygem(railties) = %{version}}
~~~

O maybe:

~~~
%{without bootstrap BuildRequires: rubygem(railties) = %{version}}
~~~

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3536
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/3536 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250124/e4c80c9d/attachment.htm>


More information about the Rpm-maint mailing list