diff options
author | Brent Eagles <brent@zeroc.com> | 2005-02-25 19:29:37 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-02-25 19:29:37 +0000 |
commit | 93c0bca84c4f155747435219825b19ae59a8e6ab (patch) | |
tree | ae013505a330e4874ba3d1fb432318fc1c95c668 /cpp/makedist.py | |
parent | adding placeholder readmes for rpm installation parts (diff) | |
download | ice-93c0bca84c4f155747435219825b19ae59a8e6ab.tar.bz2 ice-93c0bca84c4f155747435219825b19ae59a8e6ab.tar.xz ice-93c0bca84c4f155747435219825b19ae59a8e6ab.zip |
makedist.py will now generate an RPM spec file to include in the core
source distribution, users will be able to use this spec file to
generate RPMs themselves
Diffstat (limited to 'cpp/makedist.py')
-rwxr-xr-x | cpp/makedist.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/makedist.py b/cpp/makedist.py index 2e814023e48..21affd1f235 100755 --- a/cpp/makedist.py +++ b/cpp/makedist.py @@ -8,7 +8,7 @@ # # ********************************************************************** -import os, sys, shutil, fnmatch, re, glob +import os, sys, shutil, fnmatch, re, glob, RPMTools # # Program usage. @@ -224,6 +224,7 @@ filesToRemove = [ \ os.path.join("ice", "makedist.py"), \ os.path.join("ice", "makebindist.py"), \ os.path.join("ice", "newmakebindist.py"), \ + os.path.join("ice", "RPMTools.py"), \ os.path.join("ice", "fixCopyright.py"), \ ] filesToRemove.extend(find("ice", ".dummy")) @@ -337,7 +338,11 @@ if not skipDocs: # config = open(os.path.join("ice", "include", "IceUtil", "Config.h"), "r") version = re.search("ICE_STRING_VERSION \"([0-9\.]*)\"", config.read()).group(1) - +config.seek(0) +soVersion = re.search("ICE_INT_VERSION ([0-9]*)", config.read()).group(1) +rpmSpecFile = open(os.path.join('ice', 'install', 'rpm', 'Ice-' + version + '-1.spec'), 'w') +RPMTools.createFullSpecFile(rpmSpecFile, '', version, soVersion) +rpmSpecFile.close() # # Create archives. # |