Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 9efdf52a9c506f14b60b052921b44ec3 > files > 5

cowsay-3.03-10mdk.src.rpm

%define name    cowsay
%define version 3.03
%define release 10mdk

Name:           %{name}
Version:        %{version}
Release:        %{release}
Summary:        Configurable talking cow
License:        Artistic and GPL
Group:          Toys
URL:            http://www.nog.net/~tony/warez/cowsay.shtml
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.completion.bz2
Source2:        %{name}-more-cows.tar.bz2
Patch0:		%{name}.save.the.world.patch.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}
BuildArch:      noarch

%description
Funny program to create ASCII images like cows, sheeps and much more.

%prep
%setup -q
%setup -q -T -D -a 2
bzcat %{SOURCE1} > cowsay.completion
perl -pi -e 's|%BANGPERL%|!%{_bindir}/perl|' cowsay
perl -pi -e 's|%PREFIX%|%{_prefix}|' cowsay cowsay.1
%patch0

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 cowsay %{buildroot}%{_bindir}
(cd %{buildroot}%{_bindir} && ln -s cowsay cowthink)

install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 cowsay.1 %{buildroot}%{_mandir}/man1
(cd %{buildroot}%{_mandir}/man1 && ln -s cowsay.1 cowthink.1)

install -d -m 755 %{buildroot}%{_datadir}/cows
install -m 644 cows/* %{buildroot}%{_datadir}/cows

install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 644 cowsay.completion %{buildroot}%{_sysconfdir}/bash_completion.d/cowsay

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc LICENSE README INSTALL
%config(noreplace) %{_sysconfdir}/bash_completion.d/*
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/cows

%changelog
* Sat Jun 04 2005 Guillaume Rousse <guillomovitch@mandriva.org> 3.03-10mdk 
- fix man page (fix #16291)

* Sat Jul 17 2004 Guillaume Rousse <guillomovitch@mandrake.org> 3.03-9mdk 
- hurry businesman compliant (aka two new wonderful cows)

* Sun Jul 11 2004 Guillaume Rousse <guillomovitch@mandrake.org> 3.03-8mdk 
- apologies to the girafes (with one only f)

* Sat Jun 05 2004 Guillaume Rousse <guillomovitch@mandrake.org> 3.03-7mdk 
- #mandrakefr compliant (aka four new additional cows)

* Thu Aug 21 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 3.03-6mdk
- save.the.world patch

* Fri Jun 06 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 3.03-5mdk
- make it ipv6 aware

* Sun Apr 20 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.03-4mdk
- cows think too (aka fixed bash completion)

* Mon Mar 10 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.03-3mdk
- fixed data files locations (/me really sux)

* Sat Mar 08 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.03-2mdk
- fixed shellbang (/me sux)
- bash-completion

* Sat Mar 08 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 3.03-1mdk
- contributed by Pascal Terjan <CMoi@tuxfamily.org>