Skip to content

Commit 8407043

Browse files
authored
[onert/infra] Fix GGMA tizen package file declarations in spec file (#16274)
This commit moves ggma files section to proper location after install section and add directory declarations for ggma lib and include paths to ensure correct directory ownership. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
1 parent c578016 commit 8407043

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

packaging/nnfw.spec

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,6 @@ Summary: GGMA generative AI framework
9797

9898
%description ggma
9999
GGMA package for on-device generative AI framework
100-
101-
%files ggma
102-
%manifest %{name}.manifest
103-
%defattr(-,root,root,-)
104-
%ifarch arm armv7l armv7hl aarch64 x86_64 %ix86 riscv64
105-
%{_libdir}/ggma/lib*
106-
%{_includedir}/ggma/*
107-
%{_libdir}/pkgconfig/ggma.pc
108-
%endif
109100
%endif # ggma_build
110101

111102
%if %{test_build} == 1
@@ -335,6 +326,19 @@ install -m 644 %{overlay_path}/lib/libloco*.so %{buildroot}%{_libdir}/nnfw/odc
335326
%endif # arm armv7l armv7hl aarch64 x86_64 %ix86
336327
%endif # odc_build
337328

329+
%if %{ggma_build} == 1
330+
%files ggma
331+
%manifest %{name}.manifest
332+
%defattr(-,root,root,-)
333+
%ifarch arm armv7l armv7hl aarch64 x86_64 %ix86 riscv64
334+
%dir %{_libdir}/ggma
335+
%dir %{_includedir}/ggma
336+
%{_libdir}/ggma/lib*
337+
%{_includedir}/ggma/*
338+
%{_libdir}/pkgconfig/ggma.pc
339+
%endif
340+
%endif # ggma_build
341+
338342
%changelog
339343
* Thu Mar 15 2018 Chunseok Lee <chunseok.lee@samsung.com>
340344
- Initial spec file for nnfw

0 commit comments

Comments
 (0)