mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
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:
parent
f25752c7ad
commit
d89a0dec2a
@ -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";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user