packaging: makes repo / tarball name matching and other config fixes 87/28287/1 sandbox/pcoval/tizen accepted/tizen/common/20141006.135521 submit/tizen_common/20141006.122133
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 30 Sep 2014 13:34:42 +0000 (15:34 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 1 Oct 2014 12:15:25 +0000 (14:15 +0200)
Change-Id: I99ec485c8cf4cb7c3f8f460a730dc3f8d42d9559
Bug-Tizen: TC-5/part
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/kernel-emulator.spec

index 7ed43f885647ead3455c24992b9b7b6158e70fbe..30d71a14a6bbbe7f2414e71f890eaf220b6fdeb5 100644 (file)
@@ -2,12 +2,11 @@
 # Spec written for Tizen Mobile, some bits and pieces originate
 # from MeeGo/Moblin/Fedora
 #
+%bcond_with emulator
 
 %define upstream_version 3.12.18
 
-%if !0%{?_with_emulator}
-ExclusiveArch:
-%else
+%if %{with emulator}
 %define platform emulator
 %endif
 
@@ -37,7 +36,7 @@ ExclusiveArch:
 %define kernel_arch i386
 %define kernel_arch_subdir arch/x86
 %define defconfig %{profile}_x86_defconfig
-%if %platform == emulator
+%if "%{platform}" == "emulator"
 %define defconfig %{kernel_arch}_tizen_emul_defconfig
 %define trace_supported 0
 %endif
@@ -58,7 +57,7 @@ ExclusiveArch:
 %endif
 
 
-Name: kernel-%{platform}
+Name: kernel-emulator
 Summary: Tizen kernel
 Group: System/Kernel
 License: GPL-2.0
@@ -93,9 +92,13 @@ BuildRequires: python-devel
 BuildRequires: u-boot-tools
 %endif
 
+%if %{with emulator}
 ExclusiveArch: %{arch_32bits} x86_64 armv7l
+%else
+ExclusiveArch:
+%endif
 
-Source0: %{name}-%{version}.tar.bz2
+Source0: emulator-kernel-%{version}.tar.bz2
 
 %description
 This package contains the Linux kernel for Tizen.
@@ -185,8 +188,8 @@ sed -i "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}-%{variant}/" Makefile
 
 # Build perf
 %if %trace_supported
-#make -s -C tools/lib/traceevent ARCH=%{kernel_arch} %{?_smp_mflags}
-#make -s -C tools/perf WERROR=0 ARCH=%{kernel_arch}
+make -s -C tools/lib/traceevent ARCH=%{kernel_arch} %{?_smp_mflags}
+make -s -C tools/perf WERROR=0 ARCH=%{kernel_arch}
 %endif