From 98c76ebcc245658f825fa93dfd872e00a5573fcd Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Fri, 5 Jan 2024 21:31:54 +0100 Subject: [PATCH] package created by autospec [release 3.03-1mamba;Wed Aug 20 2014] --- README.md | 3 + cowsay-3.03-apt_cow.patch | 17 ++++ cowsay-3.03-calvin_cow.patch | 48 +++++++++++ cowsay-3.03-cock_cow.patch | 23 +++++ cowsay-3.03-debian_utf8_width.patch | 24 ++++++ cowsay-3.03-duck_cow.patch | 14 ++++ cowsay-3.03-empty_messages.patch | 19 +++++ cowsay-3.03-fix_paths.patch | 17 ++++ cowsay-3.03-gnu_cow.patch | 34 ++++++++ cowsay-3.03-koala_typo.patch | 16 ++++ cowsay-3.03-mech-and-cow_cow.patch | 31 +++++++ cowsay-3.03-moofasa_remove_tabs.patch | 16 ++++ cowsay-3.03-openmamba_cow.patch | 16 ++++ cowsay-3.03-ponies_cow.patch | 116 ++++++++++++++++++++++++++ cowsay-3.03-snowman_cow.patch | 25 ++++++ cowsay-3.03-sodomized-sheep_cow.patch | 27 ++++++ cowsay-3.03-suse_cow.patch | 21 +++++ cowsay.spec | 91 ++++++++++++++++++++ 18 files changed, 558 insertions(+) create mode 100644 cowsay-3.03-apt_cow.patch create mode 100644 cowsay-3.03-calvin_cow.patch create mode 100644 cowsay-3.03-cock_cow.patch create mode 100644 cowsay-3.03-debian_utf8_width.patch create mode 100644 cowsay-3.03-duck_cow.patch create mode 100644 cowsay-3.03-empty_messages.patch create mode 100644 cowsay-3.03-fix_paths.patch create mode 100644 cowsay-3.03-gnu_cow.patch create mode 100644 cowsay-3.03-koala_typo.patch create mode 100644 cowsay-3.03-mech-and-cow_cow.patch create mode 100644 cowsay-3.03-moofasa_remove_tabs.patch create mode 100644 cowsay-3.03-openmamba_cow.patch create mode 100644 cowsay-3.03-ponies_cow.patch create mode 100644 cowsay-3.03-snowman_cow.patch create mode 100644 cowsay-3.03-sodomized-sheep_cow.patch create mode 100644 cowsay-3.03-suse_cow.patch create mode 100644 cowsay.spec diff --git a/README.md b/README.md index b19c222..a738e59 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # cowsay +cowsay is a configurable talking cow, written in Perl. +It operates much as the figlet program does, and it written in the same spirit of silliness. + diff --git a/cowsay-3.03-apt_cow.patch b/cowsay-3.03-apt_cow.patch new file mode 100644 index 0000000..11e306f --- /dev/null +++ b/cowsay-3.03-apt_cow.patch @@ -0,0 +1,17 @@ +Description: Add a new cow +Forwarded: no +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143810#5 +Bug-Debian: http://bugs.debian.org/143810 +Author: Steven Barker + +--- /dev/null ++++ cowsay-3.03/cows/apt.cow +@@ -0,0 +1,8 @@ ++$the_cow = <<"EOC"; ++ $thoughts (__) ++ ($eyes) ++ /------\\/ ++ / | || ++ * /\\---/\\ ++ ~~ ~~ ++EOC diff --git a/cowsay-3.03-calvin_cow.patch b/cowsay-3.03-calvin_cow.patch new file mode 100644 index 0000000..6c928fc --- /dev/null +++ b/cowsay-3.03-calvin_cow.patch @@ -0,0 +1,48 @@ +Description: Add a new cow +Forwarded: no +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404287#5 +Bug-Debian: http://bugs.debian.org/404287 +Author: Krishna Kumar +Last-Update: 2014-03-21 + +--- /dev/null ++++ cowsay-3.03/cows/calvin.cow +@@ -0,0 +1,38 @@ ++## ++## ++## ++$the_cow = <<"EOC"; ++ $thoughts ., ++ $thoughts . .TR d' ++ $thoughts k,l .R.b .t .Je ++ $thoughts .P q. a|.b .f .Z% ++ .b .h .E` # J: 2` . ++ .,.a .E ,L.M' ?:b `| ..J9!`., ++ q,.h.M` `.., ..,""` ..2"` ++ .M, J8` `: ` 3; ++ . Jk ..., `^7"90c. ++ j, ,! .7"'`j,.| .n. ... ++ j, 7' .r` 4: L `... ++ ..,m. J` ..,|.. J` 7TWi ++ ..JJ,.: % $eyes ,. ...., ++ .,E 3 7`g.M: P 41 ++ JT7"' O. .J,; `` V"7N. ++ G. ""Q+ .Zu.,!` Z` ++ .9.. . J&..J! . ,: ++ 7"9a JM"! ++ .5J. .. ..F` ++ 78a.. ` ..2' ++ J9Ksaw0"' ++ .EJ?A...a. ++ q...g...gi ++ .m...qa..,y: ++ .HQFNB&...mm ++ ,Z|,m.a.,dp ++ .,?f` ,E?:"^7b ++ `A| . .F^^7'^4, ++ @9@mmBmmmmmQM$ ++ ..MMMMMMMMMMMQzna, ++ ...f"A.JdT J: Jp, ++ `JNa..........A....af` ++ `^^^^^'` ++EOC diff --git a/cowsay-3.03-cock_cow.patch b/cowsay-3.03-cock_cow.patch new file mode 100644 index 0000000..01e8701 --- /dev/null +++ b/cowsay-3.03-cock_cow.patch @@ -0,0 +1,23 @@ +Description: Add a new cow +Forwarded: no +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404287#5 +Bug-Debian: http://bugs.debian.org/404287 +Author: Krishna Kumar +Last-Update: 2014-03-21 + +--- /dev/null ++++ cowsay-3.03/cows/cock.cow +@@ -0,0 +1,13 @@ ++$the_cow = <<"EOC"; ++ $thoughts ++ $thoughts /\\/\\ ++ \\ / ++ | 0 >> ++ |___| ++ __((_<| | ++( | ++(__________) ++ | | ++ | | ++ /\\ /\\ ++EOC diff --git a/cowsay-3.03-debian_utf8_width.patch b/cowsay-3.03-debian_utf8_width.patch new file mode 100644 index 0000000..0c3f86e --- /dev/null +++ b/cowsay-3.03-debian_utf8_width.patch @@ -0,0 +1,24 @@ +Description: utf8 support in input, output and arguments on utf8-enabled locales + Note that this is not a complete solution (doesn't support Chinese/Japanese + characters for example) but it's better than what we had. +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=254557#27 +Bug-Debian: http://bugs.debian.org/254557 +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/cowsay/+bug/393212 +Author: Damyan Ivanov + +--- a/cowsay ++++ b/cowsay +@@ -12,6 +12,13 @@ use File::Basename; + use Getopt::Std; + use Cwd; + ++if (${^UTF8LOCALE}) { ++ binmode STDIN, ':utf8'; ++ binmode STDOUT, ':utf8'; ++ require Encode; ++ eval { $_ = Encode::decode_utf8($_,1) } for @ARGV; ++} ++ + $version = "3.03"; + $progname = basename($0); + $eyes = "oo"; diff --git a/cowsay-3.03-duck_cow.patch b/cowsay-3.03-duck_cow.patch new file mode 100644 index 0000000..6afd803 --- /dev/null +++ b/cowsay-3.03-duck_cow.patch @@ -0,0 +1,14 @@ +Description: Add a new cow +Forwarded: no +Author: Gürkan Sengün + +--- /dev/null ++++ cowsay-3.03/cows/duck.cow +@@ -0,0 +1,7 @@ ++# provided by Gürkan Sengün ++$the_cow = <<"EOC"; ++ $thoughts ++ $thoughts ++ $thoughts >()_ ++ (__)__ _ ++EOC diff --git a/cowsay-3.03-empty_messages.patch b/cowsay-3.03-empty_messages.patch new file mode 100644 index 0000000..bb2ea7a --- /dev/null +++ b/cowsay-3.03-empty_messages.patch @@ -0,0 +1,19 @@ +Description: Work-around for broken baloons with empty messages +Forwarded: no +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165218#5 +Bug-Debian: http://bugs.debian.org/165218 +Author: Jeronimo Pellegrini + +--- cowsay-3.03.orig/cowsay ++++ cowsay-3.03/cowsay +@@ -106,6 +106,10 @@ sub maxlength { + $l = length $i; + $m = $l if ($l > $m); + } ++## maxlength patch from Jeronimo Pellegrini (Closes: #165218) ++ if ($m == -1) { ++ $m = 0; ++ } + return $m; + } + diff --git a/cowsay-3.03-fix_paths.patch b/cowsay-3.03-fix_paths.patch new file mode 100644 index 0000000..ec01fd5 --- /dev/null +++ b/cowsay-3.03-fix_paths.patch @@ -0,0 +1,17 @@ +--- cowsay-3.03/cowsay 2014-08-20 22:05:05.000000000 +0200 ++++ cowsay-3.03/cowsay.fixpath 2014-08-22 00:15:46.000000000 +0200 +@@ -1,4 +1,4 @@ +-#%BANGPERL% ++#!/usr/bin/perl + + ## + ## Cowsay 3.03 +@@ -16,7 +16,7 @@ + $progname = basename($0); + $eyes = "oo"; + $tongue = " "; +-$cowpath = $ENV{'COWPATH'} || '%PREFIX%/share/cows'; ++$cowpath = $ENV{'COWPATH'} || '/usr/share/cowsay/cows'; + @message = (); + $thoughts = ""; + diff --git a/cowsay-3.03-gnu_cow.patch b/cowsay-3.03-gnu_cow.patch new file mode 100644 index 0000000..fdaa6e2 --- /dev/null +++ b/cowsay-3.03-gnu_cow.patch @@ -0,0 +1,34 @@ +Description: Add a new cow +Forwarded: no +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=367310#5 +Bug-Debian: http://bugs.debian.org/367310 +Author: Gerfried Fuchs + +--- /dev/null ++++ cowsay-3.03/cows/gnu.cow +@@ -0,0 +1,25 @@ ++## vim:ft=perl: ++## GNU/say - (c) 2006 Gerfried Fuchs ++## distributed under the WTFPLv2 license ++## ++$the_cow = <<"EOC"; ++ $thoughts ,-----._ ++ . $thoughts . ,' `-.__,------._ ++ // $thoughts __\\\\' `-. ++(( _____-'___)) | ++ `:='/ (alf_/ | ++ `.=| |=' | ++ |) O | \\ ++ | | /\\ \\ ++ | / . / \\ \\ ++ | .-..__ ___ .--' \\ |\\ \\ | ++ |o o | ``--.___. / `-' \\ \\\\ \\ | ++ `--'' ' .' / / | | | | \\ ++ $tongue | | / / | | | mmm ++ | || | | /| | ++ ( .' \\ \\ || | | ++ | | \\ \\ // / / ++ | | \\ \\ || |_| ++ / | |_/ /_| ++ /__/ ++EOC diff --git a/cowsay-3.03-koala_typo.patch b/cowsay-3.03-koala_typo.patch new file mode 100644 index 0000000..998f405 --- /dev/null +++ b/cowsay-3.03-koala_typo.patch @@ -0,0 +1,16 @@ +Description: Fix a small typo in the luke-koala cow +Forwarded: no +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=203648#5 +Bug-Debian: http://bugs.debian.org/203648 +Author: Adam Garside + +--- cowsay-3.03.orig/cows/luke-koala.cow ++++ cowsay-3.03/cows/luke-koala.cow +@@ -10,6 +10,6 @@ $the_cow = < + +--- /dev/null ++++ cowsay-3.03/cows/mech-and-cow.cow +@@ -0,0 +1,22 @@ ++## mecha cow! ++## ++## Patch from Thom May ++$the_cow = < +Last-Update: 2014-03-21 + +--- a/cows/moofasa.cow ++++ b/cows/moofasa.cow +@@ -10,5 +10,5 @@ $the_cow = < + +--- /dev/null ++++ cowsay-3.03/cows/openmamba.cow +@@ -0,0 +1,10 @@ ++## ++## The openmamba snake ++## ++$the_cow = <<"EOC"; ++ $thoughts ++ ss ++ ;S; ss sss __ ++ w Sss SSS sss / ++ sSs: ss; ++EOC diff --git a/cowsay-3.03-ponies_cow.patch b/cowsay-3.03-ponies_cow.patch new file mode 100644 index 0000000..22a27ca --- /dev/null +++ b/cowsay-3.03-ponies_cow.patch @@ -0,0 +1,116 @@ +Description: Add 4 new cows +Forwarded: no +Origin: vendor +Bug-Debian: http://bugs.debian.org/575317 +Author: Nick Daly +Last-Update: 2010-12-04 + +--- /dev/null ++++ b/cows/pony-smaller.cow +@@ -0,0 +1,13 @@ ++## ++## A Pony! ++## Copyright 2010 Nick Daly ++## Released under the same terms as cowsay ++## ++$the_cow = <<"EOC"; ++ $thoughts _^^ ++ $thoughts _- $eyes\\ ++ \\----- \\______ ++ $tongue \\ )\\ ++ ||-----|| \\ ++ || || ++EOC +--- /dev/null ++++ b/cows/pony.cow +@@ -0,0 +1,33 @@ ++# ++# A (big) pony! ++# Copyright 2010 Nick Daly ++# Released under the same terms as cowsay ++# ++$the_cow = <<"EOC"; ++ $thoughts /\\/\\ ++ $thoughts \\/\\/ ++ $thoughts / -\\ ++ $thoughts / $eyes -\\ ++ $thoughts / \\ ++ | ---\\ -\\ ++ \\--/ \\ \\ ++ $tongue | -\\ ++ \\ -\\ -------------\\ /-\\ ++ \\ \\-------/ ---/ \\ ++ \\ |\\ \\ ++ | / | | ++ \\ | \\ | ++ | / \\ | ++ | / \\ | ++ \\ \\ \\| ++ - /--------\\ | o ++ \\+ +--------- \\ | ++ | | | \\ ++ | | \\ | ++ | | | \\ ++ | | \\ | ++ \\ | | | ++ | | \\ \\ ++ | | | | ++ +--+ ---+ ++EOC +--- /dev/null ++++ b/cows/unipony-smaller.cow +@@ -0,0 +1,15 @@ ++# ++# A (smaller) unipony! ++# Copyright 2010 Nick Daly ++# Released under the same terms as cowsay ++# ++$the_cow = <<"EOC"; ++ $thoughts \\ ++ $thoughts \\ ++ $thoughts _\\^ ++ $thoughts _- $eyes\\ ++ \\---- \\______ ++ $tongue \\ )\\ ++ ||-----|| \\ ++ || || ++EOC +--- /dev/null ++++ b/cows/unipony.cow +@@ -0,0 +1,36 @@ ++# ++# A (big) pony! ++# Copyright 2010 Nick Daly ++# Released under the same terms as cowsay ++# ++$the_cow = <<"EOC"; ++ $thoughts \\ ++ $thoughts \\_ ++ $thoughts \\\\ ++ $thoughts \\\\/\\ ++ $thoughts _\\\\/ ++ $thoughts / -\\ ++ $thoughts / $eyes -\\ ++ $thoughts / \\ ++ | ---\\ -\\ ++ \\--/ \\ \\ ++ $tongue | -\\ ++ \\ -\\ -------------\\ /-\\ ++ \\ \\-------/ ---/ \\ ++ \\ |\\ \\ ++ | / | | ++ \\ | \\ | ++ | / \\ | ++ | / \\ | ++ \\ \\ \\| ++ - /--------\\ | o ++ \\+ +--------- \\ | ++ | | | \\ ++ | | \\ | ++ | | | \\ ++ | | \\ | ++ \\ | | | ++ | | \\ \\ ++ | | | | ++ +--+ ---+ ++EOC diff --git a/cowsay-3.03-snowman_cow.patch b/cowsay-3.03-snowman_cow.patch new file mode 100644 index 0000000..07a0de5 --- /dev/null +++ b/cowsay-3.03-snowman_cow.patch @@ -0,0 +1,25 @@ +Description: Add a new cow +Forwarded: no +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561531#5 +Bug-Debian: http://bugs.debian.org/561531 +Author: chrysn + +--- /dev/null ++++ b/cows/snowman.cow +@@ -0,0 +1,16 @@ ++# a snowman ++# (c) 2009 chrysn ++# published under the same terms as cowsay or cc-by-3.0, at your discretion ++$the_cow = < + +--- /dev/null ++++ cowsay-3.03/cows/sodomized-sheep.cow +@@ -0,0 +1,15 @@ ++## ++## The non-flaming sheep. ++## ++$the_cow = <> ++EOC diff --git a/cowsay-3.03-suse_cow.patch b/cowsay-3.03-suse_cow.patch new file mode 100644 index 0000000..e0f8c65 --- /dev/null +++ b/cowsay-3.03-suse_cow.patch @@ -0,0 +1,21 @@ +Description: Add a new cow +Forwarded: no +Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=367310#5 +Bug-Debian: http://bugs.debian.org/367310 +Author: Gerfried Fuchs + +--- /dev/null ++++ cowsay-3.03/cows/suse.cow +@@ -0,0 +1,12 @@ ++## vim:ft=perl: ++## SuSE thingy - (c) 2006 Gerfried Fuchs ++## distributed under the WTFPLv2 license ++## ++$the_cow = <<"EOC"; ++ $thoughts ++ ${thoughts}____ ++ /@ ~-. ++ \\/ __ .- | ++ // // @ ++EOC ++ diff --git a/cowsay.spec b/cowsay.spec new file mode 100644 index 0000000..59e7f99 --- /dev/null +++ b/cowsay.spec @@ -0,0 +1,91 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: cowsay +Version: 3.03 +Release: 1mamba +Summary: Configurable talking cow +Group: Applications/Graphics +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: http://www.nog.net/~tony/warez +## GITSOURCE https://alioth.debian.org/anonscm/git/collab-maint/cowsay.git +Source0: https://alioth.debian.org/anonscm/git/collab-maint/cowsay.git/master/cowsay-%{version}.tar.bz2 +# Debian patches +Patch0: cowsay-3.03-fix_paths.patch +Patch1: cowsay-3.03-debian_utf8_width.patch +Patch2: cowsay-3.03-empty_messages.patch +Patch3: cowsay-3.03-koala_typo.patch +Patch4: cowsay-3.03-moofasa_remove_tabs.patch +Patch10: cowsay-3.03-apt_cow.patch +Patch11: cowsay-3.03-calvin_cow.patch +Patch12: cowsay-3.03-cock_cow.patch +Patch13: cowsay-3.03-duck_cow.patch +Patch14: cowsay-3.03-gnu_cow.patch +Patch15: cowsay-3.03-mech-and-cow_cow.patch +Patch16: cowsay-3.03-ponies_cow.patch +Patch17: cowsay-3.03-snowman_cow.patch +Patch18: cowsay-3.03-sodomized-sheep_cow.patch +Patch19: cowsay-3.03-suse_cow.patch +# openmamba patches +Patch30: cowsay-3.03-openmamba_cow.patch +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: libperl +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +cowsay is a configurable talking cow, written in Perl. +It operates much as the figlet program does, and it written in the same spirit of silliness. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch10 -p1 +%patch11 -p1 +%patch12 -p1 +%patch13 -p1 +%patch14 -p1 +%patch15 -p1 +%patch16 -p1 +%patch17 -p1 +%patch18 -p1 +%patch19 -p1 +%patch30 -p1 + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -D -m0755 cowsay %{buildroot}%{_bindir}/cowsay +install -D -m0644 cowsay.1 %{buildroot}%{_mandir}/man1/cowsay.1 +install -d %{buildroot}%{_datadir}/cowsay/cows +install -m0644 cows/*.cow %{buildroot}%{_datadir}/cowsay/cows/ + +cd %{buildroot}%{_bindir} && ln -s cowsay cowthink +cd %{buildroot}%{_mandir}/man1 && ln -s cowsay.1 cowthink.1 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/cowsay +%{_bindir}/cowthink +%dir %{_datadir}/cowsay/cows +%{_datadir}/cowsay/cows/*.cow +%{_mandir}/man1/cowsay* +%{_mandir}/man1/cowthink* +%doc LICENSE + +%changelog +* Wed Aug 20 2014 Davide Madrisan 3.03-1mamba +- package created by autospec