rpm: spec: modify rpm spec properly
authorWaLyong Cho <walyong.cho@samsung.com>
Mon, 17 Oct 2016 05:17:48 +0000 (14:17 +0900)
committerWaLyong Cho <walyong.cho@samsung.com>
Mon, 17 Oct 2016 05:17:48 +0000 (14:17 +0900)
Change-Id: I6db9c93c3d398c9d60875265d2dce6e049df59b3
Signed-off-by: WaLyong Cho <walyong.cho@samsung.com>
packaging/libsystem.spec

index 7172d32fcdd479c1b2350cbc0f9794821a1e8e93..9d7051a95edc6c1fb847f93a65c1c11abc0912c7 100644 (file)
@@ -2,8 +2,8 @@ Name:           libsystem
 Summary:        System Libraries
 Version:        3.6
 Release:        5
-License:        Apache License v2
-Group:          System/Base
+License:        Apache-2.0
+Group:          System/Libraries
 Source:         %{name}-%{version}.tar.gz
 
 BuildRequires:  autoconf
@@ -15,27 +15,30 @@ BuildRequires:  pkgconfig(gio-2.0)
 
 Requires:       /bin/cp
 
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
 %description
 System libraries.
 
 %package devel
 Summary:        Development header files for System Libraries
-License:        Apache License v2
+License:        Apache-2.0
 Requires:       pkgconfig(glib-2.0)
 
 %description devel
 Development headers and auxiliary files.
 
 %package -n libsystem-sd
-Summary:        systemd utility libraries
-License:        Apache License v2
+Summary:        Utility libraries for systemd
+License:        Apache-2.0
 
 %description -n libsystem-sd
 systemd utility libraries.
 
 %package -n libsystem-sd-devel
 Summary:        Development header files for systemd util
-License:        Apache License v2
+License:        Apache-2.0
 Requires:       pkgconfig(gio-2.0)
 Requires:       pkgconfig(dbus-1)
 Requires:       pkgconfig(libsystem)
@@ -67,6 +70,17 @@ make %{?_smp_mflags}
 # Remove local archives
 rm -f %{buildroot}%{_libdir}/*.la
 
+
+%post
+/sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post -n libsystem-sd
+/sbin/ldconfig
+
+%postun -n libsystem-sd -p /sbin/ldconfig
+
 %files
 %defattr(-,root,root,-)
 %{_libdir}/libsystem.so.*