Merge "tizen: SECURED can be changed from build env (enabled by default)" into tizen
authorSunggoo Kim <sung.goo.kim@samsung.com>
Wed, 2 Nov 2016 10:33:55 +0000 (03:33 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 2 Nov 2016 10:33:55 +0000 (03:33 -0700)
1  2 
packaging/iotivity.spec

index 3ea8802,b906419..674a32a
mode 100755,100644..100755
@@@ -105,18 -103,12 +106,18 @@@ cp %{SOURCE1001} ./%{name}-test.manifes
  %define RPM_ARCH "x86"
  %endif
  
 -scons -j2 --prefix=%{_prefix} \
 +%define JOB "-j4"
 +
 +%if 0%{?speedpython}
 +%define JOB %{?_smp_mflags}
 +%endif
 +
 +scons %{JOB} --prefix=%{_prefix} \
        VERBOSE=%{VERBOSE} \
        TARGET_OS=tizen TARGET_ARCH=%{RPM_ARCH} TARGET_TRANSPORT=%{TARGET_TRANSPORT} \
-       RELEASE=%{RELEASE} SECURED=1 LOGGING=%{LOGGING} ROUTING=%{ROUTING} \
+       RELEASE=%{RELEASE} SECURED=%{SECURED} LOGGING=%{LOGGING} ROUTING=%{ROUTING} \
        ES_TARGET_ENROLLEE=%{ES_TARGET_ENROLLEE} ES_ROLE=%{ES_ROLE} ES_SOFTAP_MODE=%{ES_SOFTAP_MODE} \
 -      LIB_INSTALL_DIR=%{_libdir}
 +      LIB_INSTALL_DIR=%{_libdir} WITH_TCP=true
  
  
  %install
@@@ -124,9 -116,9 +125,9 @@@ rm -rf %{buildroot
  CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
  scons install --install-sandbox=%{buildroot} --prefix=%{_prefix} \
        TARGET_OS=tizen TARGET_ARCH=%{RPM_ARCH} TARGET_TRANSPORT=%{TARGET_TRANSPORT} \
-       RELEASE=%{RELEASE} SECURED=1 LOGGING=%{LOGGING} ROUTING=%{ROUTING} \
+       RELEASE=%{RELEASE} SECURED=%{SECURED} LOGGING=%{LOGGING} ROUTING=%{ROUTING} \
        ES_TARGET_ENROLLEE=%{ES_TARGET_ENROLLEE} ES_ROLE=%{ES_ROLE} ES_SOFTAP_MODE=%{ES_SOFTAP_MODE} \
 -      LIB_INSTALL_DIR=%{_libdir}
 +      LIB_INSTALL_DIR=%{_libdir} WITH_TCP=true
  
  
  # For Example