1 %define PREFIX /usr/apps/com.oic.ri.sample
2 %define ROOTDIR %{_builddir}/%{name}-%{version}
3 %{!?VERBOSE: %define VERBOSE 1}
5 Name: com-oic-ri-sample
8 Summary: Tizen adapter interfacesample application
9 URL: http://slp-source.sec.samsung.net
10 Source: %{name}-%{version}.tar.gz
12 Group: Applications/OICSample
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(glib-2.0)
15 BuildRequires: pkgconfig(uuid)
16 BuildRequires: boost-devel
17 BuildRequires: boost-thread
18 BuildRequires: boost-system
19 BuildRequires: boost-filesystem
20 BuildRequires: pkgconfig(capi-network-wifi)
21 BuildRequires: pkgconfig(capi-network-bluetooth)
23 BuildRequires: com-oic-ri
27 OIC RIsample application
34 scons TARGET_OS=tizen -c
35 scons TARGET_OS=tizen TARGET_TRANSPORT=%{TARGET_TRANSPORT} SECURED=%{SECURED} RELEASE=%{RELEASE} ROUTING=%{ROUTING} WITH_TCP=%{WITH_TCP} WITH_PROXY=%{WITH_PROXY} WITH_MQ=%{WITH_MQ}
39 mkdir -p %{buildroot}%{_datadir}/packages
40 mkdir -p %{buildroot}/%{_sysconfdir}/smack/accesses2.d
41 mkdir -p %{buildroot}/usr/apps/com.oic.ri.sample/bin/
42 mkdir -p %{buildroot}/usr/apps/com.oic.ri.sample/bin/internal
44 cp -rf %{ROOTDIR}/com.oic.ri.sample.xml %{buildroot}/%{_datadir}/packages
45 cp -rf %{ROOTDIR}/scons/occlient %{buildroot}/usr/apps/com.oic.ri.sample/bin/
46 cp -rf %{ROOTDIR}/scons/ocserver %{buildroot}/usr/apps/com.oic.ri.sample/bin/
47 cp -rf %{ROOTDIR}/scons/ocrouting %{buildroot}/usr/apps/com.oic.ri.sample/bin/
50 %manifest com.oic.ri.sample.manifest
51 %defattr(-,root,root,-)
52 /usr/apps/com.oic.ri.sample/bin/occlient
53 /usr/apps/com.oic.ri.sample/bin/ocserver
54 /usr/apps/com.oic.ri.sample/bin/ocrouting
55 /%{_datadir}/packages/com.oic.ri.sample.xml