From 83dabbae7464fd830c0946a7d671b18fd0b2b5b03e89923cb1a5237f7dbdb2fa Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Fri, 20 Jan 2012 01:07:06 +0000 Subject: [PATCH] - Fix some rpmlint warnings OBS-URL: https://build.opensuse.org/package/show/Virtualization/sanlock?expand=0&rev=5 --- sanlock.changes | 5 +++++ sanlock.init | 4 ++-- sanlock.spec | 12 ++++++++---- wdmd.init | 6 +++--- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/sanlock.changes b/sanlock.changes index 27f625d..2082db1 100644 --- a/sanlock.changes +++ b/sanlock.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 19 18:04:13 MST 2012 - jfehlig@suse.com + +- Fix some rpmlint warnings + ------------------------------------------------------------------- Thu Jan 19 17:05:58 MST 2012 - jfehlig@suse.com diff --git a/sanlock.init b/sanlock.init index 85cee76..1f99db5 100644 --- a/sanlock.init +++ b/sanlock.init @@ -6,8 +6,8 @@ # Required-Stop: $syslog # Should-Start: # Should-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 # Short-Description: starts and stops sanlock daemon # Description: starts and stops sanlock daemon ### END INIT INFO diff --git a/sanlock.spec b/sanlock.spec index 89e6652..5fdfac6 100644 --- a/sanlock.spec +++ b/sanlock.spec @@ -26,7 +26,7 @@ Version: 1.9 Release: 1%{?dist} Summary: A shared disk lock manager -Group: System Environment/Base +Group: System/Base License: GPLv2, GPLv2+, LGPLv2+ URL: https://fedorahosted.org/sanlock/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -77,8 +77,10 @@ make -C python \ install LIBDIR=%{_libdir} \ DESTDIR=$RPM_BUILD_ROOT PREFIX=%_prefix install -D -m 755 %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/sanlock +ln -s /etc/init.d/sanlock $RPM_BUILD_ROOT%{_sbindir}/rcsanlock install -D -m 755 %SOURCE1 $RPM_BUILD_ROOT/%{_localstatedir}/adm/fillup-templates/sysconfig.sanlock install -D -m 755 %SOURCE2 $RPM_BUILD_ROOT/etc/init.d/wdmd +ln -s /etc/init.d/wdmd $RPM_BUILD_ROOT%{_sbindir}/rcwdmd %if %{with_systemd} install -D -m 755 init.d/sanlock.service $RPM_BUILD_ROOT/%{_unitdir}/sanlock.service install -D -m 755 init.d/wdmd.service $RPM_BUILD_ROOT/%{_unitdir}/wdmd.service @@ -130,8 +132,10 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) /etc/init.d/sanlock +%{_sbindir}/rcsanlock %{_localstatedir}/adm/fillup-templates/sysconfig.sanlock /etc/init.d/wdmd +%{_sbindir}/rcwdmd %if %{with_systemd} %{_unitdir}/sanlock.service %{_unitdir}/wdmd.service @@ -144,7 +148,7 @@ rm -rf $RPM_BUILD_ROOT %package -n libsanlock1 Provides: sanlock-lib Summary: A shared disk lock manager library -Group: System Environment/Libraries +Group: Development/Libraries/C and C++ %description -n libsanlock1 The %{name}-lib package contains the runtime libraries for sanlock, @@ -165,7 +169,7 @@ access to the shared disks. %package -n python-%name Provides: sanlock-python Summary: Python bindings for the sanlock library -Group: Development/Libraries +Group: Development/Libraries/Python Requires: %{name}-lib = %{version}-%{release} %description -n python-%name @@ -180,7 +184,7 @@ supplied by the sanlock library. %package devel Summary: Development files for %{name} -Group: Development/Libraries +Group: Development/Libraries/C and C++ Requires: %{name}-lib = %{version}-%{release} %description devel diff --git a/wdmd.init b/wdmd.init index 26fc3e2..ce79cd2 100644 --- a/wdmd.init +++ b/wdmd.init @@ -2,12 +2,12 @@ ### BEGIN INIT INFO # Provides: wdmd -# Required-Start: $time $syslog +# Required-Start: $time $syslog $remote_fs # Required-Stop: $syslog # Should-Start: # Should-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 # Short-Description: starts and stops wdmd daemon # Description: starts and stops wdmd daemon ### END INIT INFO