%define name cowsay %define version 3.03 %define release 6mdk 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 Patch0: %{name}.save.the.world.patch.bz2 BuildRoot: %_tmppath/%name-buildroot BuildArch: noarch %description Funny program to create ASCII images like cows, sheeps and much more. %prep %setup -q bzcat %{SOURCE1} > cowsay.completion perl -pi -e 's|%BANGPERL%|!%{_bindir}/perl|' cowsay perl -pi -e 's|%PREFIX%|%{_prefix}|' cowsay %patch0 %install rm -rf $RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT%{_bindir} install -m 755 cowsay $RPM_BUILD_ROOT%{_bindir} (cd $RPM_BUILD_ROOT%{_bindir} && ln -s cowsay cowthink) install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1 install -m 644 cowsay.1 $RPM_BUILD_ROOT%{_mandir}/man1 (cd $RPM_BUILD_ROOT%{_mandir}/man1 && ln -s cowsay.1 cowthink.1) install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/cows install -m 644 cows/* $RPM_BUILD_ROOT%{_datadir}/cows install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d install -m 644 cowsay.completion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/cowsay %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc LICENSE README INSTALL %config(noreplace) %{_sysconfdir}/bash_completion.d/* %{_bindir}/* %{_mandir}/man1/* %{_datadir}/cows %changelog * 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>