os.makedirs('%s/rpmbuild/SPECS' % target.directory)
os.makedirs('%s/rpmbuild/SRPMS' % target.directory)
- f = open('%s/.rpmmacros' % target.dir_in_chroot, 'w')
- print >>f,"%%_topdir %srpmbuild" % target.dir_in_chroot
+ f = open(os.path.expanduser('~/.rpmmacros'), 'w')
+ print >>f,os.path.expanduser("%%_topdir ~/srpmbuild")
f.close()
target.command('./waf dist')