diff options
author | Brent Eagles <brent@zeroc.com> | 2005-03-09 04:10:16 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-03-09 04:10:16 +0000 |
commit | 89fd68cf40c7f44b02cbb6cb7acff02701148e8e (patch) | |
tree | 954c95509abcaff075e18fa689f182339cecde4d /cpp/RPMTools.py | |
parent | Fixes (diff) | |
download | ice-89fd68cf40c7f44b02cbb6cb7acff02701148e8e.tar.bz2 ice-89fd68cf40c7f44b02cbb6cb7acff02701148e8e.tar.xz ice-89fd68cf40c7f44b02cbb6cb7acff02701148e8e.zip |
some demo tarball cleanup and the RPM building will now create a source RPM
with a proper spec file
Diffstat (limited to 'cpp/RPMTools.py')
-rw-r--r-- | cpp/RPMTools.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/RPMTools.py b/cpp/RPMTools.py index bbfefc30c40..1d7fb5dab87 100644 --- a/cpp/RPMTools.py +++ b/cpp/RPMTools.py @@ -506,6 +506,13 @@ def createRPMSFromBinaries(buildDir, installDir, version, soVersion): ofile.close() os.system("rpmbuild --target noarch -bb IceJ-" + version + ".spec") + ofile = open(installDir + '/ice-' + version + '.spec', 'w') + createFullSpecFile(ofile, installDir, version, soVersion) + ofile.flush() + ofile.close() + os.system('rpmbuild -bs ' + installDir + '/ice-' + version + '.spec') + + def writeUnpackingCommands(ofile, version): ofile.write('%setup -n Ice-%{version} -q -T -D -b 0\n') ofile.write("""# |