Add an exclude condition for arm-wayland projects on public OBS. 68/95568/1
authorGihun Chang <gihun.chang@samsung.com>
Fri, 4 Nov 2016 01:32:01 +0000 (10:32 +0900)
committerGihun Chang <gihun.chang@samsung.com>
Fri, 4 Nov 2016 01:32:01 +0000 (10:32 +0900)
Change-Id: Ied8f8da527a962854add3ece0ab7630d40ad41ed

packaging/swap-modules.spec

index de9dcf0..44388b6 100755 (executable)
@@ -11,21 +11,30 @@ BuildRequires: perl
 BuildRequires: python
 Provides: swap-modules
 
+# This exclude condition is only for public OBS.
+%if "%{_repository}" == "arm-wayland" || "%{_repository}" == "arm64-wayland" || "%{_repository}" == "ia32-wayland" || "%{_repository}" == "x86_64-wayland"
+ExclusiveArch:
+%endif
+
 %if "%{_with_emulator}" == "1"
+# For all emulators.
+# The emulator kernel must provide "emulator-kernel-devel" package
+# including the kernel source code located on /usr/src/kernel-devel-tizen_emulator
 ExcludeArch: x86_64
 BuildRequires: emulator-kernel-devel
 %define build_arch i386
 %define kernel_path /usr/src/kernel-devel-tizen_emulator
 
 %else
+# For all targets.
+# The target kernel must provide "kerne-devel-tizen" package
+# including the kernel source code located on /boot/kernel/devel/tizen-devel
 ExcludeArch: aarch64
 BuildRequires: kernel-devel-tizen
 %define build_arch arm
 %define kernel_path /boot/kernel/devel/tizen-devel
-
 %endif
 
-
 %description
 Kernel modules for SWAP