From: Phillip Moore Date: Thu, 7 Oct 2010 23:25:09 +0000 (-0400) Subject: Extract the .version file when building the srpm file X-Git-Tag: openafs-devel-1_5_78~79 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d89a0dec2ae7d37c948c625367a144b82e1734d4;p=packages%2Fo%2Fopenafs.git 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 Reviewed-by: Derrick Brashear (cherry picked from commit a2888f6d405150933bc31d1470ca2426bdf77c50) Change-Id: I2443cced5105a0e31ffe04c156370b75e06ced97 Reviewed-on: http://gerrit.openafs.org/3056 Tested-by: Derrick Brashear --- diff --git a/src/packaging/RedHat/makesrpm.pl b/src/packaging/RedHat/makesrpm.pl index 7ab662161..733f90df9 100755 --- a/src/packaging/RedHat/makesrpm.pl +++ b/src/packaging/RedHat/makesrpm.pl @@ -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";