Well, we don't need to allow %global.
Anyway, let's move a step back and talk about this issue. This is about one
shot macros. Implementation wise this is not hard, it's more a question of
syntax.
It would be nice to have the following options:
- literal: do not expand the macro when using it
- global: put macro in global namespace
- expand: expand macro right away
- once: cache expanded macro (this issue)
So %global is %define plus the global + expand flags.
Macro names can't start with a `-`, so we could make use normal options:
```
%global foo bar
%define -g -x foo bar
```
As next step can can discuss how we support this in the macro files ;)
--
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/1155#issuecomment-614169509
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint