summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2016-11-07 01:17:09 (GMT)
committerWaLyong Cho <walyong.cho@samsung.com>2016-11-07 01:17:41 (GMT)
commit57c2723795b24e1e184b530f9764d7963c579f96 (patch)
tree78b31a52340434815521fb8a5aa12a90d688a5e2
parent97384cb4682d2d7029543d6fdf2c98c25abf8ae9 (diff)
downloadlibsystem-57c2723795b24e1e184b530f9764d7963c579f96.zip
libsystem-57c2723795b24e1e184b530f9764d7963c579f96.tar.gz
libsystem-57c2723795b24e1e184b530f9764d7963c579f96.tar.bz2
spec: resolve rpmlint warnings and use rpmmacros
Change-Id: I7a58deac1a462be7181fff941142585becd1a8a3 Signed-off-by: WaLyong Cho <walyong.cho@samsung.com>
-rw-r--r--packaging/libsystem.spec36
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
%description
-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"
%endif
-./autogen.sh
-%configure \
- --disable-static \
- --prefix=%{_prefix} \
+%autogen
+%reconfigure
make %{?_smp_mflags}
%install
%make_install
-# Remove local archives
-rm -f %{buildroot}%{_libdir}/*.la
-
-
%post
/sbin/ldconfig
@@ -82,15 +79,17 @@ rm -f %{buildroot}%{_libdir}/*.la
%post -n libsystem-sd
/sbin/ldconfig
-%postun -n libsystem-sd -p /sbin/ldconfig
+%postun -n libsystem-sd
+/sbin/ldconfig
%files
%defattr(-,root,root,-)
-%{_libdir}/libsystem.so.*
%manifest %{name}.manifest
+%{_libdir}/libsystem.so.*
%files devel
%defattr(-,root,root,-)
+%manifest %{name}.manifest
%{_libdir}/libsystem.so
%{_includedir}/libsystem/config-parser.h
%{_includedir}/libsystem/dbus-util.h
@@ -100,11 +99,12 @@ rm -f %{buildroot}%{_libdir}/*.la
%files -n libsystem-sd
%defattr(-,root,root,-)
-%{_libdir}/libsystem-sd.so.*
%manifest %{name}.manifest
+%{_libdir}/libsystem-sd.so.*
%files -n libsystem-sd-devel
%defattr(-,root,root,-)
+%manifest %{name}.manifest
%{_libdir}/libsystem-sd.so
%{_includedir}/libsystem-sd/systemd.h
%{_libdir}/pkgconfig/libsystem-sd.pc