Browse Source

change the major version detection

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 3 years ago
parent
commit
377c87ff45
  1. 3
      SPECS/util-linux.spec

3
SPECS/util-linux.spec

@ -8,7 +8,8 @@ URL: http://en.wikipedia.org/wiki/Util-linux


### Macros ### Macros
%define upstream_version %{version} %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/ %define compldir %{_datadir}/bash-completion/completions/



Loading…
Cancel
Save