diff --git a/chami.patch b/chami.patch new file mode 100644 index 0000000..389f02a --- /dev/null +++ b/chami.patch @@ -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 = < + +- 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 diff --git a/cowsay.spec b/cowsay.spec index 922da34..b9d3a9d 100644 --- a/cowsay.spec +++ b/cowsay.spec @@ -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 diff --git a/one-eye.patch b/one-eye.patch new file mode 100644 index 0000000..8c61bac --- /dev/null +++ b/one-eye.patch @@ -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;