From 770e621faed5081f0aa18d8ec3d79b9671cea31e Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 23 May 2012 23:41:04 +0200 Subject: [PATCH] spec: fix version handling of 3.x kernels (in contrary to 3.x.y) --- kernel.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index ba0ab72..81c1e7c 100644 --- a/kernel.spec +++ b/kernel.spec @@ -13,7 +13,7 @@ %global cpu_arch x86_64 %define cpu_arch_flavor %cpu_arch/%build_flavor -%define kernelrelease %version-%rel.%cpu_arch +%define kernelrelease %(echo %{version} | sed 's/3\\.[0-9]\\+$/\\0.0/')-%rel.%cpu_arch %define my_builddir %_builddir/%{name}-%{version} %define build_src_dir %my_builddir/linux-%version