From: Philippe Coval Date: Thu, 28 Jan 2016 17:42:14 +0000 (+0100) Subject: packaging: align to yocto for csdk as well X-Git-Tag: submit/contrib_common/20160302.162290^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c8ce7ace45891c7b73f3ffc479074ac27c48e82;p=contrib%2Fiotivity.git packaging: align to yocto for csdk as well Change-Id: I906dcdeb38e8e807320820d787578727c4fee8d1 Signed-off-by: Philippe Coval --- 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/