Imagine something like this:
```
%ldconfig /sbin/ldconfig
%ldconfig_post(n:) %{?ldconfig:%post -p %ldconfig %{?*} %{-n:-n %{-n*}}\
%end\
}
%ldconfig_postun(n:) %{?ldconfig:%postun -p %ldconfig %{?*} %{-n:-n %{-n*}}\
%end\
}
```
```
%ldconfig_post foo
%ldconfig_postun foo
```
will expand into
``
Or, khm this is probably caused by `}` being on new line...
--
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/401#issuecomment-368286041_
%end is a spec directive, the macro engine knows absolutely nothing about it.
--
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/401#issuecomment-368461399___
macros.foo
```
%xxx defined
%aaa %{?xxx:\
aaa\
}
%bbb %{?xxx:\
bbb\
}
```
```
⋊> ~ rpm --macros macros.foo --eval "%aaa" --eval "%bbb"
13:08:23
aaa