X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Feasy-setup%2Fsampleapp%2Fenrollee%2Ftizen-sdb%2FEnrolleeSample%2Fpackaging%2Fcom.oic.es.sample.spec;h=056bb876164229838f55c793adb4226f6b5f363c;hb=refs%2Fchanges%2F19%2F214819%2F1;hp=272db4588d02744254de65f445f35733c6c6cc5f;hpb=43ddc2883a11ca19291776fa12e63ccc24ac0729;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/packaging/com.oic.es.sample.spec b/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/packaging/com.oic.es.sample.spec index 272db45..056bb87 100644 --- a/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/packaging/com.oic.es.sample.spec +++ b/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/packaging/com.oic.es.sample.spec @@ -1,27 +1,57 @@ %define PREFIX /usr/apps/com.oic.es.sample %define ROOTDIR %{_builddir}/%{name}-%{version} +%{!?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: pkgconfig(gthread-2.0) BuildRequires: boost-devel 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 BuildRequires: iotivity-devel BuildRequires: iotivity-service +## If tizen 2.x, RELEASE follows tizen_build_binary_release_type_eng. ## +## and if tizen 3.0, RELEASE follows tizen_build_devel_mode. ## +%if 0%{?tizen_build_devel_mode} == 1 || 0%{?tizen_build_binary_release_type_eng} == 1 +%define RELEASE False +%else +%define RELEASE True +%endif %description EasySetup Sample application @@ -30,8 +60,16 @@ EasySetup Sample application %setup -q %build - -scons TARGET_OS=tizen LOGGING=True TARGET_TRANSPORT=%{TARGET_TRANSPORT} SECURED=%{SECURED} RELEASE=%{RELEASE} ROUTING=%{ROUTING} ES_ROLE=%{ES_ROLE} ES_TARGET_ENROLLEE=%{ES_TARGET_ENROLLEE} ES_SOFTAP_MODE=%{ES_SOFTAP_MODE} +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