[lm_sensors] #856120 - sensors - Inconsistency between man page and help

Jaromír Cápík jcapik at fedoraproject.org
Wed Sep 26 20:54:14 UTC 2012


commit 2a0ab68253e93efd56a0ba828101a0d568680751
Author: Jaromir Capik <jcapik at redhat.com>
Date:   Wed Sep 26 22:53:53 2012 +0200

    #856120 - sensors - Inconsistency between man page and help

 0002-sensors-man-missing-switches.patch |   33 +++++++++++++++++++++++++++++++
 lm_sensors.spec                         |    8 +++++-
 2 files changed, 39 insertions(+), 2 deletions(-)
---
diff --git a/0002-sensors-man-missing-switches.patch b/0002-sensors-man-missing-switches.patch
new file mode 100644
index 0000000..7c2c381
--- /dev/null
+++ b/0002-sensors-man-missing-switches.patch
@@ -0,0 +1,33 @@
+diff -Naur lm_sensors-3.3.2.orig/prog/sensors/sensors.1 lm_sensors-3.3.2/prog/sensors/sensors.1
+--- lm_sensors-3.3.2.orig/prog/sensors/sensors.1	2007-10-25 11:59:05.000000000 +0200
++++ lm_sensors-3.3.2/prog/sensors/sensors.1	2012-09-26 22:46:03.000000000 +0200
+@@ -49,23 +49,23 @@
+ is used to generate bus statements suitable for the configuration file.
+ 
+ .SH OPTIONS
+-.IP "-c config-file"
++.IP "-c, --config-file config-file"
+ Specify a configuration file. If no file is specified, the libsensors
+ default configuration file is used. Use `-c /dev/null' to temporarily
+ disable this default configuration file.
+-.IP -h
++.IP "-h, --help"
+ Print a help text and exit.
+-.IP -s
++.IP "-s, --set"
+ Evaluate all `set' statements in the configuration file and exit. You must
+ be `root' to do this. If this parameter is not specified, no `set' statement
+ is evaluated.
+-.IP -A
++.IP "-A, --no-adapter"
+ Do not show the adapter for each chip.
+ .IP -u
+ Raw output. This mode is only meant for debugging.
+-.IP -v
++.IP "-v, --version"
+ Print the program version and exit.
+-.IP -f
++.IP "-f, --fahrenheit"
+ Print the temperatures in degrees Fahrenheit instead of Celsius.
+ .IP --bus-list
+ Generate bus statements suitable for using in sensors.conf. Such bus statements
diff --git a/lm_sensors.spec b/lm_sensors.spec
index a6ff54c..ff02d02 100644
--- a/lm_sensors.spec
+++ b/lm_sensors.spec
@@ -1,6 +1,6 @@
 Name: lm_sensors
 Version: 3.3.2
-Release: 4%{?dist}
+Release: 5%{?dist}
 URL: http://www.lm-sensors.org/
 Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2
 Source1: lm_sensors.sysconfig
@@ -17,7 +17,7 @@ Requires(post): systemd-units
 BuildRequires: kernel-headers >= 2.2.16, bison, libsysfs-devel, flex, gawk
 BuildRequires: rrdtool-devel
 Patch0: 0001-PCI-bus-is-always-required-even-if-it-might-be-missi.patch
-
+Patch1: 0002-sensors-man-missing-switches.patch
 
 %description
 The lm_sensors package includes a collection of modules for general SMBus
@@ -55,6 +55,7 @@ database, and warns of sensor alarms.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 mv prog/init/README prog/init/README.initscripts
 chmod -x prog/init/fancontrol.init
@@ -157,6 +158,9 @@ fi
 
 
 %changelog
+* Wed Sep 26 2012 Jaromir Capik <jcapik at redhat.com> - 3.3.2-5
+- #856120 - sensors - Inconsistency between man page and help
+
 * Mon Aug 27 2012 Jaromir Capik <jcapik at redhat.com> - 3.3.2-4
 - Migration to new systemd scriptlet macros
 


More information about the scm-commits mailing list