On Mon, 2021-11-29 at 15:08 +0100, Vitaly Zaitsev via devel wrote:
> On 29/11/2021 14:57, Jun Aruga wrote:
> > Did you find a better alternative syntax?
> 
> Now I'm using the following:
> 
> %global enable_foo 1
> 
> %if %{enable_foo}
> ...
> %endif


I use %bcond , with %bcond we can manipulate mock builds with --with ou
--without .
In my opinion the most confuse of %bcond is not have %without tag . I
think that is address here : 
https://github.com/rpm-software-management/rpm/pull/1520

Thank you, 
> -- 
> Sincerely,
>    Vitaly Zaitsev (vit...@easycoding.org)
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
> https://pagure.io/fedora-infrastructure

-- 
Sérgio M. B.
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to