Add ldconfig in %post and %postun 08/66608/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 19 Apr 2016 23:46:12 +0000 (08:46 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 19 Apr 2016 23:48:38 +0000 (08:48 +0900)
Share library package should call ldconfig in %post and %postun.
https://wiki.tizen.org/wiki/Packaging/Guidelines

Change-Id: I1f296215ca3fbb7e90ad28a4b340050e63a499ce

packaging/libscl-core.spec

index 3b02946..f6674d2 100644 (file)
@@ -57,7 +57,7 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -Dwi
 %else
 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir}
 %endif
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
 
 %install
 rm -rf %{buildroot}
@@ -66,9 +66,9 @@ rm -rf %{buildroot}
 
 
 
-%post
+%post -p /sbin/ldconfig
 
-%postun
+%postun -p /sbin/ldconfig
 
 %files
 %manifest %{name}.manifest