Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > 40fff8e52b69ba75a47d8106149babc1 > files > 9

cowsay-3.04-2.mga6.src.rpm

Name:       cowsay
Version:    3.04
Release:    %mkrel 2
Summary:    Configurable talking cow
Group:      Toys
License:    GPLv3
URL:        https://github.com/tnalpgge/rank-amateur-cowsay
Source0:    https://github.com/tnalpgge/rank-amateur-cowsay/archive/%{name}-%{version}.tar.gz
Source9:    duck.cow
Source10:   apt.cow
Source11:   calvin.cow
Source12:   cock.cow
Source13:   small-duck.cow
Source14:   gnu.cow
Source15:   sodomized-sheep.cow
Source16:   suse.cow
Source17:   shark.cow
Source18:   girafe.cow
Source19:   phaco.cow
Source20:   pumpkin.cow
Source21:   kenny.cow
Patch0:     %{name}.save.the.world.patch
Patch1:     %{name}-3.03-elephant-in-snake.cow.patch
Patch2:     %{name}-3.03-luke-koala.cow.patch
Patch3:     %{name}-3.03-mech-and-cow.cow.patch
BuildArch:  noarch

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

%prep
%setup -q -n rank-amateur-cowsay-%{name}-%{version}
%autopatch -p1

perl -pi -e 's|%BANGPERL%|!%{_bindir}/perl|' cowsay
perl -pi -e 's|%PREFIX%|%{_prefix}|' cowsay cowsay.1

# Those cows require perl-Acme-Cow, which is dead upstream and actually
# an unfinished reimplementation of cowsay 3
rm -f cows/*.pm

%install
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
for cowfile in %{_sourcedir}/*.cow; do
  install -m 644 ${cowfile} %{buildroot}%{_datadir}/cows
done

%files
%doc LICENSE README INSTALL
%{_bindir}/%{name}
%{_bindir}/cowthink
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/cowthink.1*
%{_datadir}/cows/


%changelog
* Mon Jan 02 2017 akien <akien> 3.04-2.mga6
+ Revision: 1079657
- Remove dependency on perl-Acme-Cow

* Sun Jan 01 2017 akien <akien> 3.04-1.mga6
+ Revision: 1079127
- Version 3.04
- License changed to GPLv3
- New upstream URL

* Sat Feb 06 2016 umeabot <umeabot> 3.03-26.mga6
+ Revision: 940986
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 3.03-25.mga5
+ Revision: 739868
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 3.03-24.mga5
+ Revision: 678561
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 3.03-23.mga4
+ Revision: 503499
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 3.03-22.mga3
+ Revision: 348193
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Nov 20 2012 pterjan <pterjan> 3.03-21.mga3
+ Revision: 319915
- Fix License tag

* Thu Feb 10 2011 boklm <boklm> 3.03-20.mga1
+ Revision: 49823
- imported package cowsay