For the sake of anybody following this thread archived in 10 years, I finally found how this works. There are tons of macros defined in the file /usr/lib/rpm/macros. For example, the macros %_topdir and %_builddir are available, which is what I was looking for all along. Thanks to all who helped me out. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list