Fix kernel version detection 24/28224/1 accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_ivi tizen tizen_3.0.m14.3_ivi tizen_3.0_ivi accepted/tizen/ivi/20140930.164319 accepted/tizen/ivi/20141217.060352 accepted/tizen/ivi/20141219.050209 submit/tizen/20141217.035000 submit/tizen/20141218.025211 submit/tizen_ivi/20140930.989898 submit/tizen_ivi/20150107.080709 tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorMikko Ylinen <mikko.ylinen@intel.com>
Tue, 30 Sep 2014 15:04:38 +0000 (18:04 +0300)
committerMikko Ylinen <mikko.ylinen@intel.com>
Tue, 30 Sep 2014 15:04:38 +0000 (18:04 +0300)
Change-Id: Ifb358de6631948ce80b0af1f8b8daabd94332c9f
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
packaging/openavb.spec

index 9fa4210..aeb6ad0 100644 (file)
@@ -1,6 +1,6 @@
 %{!?_with_debug:%{!?_without_debug:%define _without_debug 0}}
 
-%define kernel kernel-x86-ivi
+%define kernel "%(/bin/rpm -q --whatprovides kernel-profile-ivi)"
 %define kernel_relstr "%(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' %{kernel})"
 %define kernel_release %(echo %{kernel_relstr})
 %define kernel_modstr "%(/bin/rpm -ql %{kernel} | sort | grep /lib/modules/%{kernel_release} | head -1 | sed 's#/*$##g')"
@@ -19,15 +19,20 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 Requires: openavb-kmod-igb
 ExclusiveArch:  %ix86 x86_64
 
-BuildRequires: libstdc++-devel
+%ifarch %ix86
+# Temporary to address "have choice for kernel-devel"
+BuildRequires: kernel-ivi-i386-default-devel
+%else
 BuildRequires: kernel-devel
+%endif
+BuildRequires: libstdc++-devel
 BuildRequires: pkgconfig(libpci)
 BuildRequires: pkgconfig(zlib)
 
 %package kmod-igb
 Summary: kernel module for Intel ethernet cards
 Group: System/Kernel
-Requires: %{kernel} = %{kernel_release}
+Requires: kernel-profile-ivi = %{kernel_release}
 
 %package libigb
 Summary: IGB runtime library