diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-07-22 10:44:50 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-07-22 10:44:50 +0000 |
commit | b2b876fdc2544ffa01bb41228f50ede90298f638 (patch) | |
tree | 337b96250afd4465a75daf8a1783c5de4c590733 /rdiff-backup/dist/makerpm | |
parent | 3617a1f5be2c8c90d2e3c98a642279c58981c3d7 (diff) | |
download | rdiff-backup-b2b876fdc2544ffa01bb41228f50ede90298f638.tar.gz |
Final changes for 0.13.0 (small test changes, Fedora spec packaging)
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@356 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/dist/makerpm')
-rwxr-xr-x | rdiff-backup/dist/makerpm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rdiff-backup/dist/makerpm b/rdiff-backup/dist/makerpm index cddfdb2..129cbed 100755 --- a/rdiff-backup/dist/makerpm +++ b/rdiff-backup/dist/makerpm @@ -6,23 +6,23 @@ rpmroot = "/home/ben/rpm" if len(sys.argv) == 2: version = sys.argv[1] - specfile = "rdiff-backup-%s-2.spec" % version + specfile = "rdiff-backup.spec" print "Using specfile %s" % specfile else: print "Syntax: %s version_number" % sys.argv[0] sys.exit(1) -base = ".".join(specfile.split(".")[:-1]) -srcrpm = base+".src.rpm" -i386rpm = base+".i386.rpm" -source_rpm = base+".src.rpm" -tarfile = "-".join(base.split("-")[:-1]) + ".tar.gz" +base = "rdiff-backup-%s" % (version,) +tarfile = base + ".tar.gz" +rpmbase = base + "-0.fdr.1" # Fedora suffix, with release number 1 +i386_rpm = rpmbase + ".i386.rpm" +source_rpm = rpmbase + ".src.rpm" # These assume the rpm root directory $HOME/rpm. The # nonstandard location allows for building by non-root user. assert not os.system("cp %s %s/SOURCES" % (tarfile, rpmroot)) #assert not os.system("rpm -ba --sign -vv --target i386 " + specfile) assert not os.system("rpmbuild -ba -v --sign " + specfile) -assert not os.system("mv %s/RPMS/i386/%s ." % (rpmroot, i386rpm)) +assert not os.system("mv %s/RPMS/i386/%s ." % (rpmroot, i386_rpm)) assert not os.system("mv %s/SRPMS/%s ." % (rpmroot, source_rpm)) |