From d89a0dec2ae7d37c948c625367a144b82e1734d4 Mon Sep 17 00:00:00 2001 From: Phillip Moore Date: Thu, 7 Oct 2010 19:25:09 -0400 Subject: [PATCH] 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 --- src/packaging/RedHat/makesrpm.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packaging/RedHat/makesrpm.pl b/src/packaging/RedHat/makesrpm.pl index 7ab6621616..733f90df98 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";