2014-04-18 11:44:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package cowsay
|
|
|
|
#
|
2020-09-02 17:00:26 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-04-18 11:44:27 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-06-26 09:13:33 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-04-18 11:44:27 +00:00
|
|
|
#
|
|
|
|
|
2014-04-26 15:49:36 +00:00
|
|
|
|
2017-05-27 09:27:29 +00:00
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
%{?!perl_requires:%define perl_requires() Requires: perl = %{perl_version}}
|
|
|
|
%endif
|
2014-04-18 11:44:27 +00:00
|
|
|
Name: cowsay
|
2020-09-02 17:00:26 +00:00
|
|
|
Version: 3.04
|
2014-04-18 11:44:27 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Configurable talking cow (and some other creatures)
|
2020-09-02 17:00:26 +00:00
|
|
|
License: GPL-3.0-or-later
|
2014-04-26 15:49:36 +00:00
|
|
|
Group: Amusements/Toys/Other
|
2020-09-02 17:00:26 +00:00
|
|
|
URL: https://github.com/tnalpgge/rank-amateur-cowsay
|
|
|
|
Source: https://github.com/tnalpgge/rank-amateur-cowsay/archive/cowsay-%{version}.tar.gz
|
2019-06-26 09:13:33 +00:00
|
|
|
Patch0: one-eye.patch
|
|
|
|
Patch1: chami.patch
|
2014-04-18 11:44:27 +00:00
|
|
|
BuildRequires: bash
|
2017-05-27 09:27:29 +00:00
|
|
|
BuildRequires: perl
|
2014-04-18 11:44:27 +00:00
|
|
|
BuildArch: noarch
|
2019-06-26 09:13:33 +00:00
|
|
|
%{perl_requires}
|
2014-04-18 11:44:27 +00:00
|
|
|
|
|
|
|
%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
|
2020-09-02 17:00:26 +00:00
|
|
|
%setup -q -n rank-amateur-cowsay-%{name}-%{version}
|
2014-04-18 11:44:27 +00:00
|
|
|
sed -i "s|,\$%{nil}PREFIX,|,%{_prefix},|" install.sh
|
2019-06-26 09:13:33 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2014-04-18 11:44:27 +00:00
|
|
|
|
|
|
|
%build
|
2014-04-26 15:49:36 +00:00
|
|
|
perl -c cowsay
|
2014-04-18 11:44:27 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
bash ./install.sh %{buildroot}%{_prefix}
|
|
|
|
mv -T %{buildroot}%{_prefix}/man/ %{buildroot}%{_mandir}
|
|
|
|
rm -f %{buildroot}%{_datadir}/cows/mech-and-cow
|
|
|
|
|
|
|
|
%files
|
2019-06-26 09:13:33 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc ChangeLog MANIFEST README
|
2014-04-18 11:44:27 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/cowthink
|
|
|
|
%{_datadir}/cows
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%changelog
|