Allows to specify additional macros (e.g. 'vendor' or 'packager') in
/etc/mach/conf. A sample configuration might be

| config['macros'] = {
|     'packager'  :  'A packager name',
|     'vendor'    :  'A vendor name'
| }


2003-11-13  Enrico Scholz  <enrico.scholz@informatik.tu-chemnitz.de>

	* created initially
--- mach/scripts/mach.in~macros	2003-11-13 19:39:12.000000000 +0100
+++ mach/scripts/mach.in	2003-11-13 19:43:13.000000000 +0100
@@ -1127,6 +1127,10 @@
         self._install ('base')
         self.umount ()
 
+    def __writeMacros(self, file):
+        for mac in self.config.get('macros', {}).items():
+            file.write('%%%-19s %s\n' % (mac))
+
     def _setup_build (self):
         "set up a root for rpm building"
         if self.get_state ('build'):
@@ -1151,6 +1155,7 @@
         macros.write ("%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm\n")
         macros.write ("%_unpackaged_files_terminate_build 1\n")
         macros.write ("%_missing_doc_files_terminate_build 1\n")
+        self.__writeMacros(macros)
         macros.close ()
         self.do_chroot ('mv /tmp/macros /etc/rpm')
         for dir in ('RPMS', 'SRPMS', 'SOURCES', 'SPECS', 'BUILD'):
