diff --git a/ledmon-doc.patch b/ledmon-doc.patch new file mode 100644 index 0000000..039527f --- /dev/null +++ b/ledmon-doc.patch @@ -0,0 +1,39 @@ +ledctl documentation improvements + +Remove invalid option from the manpage. Show short options in usage(). + +Author: Jan Synacek + +--- ledmon-0.77/doc/ledctl.pod 2013-02-12 14:45:22.000000000 +0100 ++++ ledmon-0.77/doc/ledctl.pod.new 2013-04-19 10:25:41.784551587 +0200 +@@ -258,11 +258,6 @@ + Sets a path to local log file. If this option is specified the global log + file F is not used. + +-=item B<--quiet> +- +-Turns off all messages sent to C or C out. The messages +-will be still logged to local file and syslog facility. +- + =item B<-h> or B<--help> + + Prints this text out and exits. +--- ledmon-0.77/src/ledctl.c 2013-02-12 14:45:28.000000000 +0100 ++++ ledmon-0.77/src/ledctl.c.new 2013-04-19 10:28:07.895707605 +0200 +@@ -179,13 +179,13 @@ + printf("Mandatory arguments for long options are mandatory for" \ + " short options, too.\n\n"); + printf +- ("--log=PATH\t\t\t Use local log file instead\n" \ ++ ("--log=PATH, -l PATH\t\t Use local log file instead\n" \ + "\t\t\t\t /var/log/ledctl.log global file.\n"); + printf("--config=PATH, -c PATH\t\t Use alternate configuration" \ + " file (not yet\n\t\t\t\t implemented).\n"); +- printf("--help\t\t\t\t Displays this help text.\n"); ++ printf("--help, -h\t\t\t Displays this help text.\n"); + printf +- ("--version\t\t\t Displays version and license information.\n\n"); ++ ("--version, -v\t\t\t Displays version and license information.\n\n"); + printf("Patterns:\n" + "\tCommon patterns are:\n" + "\t\tlocate, locate_off, normal, off, degraded, rebuild,\n" "" diff --git a/ledmon.spec b/ledmon.spec index 6469c42..f2c6642 100644 --- a/ledmon.spec +++ b/ledmon.spec @@ -7,6 +7,7 @@ Group: Applications/System URL: http://sourceforge.net/projects/ledmon/ Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch0: ledmon_cflags.patch +Patch1: ledmon-doc.patch BuildRequires: perl BuildRequires: sg3_utils-devel Obsoletes: ledctl = 0.1-1 @@ -23,6 +24,7 @@ use this application. %prep %setup -q %patch0 -p1 -b .cflags +%patch1 -p1 -b .doc %build # can't use smp_flags because -j4 makes the build fail @@ -40,6 +42,7 @@ make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUI %changelog * Fri Apr 19 2013 Jan Synáček - 0.77-1 - Update to 0.77 +- Documentation enhancements * Thu Feb 14 2013 Fedora Release Engineering - 0.75-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild