Extract the .version file when building the srpm file

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>
This commit is contained in:
Phillip Moore 2010-10-07 19:25:09 -04:00 committed by Derrick Brashear
parent f25752c7ad
commit d89a0dec2a

View File

@ -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";