+
+# Buildpkg script for producing RPM packages. (Does not require root access.)
+# Buildpkg is designed to be used by both buildbot (to automate rpm production)
+# and by J Random User (to build an rpm for kicks). The odd way of handling
+# all optioins through environment variables is a product of buildbot.
+#
+# AMVER: the version of amanda we're working on. This will become part of the
+# rpm name. AMVER must line up with the version number mentioned in the
+# .spec file.
+# AMTARBALL: the name of the tarball which contains the source code. it must
+# unpack into a directory named AMVER. It's easiest and safest to just
+# let the script create a new one for you, even if it's a bit more overhead
+# AMPKGDIR: Rpmbuild expects absolute paths, so we provide this var. It also
+# allows you to build somewhere other than `pwd`. You probably don't want
+# to use the system-wide location, as the script tries to blow these
+# directories away.
+#
+# Other Hints:
+# Not everyone will want to use the ./configure options we provide. The
+# easiest way to change them is by editing the .spec file. This isn't so
+# easy, unfortunately. Look at the %build section, and the %define xxxx
+# statements immediately above it. good luck.