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

Change-Id: I5a81a4a66219ef73bfc10948b39371bb049f723a

packaging/libscl-ui.spec

index bcd05b4..b602dc1 100644 (file)
@@ -65,7 +65,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}
@@ -74,9 +74,9 @@ rm -rf %{buildroot}
 
 
 
-%post
+%post -p /sbin/ldconfig
 
-%postun
+%postun -p /sbin/ldconfig
 
 %files
 %manifest %{name}.manifest