]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Extract the .version file when building the srpm file
authorPhillip Moore <w.phillip.moore@gmail.com>
Thu, 7 Oct 2010 23:25:09 +0000 (19:25 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 25 Oct 2010 23:19:27 +0000 (16:19 -0700)
If you are building the source and binary rpms from a released
tarball, instead of a real git repo, the .version file is required by
build-tools/git-version.  With out this, the version defaults to
UNKNOWN, and although the source rpm will build, it won't compile.

Reviewed-on: http://gerrit.openafs.org/2948
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a2888f6d405150933bc31d1470ca2426bdf77c50)
Change-Id: I2443cced5105a0e31ffe04c156370b75e06ced97
Reviewed-on: http://gerrit.openafs.org/3056
Tested-by: Derrick Brashear <shadow@dementia.org>
src/packaging/RedHat/makesrpm.pl

index 7ab6621616c7b3812bff71b9618b3ceba6d4ca2b..733f90df988bc62aba6faa479bb2ef1f1cdf4a8b 100755 (executable)
@@ -31,6 +31,7 @@ my $tmpdir = File::Temp::tempdir(CLEANUP => 1);
 
 system("tar -C $tmpdir -xvjf $srcball '\*/configure.ac' ".
        "'\*/src/packaging/RedHat' ".
+       "'\*/.version' ".
        "'\*/build-tools' > /dev/null")==0
   or die "Unable to unpack src tar ball\n";