diff --git a/SPECS/util-linux.spec b/SPECS/util-linux.spec index 5149ca1..c915a5d 100644 --- a/SPECS/util-linux.spec +++ b/SPECS/util-linux.spec @@ -8,7 +8,8 @@ URL: http://en.wikipedia.org/wiki/Util-linux ### Macros %define upstream_version %{version} -%define upstream_major %(eval echo %{version} | %{__sed} -e 's/\([[:digit:]]*\)\.\([[:digit:]]*\)\.[[:digit:]]*$/\1.\2/') +%define upstream_major %(eval /usr/binecho %{version} | /usr/bin/awk -F '[.]' '{ printf("%s.%s", $1, $2) }') + %define compldir %{_datadir}/bash-completion/completions/