%ifdef %{prefix}
%_prefix %{prefix}
%else
%_prefix /usr
%endif
This is only for testing purpose. If this is working, I want to add
macros for sysconfdir and localstatedir depending on the prefix/_prefix
macro.
I have searched in the whole max-rpm book and I have readed some spec
files from SuSE. As I'm understandig it, my code is right.
But it isn't working. So I'm thinking it isn't right. Can you help me?
Please quote any URL, page#, or spec file where you see '%ifdef' used or documented. You're probably trying to use a SuSE-specific macro on a non-SuSE system. -frank