1 Name: edge-orchestration
4 Group: System/Edge Framework
6 Summary: Edge orchestration service
9 Source0: %{name}-%{version}.tar.gz
10 Source1: %{name}.manifest
11 Source2: %{name}.service
12 Source3: lib%{name}.manifest
13 Source4: org.tizen.orchestration.service
14 Source5: org.tizen.orchestration.conf
15 #Source11: go1.12.linux-armv7.tar.gz
20 BuildRequires: pkgconfig(dlog)
21 BuildRequires: pkgconfig(glib-2.0)
22 BuildRequires: pkgconfig(gio-2.0)
23 BuildRequires: pkgconfig(gio-unix-2.0)
25 Requires: security-config
27 Requires(post): /sbin/ldconfig, /usr/bin/systemctl
28 Requires(postun): /sbin/ldconfig, /usr/bin/systemctl
30 %define upgrade_script_path /usr/share/upgrade/scripts
33 Technologies for Device/Service management.
34 Edge service deployment/monitoring and data sharing in home environment with limited available H/W resources.
36 %package -n libedge-orchestration
37 Summary: edge-orchestration library
38 Group: System/Edge Framework
39 Requires: %{name} = %{version}-%{release}
41 %description -n libedge-orchestration
42 Edge orchestration library for use of Edge-orchestration
44 %package -n libedge-orchestration-devel
45 Summary: edge-orchestration library for (devel)
46 Group: System/Edge Framework
47 Requires: libedge-orchestration = %{version}-%{release}
49 %description -n libedge-orchestration-devel
50 Edge orchestration library for use of Edge-orchestration (devel)
55 chmod g-w %_sourcedir/*
56 cp %{SOURCE1} ./%{name}.manifest
57 cp %{SOURCE2} ./%{name}.service
58 cp %{SOURCE3} ./lib%{name}.manifest
62 %if "%{go_build}" == "ON"
66 rm -f %{_builddir}/%{name}-%{version}/go1.12.linux-armv7.tar.gz
74 %if "%{go_build}" == "ON"
75 ORG_VENDOR_DIR='vendor'
76 CUR_VENDOR_DIR='vendor/src'
77 ln -s %{_builddir}/%{name}-%{version}/${ORG_VENDOR_DIR} %{_builddir}/%{name}-%{version}/${CUR_VENDOR_DIR}
79 export GOARCH=arm GOARM=7
80 export GOROOT=%{_builddir}/%{name}-%{version}/go
81 export PATH=$PATH:%{_builddir}/%{name}-%{version}/go/bin/linux_arm
82 export GOPATH=%{_builddir}/%{name}-%{version}:%{_builddir}/%{name}-%{version}/vendor
85 make build-object %{?_smp_mflags}
88 make build-dbus-server %{?_smp_mflags}
89 make build-dbus-client %{?_smp_mflags}
95 mkdir -p %{buildroot}%{upgrade_script_path}
96 cp -f scripts/500.edge-orchestration-upgrade.sh %{buildroot}%{upgrade_script_path}
99 systemctl daemon-reload
100 systemctl restart %{name}
104 %manifest %{name}.manifest
105 %license LICENSE.Apache-2.0
106 %attr(755,system_fw,system_fw)%{_bindir}/%{name}
107 %attr(644,root,root)%{_unitdir}/%{name}.service
108 %attr(644,root,root)%{_unitdir}/multi-user.target.wants/%{name}.service
109 %attr(644,root,root)%{_datadir}/dbus-1/system-services/org.tizen.orchestration.service
110 %attr(644,root,root)%{_sysconfdir}/dbus-1/system.d/org.tizen.orchestration.conf
111 %attr(755,system_fw,system_fw)%dir /var/%{name}/log
112 %attr(755,system_fw,system_fw)%dir /var/%{name}/apps
113 %attr(755,system_fw,system_fw)%dir /var/%{name}/data/db
114 %attr(755,system_fw,system_fw)%dir /var/%{name}/data/cert
115 %attr(755,system_fw,system_fw)%dir /var/%{name}/user
116 %attr(755,system_fw,system_fw)%dir /var/%{name}/device
117 %attr(755,root,root)%{_datadir}/upgrade/scripts/500.edge-orchestration-upgrade.sh
119 %files -n libedge-orchestration
120 %manifest lib%{name}.manifest
121 %license LICENSE.Apache-2.0
122 %attr(755,system_fw,system_fw)%{_libdir}/liborchestration-client.so
124 %files -n libedge-orchestration-devel
125 %attr(755,system_fw,system_fw)%{_libdir}/pkgconfig/%{name}.pc
126 %attr(755,system_fw,system_fw)%{_includedir}/%{name}/orchestration_client.h
127 # orchestration sample
128 %attr(755,system_fw,system_fw)%{_bindir}/edge_*
129 %attr(755,system_fw,system_fw)/var/%{name}/apps/native_sample/*