2014-04-18 13:44:27 +02:00
|
|
|
#
|
|
|
|
# spec file for package cowsay
|
|
|
|
#
|
2017-05-27 11:27:29 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-04-18 13:44:27 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-04-26 17:49:36 +02:00
|
|
|
|
2017-05-27 11:27:29 +02:00
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
%{?!perl_requires:%define perl_requires() Requires: perl = %{perl_version}}
|
|
|
|
%endif
|
2014-04-18 13:44:27 +02:00
|
|
|
Name: cowsay
|
2014-04-26 17:49:36 +02:00
|
|
|
Version: 3.03
|
2014-04-18 13:44:27 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Configurable talking cow (and some other creatures)
|
2014-04-26 17:49:36 +02:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
|
|
|
Group: Amusements/Toys/Other
|
2014-04-18 13:44:27 +02:00
|
|
|
Url: http://nog.net/~tony/warez/
|
2014-04-26 17:51:32 +02:00
|
|
|
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
|
2014-04-18 13:44:27 +02:00
|
|
|
BuildRequires: bash
|
2017-05-27 11:27:29 +02:00
|
|
|
BuildRequires: perl
|
2014-04-18 13:44:27 +02:00
|
|
|
BuildArch: noarch
|
2017-05-27 11:27:29 +02:00
|
|
|
%perl_requires
|
2014-04-18 13:44:27 +02: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
|
|
|
|
%setup -q
|
|
|
|
sed -i "s|,\$%{nil}PREFIX,|,%{_prefix},|" install.sh
|
|
|
|
|
|
|
|
%build
|
2014-04-26 17:49:36 +02:00
|
|
|
perl -c cowsay
|
2014-04-18 13:44:27 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
bash ./install.sh %{buildroot}%{_prefix}
|
|
|
|
mv -T %{buildroot}%{_prefix}/man/ %{buildroot}%{_mandir}
|
|
|
|
rm -f %{buildroot}%{_datadir}/cows/mech-and-cow
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog LICENSE MANIFEST README
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/cowthink
|
|
|
|
%{_datadir}/cows
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%changelog
|