%{!?VERBOSE: %define VERBOSE 1}
Name: com-oic-es-sample
-Version: 1.1.1
+Version: 1.2.1
Release: 0
Summary: Tizen adapter interfacesample application
-URL: http://slp-source.sec.samsung.net
-Source: %{name}-%{version}.tar.gz
+Group: Network & Connectivity / IoT Connectivity
License: Apache-2.0
-Group: Applications/OICSample
+URL: https://www.iotivity.org/
+Source0: http://mirrors.kernel.org/%{name}/%{version}/%{name}-%{version}.tar.gz
+
+%define JOB "-j4"
+%if 0%{?speedpython}
+%define JOB %{?_smp_mflags}
+%endif
+%if 0%{?speedpython:1} && 0%{?en_speedpython:1}
+%en_speedpython
+%endif
+
+# Default values to be eventually overiden BEFORE or as gbs params:
+%{!?ES_TARGET_ENROLLEE: %define ES_TARGET_ENROLLEE tizen}
+%{!?LOGGING: %define LOGGING 1}
+%{!?RELEASE: %define RELEASE 1}
+%{!?ROUTING: %define ROUTING EP}
+%{!?SECURED: %define SECURED 0}
+%{!?TARGET_OS: %define TARGET_OS tizen}
+%{!?TARGET_TRANSPORT: %define TARGET_TRANSPORT IP}
+%{!?VERBOSE: %define VERBOSE 1}
+
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: boost-thread
BuildRequires: boost-system
BuildRequires: boost-filesystem
-BuildRequires: pkgconfig(capi-network-wifi)
+BuildRequires: pkgconfig(capi-network-connection)
+BuildRequires: pkgconfig(capi-network-wifi-manager)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: scons
BuildRequires: iotivity
%define RELEASE True
%endif
-%{!?TARGET_TRANSPORT: %define TARGET_TRANSPORT IP}
-%{!?SECURED: %define SECURED 1}
-%{!?LOGGING: %define LOGGING True}
-%{!?ROUTING: %define ROUTING EP}
-%{!?ES_TARGET_ENROLLEE: %define ES_TARGET_ENROLLEE tizen}
-%{!?VERBOSE: %define VERBOSE 1}
-
%description
EasySetup Sample application
%setup -q
%build
-
-scons VERBOSE=%{VERBOSE} TARGET_OS=tizen LOGGING=True TARGET_TRANSPORT=%{TARGET_TRANSPORT} SECURED=%{SECURED} RELEASE=%{RELEASE} ROUTING=%{ROUTING} ES_TARGET_ENROLLEE=%{ES_TARGET_ENROLLEE}
+scons %{JOB} --prefix=%{_prefix} \
+ ES_TARGET_ENROLLEE=%{ES_TARGET_ENROLLEE} \
+ LOGGING=%{LOGGING} \
+ RELEASE=%{RELEASE} \
+ ROUTING=%{ROUTING} \
+ SECURED=%{SECURED} \
+ TARGET_OS=%{TARGET_OS} \
+ TARGET_TRANSPORT=%{TARGET_TRANSPORT} \
+ VERBOSE=%{VERBOSE} \
+ #eol
%install