3.2. Displaying RPM distribution macros
Different distributions provide distinct sets of recommended RPM macros based on the language implementation of the software being packaged or the specific guidelines of the distribution. The sets of recommended RPM macros are often provided as RPM packages, ready to be installed by using the DNF package manager. You can find the installed macro files in the /usr/lib/rpm/macros.d/ directory.
Procedure
Display the raw RPM macro definitions:
$ rpm --showrcDetermine what a macro does and how it can be helpful when packaging RPMs:
$ rpm --showrc | grep <macro_name>Optional: Display information about the RPMs macros for your system version of RPM:
$ rpm -ql rpm | grep macros