Yeah, %define with options is what I'd really like (I think I even mentioned 
somewhere surrounding the pending %literal). 

In macro files the name limitation could be abused for similar effect by adding 
special characters in the front of the name. AIUI rpm5 used "." to denote a 
read-only macro, for our purposes eg "=" could mean "literal" and so on. It's 
pretty ugly of course.

I suppose we could place the macro flags after the name, using a separator such 
as ':'
That would fit in the macro file syntax easily, eg:
```
%_pyver:o %(python3 --version)
```

Not sure its any prettier than special characters in front, though :joy: For a 
moment I thought about putting the flags inside [] after the name, but I think 
we want to reserve that syntax for arrays if we ever get around to implement 
them. 

-- 
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-614460893
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to