rpms: Make makesrpm.pl cater for new rpm names
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 17 Mar 2011 19:28:23 +0000 (19:28 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 17 Mar 2011 22:17:20 +0000 (15:17 -0700)
commitaf854b4e2f19e5f1a83b686e99ca3dd6122af942
treee9cd36b200ad700a7dcec5dbb71c8eab7743323e
parentc10f5296d26eac9ac00018199ef579e8f6095c07
rpms: Make makesrpm.pl cater for new rpm names

Starting from 1.6.0, our specfile no longer adds a stray '1.' to the
start of the release field. makesrpm.pl was failing to deal with
these new-style names and therefore not actually making an rpm.

Fix this by conditionalising on the OpenAFS version when selecting
which rpm to copy.

Change-Id: I36b32ccc20baa167f46e5095eacb38a8e7d65e27
Cc: Alexander Redinger <aredinger@sinenomine.net>
Reviewed-on: http://gerrit.openafs.org/4258
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/packaging/RedHat/makesrpm.pl