%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 Release: 0 Summary: Tizen adapter interfacesample application URL: http://slp-source.sec.samsung.net Source: %{name}-%{version}.tar.gz License: Apache-2.0 Group: Applications/OICSample 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-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 %{!?TARGET_TRANSPORT: %define TARGET_TRANSPORT IP} %{!?SECURED: %define SECURED 0} %{!?LOGGING: %define LOGGING True} %{!?ROUTING: %define ROUTING EP} %{!?ES_TARGET_ENROLLEE: %define ES_TARGET_ENROLLEE tizen} %{!?ES_ROLE: %define ES_ROLE enrollee} %{!?ES_SOFTAP_MODE: %define ES_SOFTAP_MODE MEDIATOR_SOFTAP} %{!?VERBOSE: %define VERBOSE 1} %description EasySetup Sample application %prep %setup -q %build scons VERBOSE=%{VERBOSE} 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} %install mkdir -p %{buildroot}%{_datadir}/packages mkdir -p %{buildroot}/%{_sysconfdir}/smack/accesses2.d mkdir -p %{buildroot}/usr/apps/com.oic.es.sample/bin/ mkdir -p %{buildroot}/usr/apps/com.oic.es.sample/bin/internal cp -rf %{ROOTDIR}/com.oic.es.sample.xml %{buildroot}/%{_datadir}/packages cp -rf %{ROOTDIR}/scons/enrollee_wifi %{buildroot}/usr/apps/com.oic.es.sample/bin/ %files %manifest com.oic.es.sample.manifest %defattr(-,root,root,-) /usr/apps/com.oic.es.sample/bin/enrollee_wifi /%{_datadir}/packages/com.oic.es.sample.xml