Acknowledgements, Apcupsd --- rpm packaging faq, Answers – APC UPS control system User Manual
Page 201: Apcupsd — rpm packaging faq

Acknowledgements
The apcupsd has a rather long and tormented history. Many thanks to the
guys that, with time, contributed to the general public knowledge.
Pavel Korensky
Smolkowski
additions by:
Apcupsd — RPM Packaging FAQ
Answers
How do I build Apcupsd for platform xxx? The apcupsd spec file
contains defines to build for several platforms: RedHat 7.x (rh7), Red-
Hat 8.0 (rh8), RedHat 9 (rh9), Fedora Core 1 (fc1), and Whitebox
Enterprise Linux 3.0 (wb3). The package build is controlled by a
define set at the beginning of the file. These defines basically just
control the dependancy information that gets coded into the finished
rpm package. So while you could technically build a package without
defining a platform, or with an incorrect platform, and have it install
and run it would not contain correct dependancy information for the
rpm database. The platform define may be edited in the spec file di-
rectly (by default all defines are set to 0 or “not set”). For example,
to build the RedHat 7.x package find the line in the spec file which
reads
%define rh7 0
and edit it to read
%define rh7 1
Alternately you may pass the define on the command line when calling
rpmbuild:
200