Added missing shared libraries to package.
authorOssama Othman <ossama.othman@intel.com>
Thu, 15 Aug 2013 22:36:52 +0000 (15:36 -0700)
committerOssama Othman <ossama.othman@intel.com>
Wed, 5 Mar 2014 21:05:24 +0000 (13:05 -0800)
Change-Id: I6145a7d44cf4777eaa6e1d8c0e1e1c42f2275041
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
packaging/smartdevicelink.spec

index dd21ff3..4772b6c 100644 (file)
@@ -54,15 +54,33 @@ cd SDL_Core
 make %{?_smp_mflags}
 
 %install
-# Don't run "make install".  We only care about the core SDL binary,
-# and HMI related files.
-mkdir -p %{buildroot}%{_bindir}
+# Don't run "make install".  We only care about the core SDL related
+# binaries, and HMI related files.
+mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_libdir}
 mkdir -p %{buildroot}%{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}
 install -m 0755 SDL_Core/src/appMain/smartDeviceLinkCore %{buildroot}%{_bindir}
+
+install -m 0755 SDL_Core/src/components/TransportManager/libTransportManager.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/components/AppMgr/libAppMgr.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/components/ConnectionHandler/libconnectionHandler.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/components/JSONHandler/libJSONHandler.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/components/ProtocolHandler/libProtocolHandler.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/components/Utils/libUtils.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/thirdPartyLibs/encryption/libencryption.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/thirdPartyLibs/logger/log4cplus-1.1.0/src/liblog4cplus.so.1.1.0 %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/thirdPartyLibs/MessageBroker/libMessageBrokerClient.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/thirdPartyLibs/MessageBroker/libMessageBrokerServer.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/thirdPartyLibs/MessageBroker/libMessageBroker.so %{buildroot}%{_libdir}
+install -m 0755 SDL_Core/src/thirdPartyLibs/jsoncpp/libjsoncpp.so %{buildroot}%{_libdir}
+
 install -m 0644 SDL_Core/src/appMain/log4cplus.properties %{buildroot}%{_sysconfdir}/%{name}
 install -m 0644 SDL_Core/src/appMain/audio.8bit.wav %{buildroot}%{_datadir}/%{name}
 cp -R SDL_Core/src/components/HMI %{buildroot}%{_datadir}/%{name}
 
+pushd %{buildroot}%{_libdir}
+ln -s liblog4cplus.so.1.1.0 liblog4cplus.so.0
+popd
+
 %fdupes -s %{buildroot}%{_datadir}/%{name}
 
 # Create the 'hmi_link' file with the location of the sample HMI.
@@ -70,15 +88,18 @@ echo %{_datadir}/%{name}/HMI/index.html > %{buildroot}%{_sysconfdir}/%{name}/hmi
 
 %clean
 
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
 %files
 %manifest %{name}.manifest
 %license LICENSE
 %{_bindir}/smartDeviceLinkCore
+%{_libdir}/*.so*
 %config %{_sysconfdir}/%{name}/log4cplus.properties
 %{_datadir}/%{name}/audio.8bit.wav
 
 %files sample-hmi
 %config %{_sysconfdir}/%{name}/hmi_link
 %{_datadir}/%{name}/HMI/*
-
-#%%files doc