File cowsay.spec of Package cowsay

# spec file for package cowsay
# Copyright (c) 2020 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%if 0%{?suse_version} >= 1140
%{?!perl_requires:%define perl_requires() Requires: perl = %{perl_version}}
Name:           cowsay
Version:        3.04
Release:        0
Summary:        Configurable talking cow (and some other creatures)
License:        GPL-3.0-or-later
Group:          Amusements/Toys/Other
Patch0:         one-eye.patch
Patch1:         chami.patch
BuildRequires:  bash
BuildRequires:  perl
BuildArch:      noarch

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.

%setup -q -n rank-amateur-cowsay-%{name}-%{version}
sed -i "s|,\$%{nil}PREFIX,|,%{_prefix},|"
%patch0 -p1
%patch1 -p1

perl -c cowsay

bash ./ %{buildroot}%{_prefix}
mv -T %{buildroot}%{_prefix}/man/ %{buildroot}%{_mandir}
rm -f %{buildroot}%{_datadir}/cows/mech-and-cow

%license LICENSE

openSUSE Build Service is sponsored by