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 Source11: go1.12.linux-armv7.tar.gz
15 BuildRequires: pkgconfig(glib-2.0)
16 BuildRequires: pkgconfig(gio-2.0)
18 Requires(post): /sbin/ldconfig, /usr/bin/systemctl
19 Requires(postun): /sbin/ldconfig, /usr/bin/systemctl
22 Technologies for Device/Service management.
23 Edge service deployment/monitoring and data sharing in home environment with limited available H/W resources.
25 %package -n libedge-orchestration
26 Summary: edge-orchestration library
27 Group: System/Edge Framework
28 Requires: %{name} = %{version}-%{release}
30 %description -n libedge-orchestration
31 Edge orchestration library for use of Edge-orchestration
33 %package -n libedge-orchestration-devel
34 Summary: edge-orchestration library for (devel)
35 Group: System/Edge Framework
36 Requires: %{name} = %{version}-%{release}
38 %description -n libedge-orchestration-devel
39 Edge orchestration library for use of Edge-orchestration (devel)
44 chmod g-w %_sourcedir/*
45 cp %{SOURCE1} ./%{name}.manifest
46 cp %{SOURCE2} ./%{name}.services
47 cp %{SOURCE3} ./lib%{name}.manifest
51 rm -f %{_builddir}/%{name}-%{version}/go1.12.linux-armv7.tar.gz
55 ORG_VENDOR_DIR='vendor'
56 CUR_VENDOR_DIR='vendor/src'
57 ln -s %{_builddir}/%{name}-%{version}/${ORG_VENDOR_DIR} %{_builddir}/%{name}-%{version}/${CUR_VENDOR_DIR}
59 export GOARCH=arm GOARM=7
60 export GOROOT=%{_builddir}/%{name}-%{version}/go
61 export PATH=$PATH:%{_builddir}/%{name}-%{version}/go/bin/linux_arm
62 export GOPATH=%{_builddir}/%{name}-%{version}:%{_builddir}/%{name}-%{version}/vendor
65 make build-object %{?_smp_mflags}
69 install -d %{buildroot}%{_bindir}
70 install -p -m 755 ./bin/%{name} %{buildroot}%{_bindir}/%{name}
71 mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
72 install -m 0644 %{SOURCE2} %{buildroot}/usr/lib/systemd/system/%{name}.service
73 ln -s ../%{name}.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/
74 mkdir -p %{buildroot}%{_sysconfdir}/%{name}
77 %manifest %{name}.manifest
78 %license LICENSE.Apache-2.0
79 %defattr(-,root,root,-)
81 %{_unitdir}/%{name}.service
82 %{_unitdir}/multi-user.target.wants/%{name}.service
84 %dir %{_sysconfdir}/%{name}