Re: [Rpm-maint] [rpm-software-management/rpm] %{**} loses whitespace (#1439)

2021-03-01 Thread Michal Domonkos
What you're looking for is the `%{quote:...}` macro, documented 
[here](https://rpm.org/user_doc/macros.html).

Example without the quote macro:
```
$ rpm --define 'hello() %{**}' --eval "%hello 1 2"
1 2
```
And with the macro:
```
$ rpm --define 'hello() %{**}' --eval "%hello 1 %{quote: 2}"
1  2
```

Hope that helps! I'm closing the issue now, please reopen if that's not what 
you meant. Thanks!

-- 
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/1439#issuecomment-788042887___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] %{**} loses whitespace (#1439)

2021-03-01 Thread Michal Domonkos
Closed #1439.

-- 
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/1439#event-4390300429___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] %{**} loses whitespace (#1439)

2020-11-15 Thread Demi Marie Obenour
If a macro is passed several arguments separated by some whitespace, I expect 
that `%{**}` includes the original whitespace.  Instead, this whitespace is 
lost.

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