From 0c8ce7ace45891c7b73f3ffc479074ac27c48e82 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Thu, 28 Jan 2016 18:42:14 +0100 Subject: [PATCH] packaging: align to yocto for csdk as well Change-Id: I906dcdeb38e8e807320820d787578727c4fee8d1 Signed-off-by: Philippe Coval --- packaging/iotivity.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packaging/iotivity.spec b/packaging/iotivity.spec index 67dd725..4938ac9 100644 --- a/packaging/iotivity.spec +++ b/packaging/iotivity.spec @@ -121,12 +121,21 @@ find . -iname "lib*.a" -exec install "{}" %{buildroot}%{_libdir}/ \; find . -iname "lib*.so" -exec install "{}" %{buildroot}%{_libdir}/ \; find resource service -iname "include" -o -iname 'inc' -a -type d\ - | grep -v example | while read include ; do \ + | grep -v example | grep -v csdk | while read include ; do \ dirname=$(dirname -- "$include") ; \ install -d %{buildroot}%{_includedir}/%{name}/${dirname} ; \ install $include/*.* %{buildroot}%{_includedir}/%{name}/${dirname}/ ; \ done +cd resource/csdk +find . -iname "include" -o -iname 'inc' -a -type d\ + | while read include ; do \ + dirname=$(dirname -- "$include") ; \ + install -d %{buildroot}%{_includedir}/%{name}/resource/${dirname} ; \ + install $include/*.* %{buildroot}%{_includedir}/%{name}/resource/${dirname}/ ; \ +done +cd - + install -d %{buildroot}%{_includedir}/%{name}/resource/oc_logger/targets/ install ./resource/oc_logger/include/targets/*.* %{buildroot}%{_includedir}/%{name}/resource/oc_logger/targets/ -- 2.7.4