Do not install libraries with devel packages. (#7776)
author이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Thu, 26 Sep 2019 10:34:20 +0000 (19:34 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 26 Sep 2019 10:34:20 +0000 (19:34 +0900)
Do not install duplicated libraries with devel packages; it incur build errors in applications with indirect dependencies on nnfw.
For example, if A Requires B and B BuildRequires nnfw, building A indirect-BuildRequires nnfw's *.so files, which cannot be resolved by GBS or OBS because both nnfw and nnfw-devel have nnfw's *.so files.
Thus, if nnfw has all *.so files in _libdir, do not install them with devel except for representative symlinks.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/nnfw.spec

index 200a678..c5b0044 100644 (file)
@@ -131,10 +131,6 @@ rm -rf %{buildroot}%{test_install_prefix}/coverage-suite.tar.gz
 %defattr(-,root,root,-)
 %ifarch arm armv7l aarch64
 %{_includedir}/*
-%{_libdir}/*
-%exclude %{_prefix}/bin/*
-%exclude %{_prefix}/unittest/*
-%exclude %{_libdir}/debug
 %endif
 
 %files test