272db4588d02744254de65f445f35733c6c6cc5f
[platform/upstream/iotivity.git] / service / easy-setup / sampleapp / enrollee / tizen-sdb / EnrolleeSample / packaging / com.oic.es.sample.spec
1 %define PREFIX /usr/apps/com.oic.es.sample
2 %define ROOTDIR  %{_builddir}/%{name}-%{version}
3
4 Name: com-oic-es-sample
5 Version:    1.1.1
6 Release:    0
7 Summary: Tizen adapter interfacesample application
8 URL: http://slp-source.sec.samsung.net
9 Source: %{name}-%{version}.tar.gz
10 License: Apache-2.0
11 Group: Applications/OICSample
12 BuildRequires: pkgconfig(dlog)
13 BuildRequires: pkgconfig(glib-2.0)
14 BuildRequires: boost-devel
15 BuildRequires: boost-thread
16 BuildRequires: boost-system
17 BuildRequires: boost-filesystem
18 BuildRequires: pkgconfig(capi-network-wifi)
19 BuildRequires: pkgconfig(capi-network-bluetooth)
20 BuildRequires: scons
21 BuildRequires: iotivity
22 BuildRequires: iotivity-devel
23 BuildRequires: iotivity-service
24
25
26 %description
27 EasySetup Sample application
28
29 %prep
30 %setup -q
31
32 %build
33
34 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}
35
36 %install
37
38 mkdir -p %{buildroot}%{_datadir}/packages
39 mkdir -p %{buildroot}/%{_sysconfdir}/smack/accesses2.d
40 mkdir -p %{buildroot}/usr/apps/com.oic.es.sample/bin/
41 mkdir -p %{buildroot}/usr/apps/com.oic.es.sample/bin/internal
42
43 cp -rf %{ROOTDIR}/com.oic.es.sample.xml %{buildroot}/%{_datadir}/packages
44 cp -rf %{ROOTDIR}/scons/enrollee_wifi %{buildroot}/usr/apps/com.oic.es.sample/bin/
45
46 %files
47 %manifest com.oic.es.sample.manifest
48 %defattr(-,root,root,-)
49 /usr/apps/com.oic.es.sample/bin/enrollee_wifi
50 /%{_datadir}/packages/com.oic.es.sample.xml
51
52