specfile: gawk_api_* macros sanitized

Generating of this macros should not produce a failure exit code,
  and tar stderr has been forwarded to /dev/null...
This commit is contained in:
David Kaspar [Dee'Kej] 2018-06-20 15:35:52 +02:00
parent 1dcd827b5f
commit 94d433f440
1 changed files with 4 additions and 4 deletions

View File

@ -31,13 +31,13 @@
%global _hardened_build 1
# Extract the API major & minor versions, so we can export them below:
%global gawk_api_major %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout | \
%global gawk_api_major %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout 2>/dev/null | \
grep -i -e "gawk_api_major.*[[:digit:]]" | \
grep -o -e "[[:digit:]]")
grep -o -e "[[:digit:]]" || :)
%global gawk_api_minor %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout | \
%global gawk_api_minor %%(tar -xf %{SOURCE0} gawk-%{version}/gawkapi.h --to-stdout 2>/dev/null | \
grep -i -e "gawk_api_minor.*[[:digit:]]" | \
grep -o -e "[[:digit:]]")
grep -o -e "[[:digit:]]" || :)
# =============================================================================