diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-12-31 08:46:22 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-12-31 08:46:22 +0000 |
commit | b53bfd4d41252426cb050ef896676034d92e3ef7 (patch) | |
tree | 5d03aedc0a408da049390e8e9d8a7d28ad596c49 /rdiff-backup/dist/makerpm | |
parent | c08ca27a381443d6e72ee8d16269e5a535df58d1 (diff) | |
download | rdiff-backup-b53bfd4d41252426cb050ef896676034d92e3ef7.tar.gz |
Various changes for v0.11.1 (see CHANGELOG)
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@256 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/dist/makerpm')
-rwxr-xr-x | rdiff-backup/dist/makerpm | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/rdiff-backup/dist/makerpm b/rdiff-backup/dist/makerpm index 8f59f65..2f275b2 100755 --- a/rdiff-backup/dist/makerpm +++ b/rdiff-backup/dist/makerpm @@ -2,7 +2,7 @@ import os, sys, re -SourceDir = "src" +rpmroot = "/home/ben/rpm" if len(sys.argv) == 2: version = sys.argv[1] @@ -20,15 +20,9 @@ tarfile = "-".join(base.split("-")[:-1]) + ".tar.gz" # These assume the rpm root directory $HOME/rpm. The # nonstandard location allows for building by non-root user. -assert not os.system("cp %s $HOME/rpm/SOURCES" % (tarfile,)) -assert not os.system("rpm -ba --sign -vv --target i386 " + specfile) -assert not os.system("cp $HOME/rpm/RPMS/i386/%s ." % i386rpm) -assert not os.system("cp $HOME/rpm/SRPMS/%s ." % source_rpm) +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 " + specfile) +assert not os.system("cp %s/RPMS/i386/%s ." % (rpmroot, i386rpm)) +assert not os.system("cp %s/SRPMS/%s ." % (rpmroot, source_rpm)) -# Old root RPM instructions -#assert not os.system("install -o root -g root -m 644 %s " -# "/usr/src/redhat/SOURCES" % (tarfile,)) -#assert not os.system("install -o ben -g ben -m 644 " -# "/usr/src/redhat/RPMS/i386/%s ." % i386rpm) -#assert not os.system("install -o ben -g ben -m 644 " -# "/usr/src/redhat/SRPMS/%s ." % source_rpm) |