Avoid hard-coding the Version field in the generated spec file.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
M=DEL
fi
-__KERNELRELEASE=$(echo $KERNELRELEASE | sed -e "s/-/_/g")
-
# We can label the here-doc lines for conditional output to the spec file
#
# Labels:
Name: kernel
Summary: The Linux Kernel
- Version: $__KERNELRELEASE
+ Version: %(echo %{KERNELRELEASE} | sed -e 's/-/_/g')
Release: $(cat .version 2>/dev/null || echo 1)
License: GPL
Group: System Environment/Kernel