packaging: changed asan macro check for "bad %if condition" 72/171872/1 accepted/tizen_5.0_base accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix tizen_5.0_base tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv accepted/tizen/5.0/base/20181101.090920 accepted/tizen/5.5/base/20191030.083630 accepted/tizen/5.5/base/mobile/hotfix/20201023.085343 accepted/tizen/5.5/base/wearable/hotfix/20201023.081609 accepted/tizen/base/20180309.233447 submit/tizen_5.0_base/20181101.000001 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171501 submit/tizen_5.5_base_wearable_hotfix/20201023.155601 submit/tizen_base/20180308.020415 tizen_5.5.m2_release
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 8 Mar 2018 01:27:58 +0000 (10:27 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 8 Mar 2018 01:27:58 +0000 (10:27 +0900)
Change-Id: Iffdd7f74eee1a36efe73258aaab9d7309cfc993c
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/libelf0.spec

index 1f0ab24..decc577 100644 (file)
@@ -27,7 +27,7 @@ Conflicts:      libelf1-devel
 This package contains all necessary include files and libraries needed
 to develop applications that require these.
 
-%if %{asan}
+%{?asan:
 %package noasan-static
 Summary:       An ELF Object File Access Library (static library build without of ASan)
 Group:          Development/Libraries/C and C++
@@ -37,7 +37,7 @@ Conflicts:      libelf1-devel
 %description noasan-static
 This package contains static library built without of ASan.
 It is required for static builds in full ASan sanitized environment.
-%endif
+}
 
 %prep
 %setup -q -n libelf-%{version}
@@ -48,14 +48,14 @@ export LDFLAGS+=" -z relro"
 %configure --disable-nls
 make %{?_smp_mflags}
 
-%if %{asan}
+%{?asan:
 /usr/bin/gcc-unforce-options
 mkdir noasan
 cd noasan
 ../configure --disable-nls --disable-shared
 make %{?_smp_mflags} all
 cd ..
-%endif
+}
 
 %install
 make install instroot=%{buildroot}
@@ -83,11 +83,11 @@ rm -f %{buildroot}%{_libdir}/*.la
 %{_libdir}/pkgconfig/libelf.pc
 %{_includedir}/libelf
 
-%if %{asan}
+%{?asan:
 %files noasan-static
 %manifest %{name}.manifest
 %defattr(-,root,root)
 %{_libdir}/libelf-noasan.a
-%endif
+}
 
 %changelog