RPM Spec File

Show Spec Macros

rpm --showrc
rpm --eval %{_tmppath}
rpm --eval %{_libdir}

Variables

${LINUX_VERSION}   # shell environment var
%{LINUX_VERSION}     # marco var
%define LINUX_VERSION ${LINUX_VERSION}    # ${LINUX_VERSION} not evaluated
%define LINUX_VERSION $(echo ${LINUX_VERSION}) # evaluated ${LINUX_VERSION}= 2.6.32.1

More Macros

http://www.rpm.org/wiki/PackagerDocs/Macros

No comments: