packaging: align to yocto for csdk as well 61/58261/1 contrib submit/contrib_common/20160302.162290 submit/contrib_common/20160302.172190 submit/contrib_common/20160302.172191 submit/contrib_common/20160303.113890
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 28 Jan 2016 17:42:14 +0000 (18:42 +0100)
committerPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 28 Jan 2016 17:42:14 +0000 (18:42 +0100)
Change-Id: I906dcdeb38e8e807320820d787578727c4fee8d1
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
packaging/iotivity.spec

index 67dd725..4938ac9 100644 (file)
@@ -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/