More RPM tweaks.
authorCarl Hetherington <cth@carlh.net>
Mon, 4 Aug 2014 19:20:42 +0000 (20:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 4 Aug 2014 19:20:42 +0000 (20:20 +0100)
cscript

diff --git a/cscript b/cscript
index 0bfde74bed5d9d80d417d4efd931feebec232462..4d4737865ca39a757a2ab3e61368d6055611c833 100644 (file)
--- a/cscript
+++ b/cscript
@@ -223,17 +223,13 @@ def package_centos(target, cpu, version):
     os.makedirs('build/rpmbuild/SPECS')
     os.makedirs('build/rpmbuild/SRPMS')
 
-    f = open('build/rpmmacros', 'w')
-    print >>f,os.path.expanduser("%_topdir ~/build/rpmbuild")
-    f.close()
-
     target.command('./waf dist')
     shutil.copyfile(
         "%s/src/dcpomatic/dcpomatic-%s.tar.bz2" % (target.directory, version),
         "build/rpmbuild/SOURCES/dcpomatic-%s.tar.bz2" % version
         )
 
-    target.command('rpmbuild --rcfile build/rpmmacros -bb build/platform/linux/dcpomatic.spec')
+    target.command('rpmbuild --define \'_topdir build/rpmbuild\' -bb build/platform/linux/dcpomatic.spec')
     rpms = []
 
     if cpu == "amd64":