rpms/cowsay/devel cowsay-3.03-help.patch, NONE, 1.1 cowsay.spec, 1.1, 1.2

Lubomir Kundrak (lkundrak) fedora-extras-commits at redhat.com
Mon Sep 17 11:40:17 UTC 2007


Author: lkundrak

Update of /cvs/extras/rpms/cowsay/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29965

Modified Files:
	cowsay.spec 
Added Files:
	cowsay-3.03-help.patch 
Log Message:
Bugzilla Bug 293061: Cowsay doesn't let Getopt::Std support --help correctly.


cowsay-3.03-help.patch:

--- NEW FILE cowsay-3.03-help.patch ---
diff -rup cowsay-3.03.orig/cowsay cowsay-3.03/cowsay
--- cowsay-3.03.orig/cowsay	2007-09-17 13:27:32.000000000 +0200
+++ cowsay-3.03/cowsay	2007-09-17 13:28:04.000000000 +0200
@@ -185,3 +185,7 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey
           [-l] [-n] [-T tongue] [-W wrapcolumn] [message]
 EOF
 }
+
+sub main::HELP_MESSAGE {
+	display_usage;
+}


Index: cowsay.spec
===================================================================
RCS file: /cvs/extras/rpms/cowsay/devel/cowsay.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- cowsay.spec	2 Jan 2007 19:05:28 -0000	1.1
+++ cowsay.spec	17 Sep 2007 11:39:43 -0000	1.2
@@ -1,6 +1,6 @@
 Name:           cowsay
 Version:        3.03
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Configurable speaking/thinking cow
 Group:          Amusements/Games
 License:        Artistic or GPL
@@ -8,6 +8,7 @@
 Source0:        http://www.nog.net/~tony/warez/%{name}-%{version}.tar.gz
 Source1:        cowsay.bashcomp
 Source2:        animalsay
+Patch0:         cowsay-3.03-help.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
@@ -21,6 +22,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .help
 %{__sed} -e 's#%PREFIX%/share/cows#%{_datadir}/%{name}#' \
          -e 's#%BANGPERL%#!%{__perl}#' -i %{name}
 %{__sed} -e 's#%PREFIX%/share/cows#%{_datadir}/%{name}#' \
@@ -57,6 +59,9 @@
 %{_sysconfdir}/bash_completion.d
 
 %changelog
+* Mon Sep 17 2007 Lubomir Kundrak <lkundrak at redhat.com> - 3.03-3
+- Make --help be a bit more sane (#293061)
+
 * Tue Jan 02 2007 Michał Bentkowski <mr.ecik at gmail.com> - 3.03-2
 - Use cp -p to keep timestamps
 - Fix paths in manpage




More information about the fedora-extras-commits mailing list