Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37561439
en ru br
Репозитории ALT
S:3.03-alt4
5.1: 3.03-alt2
4.1: 3.03-alt0.M41.1
www.altlinux.org/Changes

Группа :: Игры/Прочее
Пакет: cowsay

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: cowsay
Version: 3.03
Release: alt2
Summary: Configurable speaking/thinking cow
Group: Games/Other
License: Artistic or GPL
Url: http://www.nog.net/~tony/warez/cowsay.shtml
Source0: http://www.nog.net/~tony/warez/%name-%version.tar.gz
Source1: cowsay.bashcomp
Source2: cowsay-convert
Source3: mech-and-cow.cow
Source4: animalsay
Packager: Fr. Br. George <george at altlinux.ru>
BuildArch: noarch

%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.
It generates ASCII pictures of a cow with a message. It can also generate
pictures of other animals.

%prep
%setup -q
sed -e 's#%%PREFIX%%/share/cows#%_datadir/%name''#' \
        -e 's#%%BANGPERL%%#!/usr/bin/perl#' -i %name
sed -e 's#%%PREFIX%%/share/cows#%_datadir/%name''#' \
        -e 's#/usr/local/share/cows#%_datadir/%name''#' -i %name.1
cp %SOURCE2 %SOURCE4 .
%build
echo No need to build anything

%install
# using install.sh is not a good idea so let's make the install manually
mkdir -p %buildroot{%_bindir,%_mandir/man1,%_datadir/%name,%_sysconfdir/bash_completion.d}
cp -p %name %name-convert %buildroot%_bindir
cp -p cows/* %buildroot%_datadir/%name
cp %SOURCE3 %buildroot%_datadir/%name
rm %buildroot%_datadir/%name/mech-and-cow
cp -p %name.1 %buildroot%_mandir/man1
install -m755 %SOURCE2 %buildroot%_bindir
install -m755 %SOURCE4 %buildroot%_bindir

chmod +x %buildroot%_bindir/animalsay
ln -s %name %buildroot%_bindir/cowthink
ln -s %name.1 %buildroot%_mandir/man1/cowthink.1

cp %SOURCE1 %buildroot%_sysconfdir/bash_completion.d

%files
%doc ChangeLog LICENSE README
%_bindir/*
%_mandir/man1/cow*
%_datadir/%name
%_sysconfdir/bash_completion.d

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin