diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-12 02:52:21 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-09-12 02:52:21 +0000 |
commit | 363e3b267f7bc8d63c50ea7c76560ee3ff5d6960 (patch) | |
tree | 402155cc4d3fe2dfbef7e33a1b38c287e0122e98 /rdiff-backup/dist/makedist | |
parent | 8111704fa1329566b31561a06e0c49d8bfd8e715 (diff) | |
download | rdiff-backup-363e3b267f7bc8d63c50ea7c76560ee3ff5d6960.tar.gz |
Now build both regular and Fedora rpms
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-12@430 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/dist/makedist')
-rwxr-xr-x | rdiff-backup/dist/makedist | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/rdiff-backup/dist/makedist b/rdiff-backup/dist/makedist index 3016abf..0ac5d80 100755 --- a/rdiff-backup/dist/makedist +++ b/rdiff-backup/dist/makedist @@ -8,7 +8,8 @@ DistDir = "dist" # Various details about the files must also be specified by the rpm # spec template. spec_template = "dist/rdiff-backup.spec.template" -#redhat_spec_template = "dist/rdiff-backup.rh7x.spec" +# The Fedora distribution has its own spec template +fedora_spec_template = "dist/rdiff-backup.spec.template-fedora" def CopyMan(destination, version): """Create updated man page at the specified location""" @@ -121,10 +122,10 @@ def MakeTar(): def MakeSpecFile(): """Create spec file using spec template""" - #specfile = "rdiff-backup-%s-2.spec" % Version - specfile = "rdiff-backup.spec" # Fedora standard name + specfile, fedora_specfile= "rdiff-backup.spec", "rdiff-backup.spec-fedora" VersionedCopy(spec_template, specfile) - return specfile + VersionedCopy(fedora_spec_template, fedora_specfile) + return specfile, fedora_specfile def parse_cmdline(arglist): """Returns action""" @@ -153,8 +154,8 @@ def Main(): print "Processing version " + Version tarfile = MakeTar() print "Made tar file " + tarfile - specfile = MakeSpecFile() - print "Made specfile ", specfile + specfiles = MakeSpecFile() + print "Made specfiles ", specfiles if __name__ == "__main__" and not globals().has_key('__no_execute__'): |