Err, what? You trimmed out the relevant part of that quote:

> You can of course define a macro that contains and %if-%else-%endif but that 
> will only work as expected when expanded in a spec.

That macro is part of automated debuginfo generation and is only ever invoked 
in spec context, where %if is perfectly fine. That macro snippet is there to 
avoid debuginfo generation on noarch packages.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/635#issuecomment-465466392
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to