summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorKiwoong Ha <kw1981.ha@samsung.com>2022-10-26 14:26:37 +0900
committerKiwoong Ha <kw1981.ha@samsung.com>2022-10-26 14:27:25 +0900
commit1bd215050758ad9ef9cff661596130e86ae3cc21 (patch)
tree09cc4766fea12d787e7800130a5cfe461fb466d0 /packaging
parentf2f8ebbcb36854870aee592642062b8929c8ed50 (diff)
downloaddocker-config-accepted/tizen_unified.tar.gz
docker-config-accepted/tizen_unified.tar.bz2
docker-config-accepted/tizen_unified.zip
Change-Id: I2b2127fbbc25a07aa377eba5179c480cd4bbe0de Signed-off-by: Kiwoong Ha <kw1981.ha@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/docker-config.spec45
1 files changed, 45 insertions, 0 deletions
diff --git a/packaging/docker-config.spec b/packaging/docker-config.spec
new file mode 100644
index 0000000..95068b2
--- /dev/null
+++ b/packaging/docker-config.spec
@@ -0,0 +1,45 @@
+Name: hal-backend-docker-config
+Summary: Hal backend docker configuration package
+Version: 0.1.0
+Release: 0
+Group: Tools/Docker
+License: Apache-2.0
+Source0: %{name}-%{version}.tar.gz
+
+%description
+Hal backend docker configuration package including json files.
+
+%package rpi4
+Summary: Hal backend docker configuration package for rpi4 target
+Group: Tools/Docker
+License: Apache-2.0
+
+%description rpi4
+Hal backend docker configuration package including json files for rpi4 target.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_hal_datadir}
+
+mkdir -p %{buildroot}%{_hal_licensedir}/%{name}-rpi4
+cp LICENSE %{buildroot}%{_hal_licensedir}/%{name}-rpi4
+mkdir -p %{buildroot}%{_hal_datadir}/%{name}-rpi4
+cp -arf %{name}-rpi4/* %{buildroot}%{_hal_datadir}/%{name}-rpi4
+
+%post rpi4
+cp -arf %{_hal_datadir}/%{name}-rpi4/* /
+rm -rf %{_hal_datadir}/%{name}-rpi4
+
+%preun rpi4
+rm -rf %{_hal_sysconfdir}/docker
+
+%postun
+
+%files rpi4
+%manifest %{name}-rpi4.manifest
+%{_hal_licensedir}/%{name}-rpi4/*
+%defattr(-,root,root,-)
+%{_hal_datadir}/%{name}-rpi4%{_hal_sysconfdir}/docker/*