From: Alexander Aksenov Date: Wed, 2 Jul 2014 07:39:33 +0000 (+0400) Subject: [FIX] Spec: spec for private repo X-Git-Tag: Tizen_SDK_2.3~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0888382c4b3d0b392bc27229ad1015994fd2020b;p=kernel%2Fswap-modules.git [FIX] Spec: spec for private repo Change-Id: Ie61cd9f3658465e9a89f9383bb2ce046817a5830 Signed-off-by: Alexander Aksenov --- diff --git a/packaging/swap-modules.spec b/packaging/swap-modules.spec index 40985c7..e52e76c 100755 --- a/packaging/swap-modules.spec +++ b/packaging/swap-modules.spec @@ -7,16 +7,9 @@ Group: System Environment/Kernel Vendor: Samsung Source: swap-modules-3.0.tar.gz -%ifarch i586 -%define target_arm 0 -%endif -%ifarch armv7l -%define target_arm 1 -%endif - BuildRequires: perl BuildRequires: python -%if %{target_arm} +%ifarch %{arm} BuildRequires: linux-kernel-devel %else BuildRequires: emulator-kernel-devel @@ -30,12 +23,10 @@ Kernel modules for SWAP %build -%ifarch i586 -./build.sh /usr/src/linux-kernel-build-3.12.18-i386_tizen_emul_defconfig.1 i386 -%endif - -%ifarch armv7l +%ifarch %{arm} ./build.sh /usr/src/linux-kernel-build-3.0.15-tizen_defconfig.1 arm +%else +./build.sh /usr/src/linux-kernel-build-3.12.18-i386_tizen_emul_defconfig.1 i386 %endif %install