cowsay/cowsay.spec

108 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: cowsay
Version: 3.8.2
Release: 1mamba
Summary: Configurable talking cow
Group: Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/tnalpgge/rank-amateur-cowsay
Source: https://github.com/cowsay-org/cowsay.git/v%{version}/cowsay-%{version}.tar.bz2
#Source: https://github.com/tnalpgge/rank-amateur-cowsay.git/cowsay-%{version}/rank-amateur-cowsay-%{version}.tar.bz2
# Debian patches
Patch0: cowsay-3.03-fix_paths.patch
Patch1: cowsay-3.03-debian_utf8_width.patch
Patch2: cowsay-3.03-empty_messages.patch
Patch3: cowsay-3.03-koala_typo.patch
Patch4: cowsay-3.03-moofasa_remove_tabs.patch
Patch10: cowsay-3.03-apt_cow.patch
Patch11: cowsay-3.03-calvin_cow.patch
Patch12: cowsay-3.03-cock_cow.patch
Patch13: cowsay-3.03-duck_cow.patch
Patch14: cowsay-3.03-gnu_cow.patch
Patch15: cowsay-3.03-mech-and-cow_cow.patch
Patch16: cowsay-3.03-ponies_cow.patch
Patch17: cowsay-3.03-snowman_cow.patch
Patch18: cowsay-3.03-sodomized-sheep_cow.patch
Patch19: cowsay-3.03-suse_cow.patch
# openmamba patches
Patch30: cowsay-3.03-openmamba_cow.patch
Patch31: cowsay-3.03-snake_cow.patch
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Acme-Cow
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
%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
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
#%patch3 -p1
#%patch4 -p1
cd share
%patch 10 -p1
%patch 11 -p1
%patch 12 -p1
%patch 13 -p1
%patch 14 -p1
#%patch 15 -p1
%patch 16 -p1
%patch 17 -p1
%patch 18 -p1
%patch 19 -p1
%patch 30 -p1
%patch 31 -p1
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall prefix=%{_prefix}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/cowsay
%{_bindir}/cowthink
%dir %{_datadir}/cowsay/cows
%{_datadir}/cowsay/cows/*
%{_mandir}/man1/cowsay*
%{_mandir}/man1/cowthink*
%doc LICENSE.txt
%changelog
* Sat Aug 17 2024 Automatic Build System <autodist@openmamba.org> 3.8.2-1mamba
- automatic version update by autodist
* Sat Aug 10 2024 Automatic Build System <autodist@openmamba.org> 3.8.1-1mamba
- automatic version update by autodist
* Mon Dec 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.0-1mamba
- update to 3.7.0
* Thu Sep 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 3.04-1mamba
- update to 3.04
* Tue Dec 29 2015 Automatic Build System <autodist@mambasoft.it> 3.03+dfsg1-1mamba
- automatic update by autodist
* Sun Aug 31 2014 Davide Madrisan <davide.madrisan@gmail.com> 3.03-2mamba
- new cow files: openmamba and snake
* Wed Aug 20 2014 Davide Madrisan <davide.madrisan@gmail.com> 3.03-1mamba
- package created by autospec