diff options
authorWaLyong Cho <>2016-11-07 01:17:09 (GMT)
committerWaLyong Cho <>2016-11-07 01:17:41 (GMT)
commit57c2723795b24e1e184b530f9764d7963c579f96 (patch)
parent97384cb4682d2d7029543d6fdf2c98c25abf8ae9 (diff)
spec: resolve rpmlint warnings and use rpmmacros
Change-Id: I7a58deac1a462be7181fff941142585becd1a8a3 Signed-off-by: WaLyong Cho <>
1 files changed, 18 insertions, 18 deletions
diff --git a/packaging/libsystem.spec b/packaging/libsystem.spec
index 109f442..c4308f9 100644
--- a/packaging/libsystem.spec
+++ b/packaging/libsystem.spec
@@ -1,7 +1,7 @@
Name: libsystem
Summary: System Libraries
Version: 4.0
-Release: 1
+Release: 1%{?release_flags}
License: Apache-2.0
Group: System/Libraries
Source: %{name}-%{version}.tar.gz
@@ -20,29 +20,32 @@ Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
-System libraries.
+System utility libraries.
%package devel
-Summary: Development header files for System Libraries
+Summary: Header files for System Libraries
License: Apache-2.0
+Requires: %{name} = %{version}
Requires: pkgconfig(glib-2.0)
%description devel
-Development headers and auxiliary files.
+Development header files for System Libraries.
%package -n libsystem-sd
Summary: Utility libraries for systemd
License: Apache-2.0
+Requires: libsystem = %{version}
%description -n libsystem-sd
-systemd utility libraries.
+A helper utility libraries for systemd.
%package -n libsystem-sd-devel
-Summary: Development header files for systemd util
+Summary: Header files for systemd util
License: Apache-2.0
+Requires: libsystem-sd = %{version}
+Requires: pkgconfig(libsystem) = %{version}
Requires: pkgconfig(gio-2.0)
Requires: pkgconfig(dbus-1)
-Requires: pkgconfig(libsystem)
%description -n libsystem-sd-devel
Development header files for systemd util.
@@ -60,20 +63,14 @@ export CFLAGS=$(echo $CFLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g')
export CFLAGS="-O0 -g $CFLAGS"
-%configure \
- --disable-static \
- --prefix=%{_prefix} \
make %{?_smp_mflags}
-# Remove local archives
-rm -f %{buildroot}%{_libdir}/*.la
@@ -82,15 +79,17 @@ rm -f %{buildroot}%{_libdir}/*.la
%post -n libsystem-sd
-%postun -n libsystem-sd -p /sbin/ldconfig
+%postun -n libsystem-sd
%manifest %{name}.manifest
%files devel
+%manifest %{name}.manifest
@@ -100,11 +99,12 @@ rm -f %{buildroot}%{_libdir}/*.la
%files -n libsystem-sd
%manifest %{name}.manifest
%files -n libsystem-sd-devel
+%manifest %{name}.manifest