SHA256
1
0
forked from pool/cowsay
Dominique Leuenberger 2019-06-26 14:05:03 +00:00 committed by Git OBS Bridge
commit db30dee367
4 changed files with 60 additions and 7 deletions

30
chami.patch Normal file
View File

@ -0,0 +1,30 @@
Index: cowsay-3.03/cows/chameleon.cow
===================================================================
--- /dev/null
+++ cowsay-3.03/cows/chameleon.cow
@@ -0,0 +1,25 @@
+##
+## SUSE-like chameleon
+##
+$the_cow = <<EOC;
+ $thoughts
+ $thoughts
+ $thoughts
+
+ _..~~~~~‾‾‾‾‾‾‾~~~~~._ |‾--.____
+ _.~‾ ‾~.. ‾‾--._
+ _.~‾ --- ‾.
+ .~ / $eye \\ \\
+ / \\ / )
+ / _ --- )
+ / ________ ‾-_ __)
+ / / ¯_ ‾-___--‾‾ /
+ / / _-------_ ¯. ~~~~~~~~ /‾~~__ $tongue _~¯
+ | / / _____ \\ \\ / \\ | ‾‾~~~~~~‾
+ | | | | _ \\ \\ \\ / \\ |
+ \\ | \\ V | | | \\ | \\ \\
+ \\ \\ \\___/ | / \\| \\|
+ \\ \\______/ /
+ \\_________/
+
+EOC

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jun 26 07:45:39 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- Add SUSE brand
* chami.patch -- big chameleon picture named chameleon.cow
* one-eye.patch -- helper patch to allow the chameleon to be dead
-------------------------------------------------------------------
Sat May 27 09:21:12 UTC 2017 - sor.alexei@meowr.ru

View File

@ -1,7 +1,7 @@
#
# spec file for package cowsay
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -23,16 +23,18 @@ Name: cowsay
Version: 3.03
Release: 0
Summary: Configurable talking cow (and some other creatures)
License: GPL-1.0+ or Artistic-1.0
License: GPL-1.0-or-later OR Artistic-1.0
Group: Amusements/Toys/Other
Url: http://nog.net/~tony/warez/
URL: http://nog.net/~tony/warez/
Source: http://nog.net/~tony/warez/%{name}-%{version}.tar.gz
Source1: http://nog.net/~tony/warez/%{name}-%{version}.tar.gz.sig
Source2: http://nog.net/~tony/tony-monroe-gpgkey.txt#/cowsay.keyring
Patch0: one-eye.patch
Patch1: chami.patch
BuildRequires: bash
BuildRequires: perl
BuildArch: noarch
%perl_requires
%{perl_requires}
%description
cowsay is a configurable talking cow, written in Perl. It operates
@ -42,6 +44,8 @@ of silliness.
%prep
%setup -q
sed -i "s|,\$%{nil}PREFIX,|,%{_prefix},|" install.sh
%patch0 -p1
%patch1 -p1
%build
perl -c cowsay
@ -52,8 +56,8 @@ mv -T %{buildroot}%{_prefix}/man/ %{buildroot}%{_mandir}
rm -f %{buildroot}%{_datadir}/cows/mech-and-cow
%files
%defattr(-,root,root)
%doc ChangeLog LICENSE MANIFEST README
%license LICENSE
%doc ChangeLog MANIFEST README
%{_bindir}/%{name}
%{_bindir}/cowthink
%{_datadir}/cows

12
one-eye.patch Normal file
View File

@ -0,0 +1,12 @@
Index: cowsay-3.03/cowsay
===================================================================
--- cowsay-3.03.orig/cowsay
+++ cowsay-3.03/cowsay
@@ -66,6 +66,7 @@ $Text::Wrap::columns = $opts{'W'};
split("\n", fill("", "", @message)));
&construct_balloon;
&construct_face;
+$eye = substr($eyes,0,1);
&get_cow;
print @balloon_lines;
print $the_cow;