103 lines
3.1 KiB
RPMSpec
103 lines
3.1 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: cowsay
|
|
Version: 3.04
|
|
Release: 1mamba
|
|
Summary: Configurable talking cow
|
|
Group: Applications/Graphics
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
|
URL: http://www.nog.net/~tony/warez
|
|
## GITSOURCE https://alioth.debian.org/anonscm/git/collab-maint/cowsay.git
|
|
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-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: perl-devel
|
|
Requires: perl >= %perl_major_ver
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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 -n rank-amateur-cowsay-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
%patch12 -p1
|
|
%patch13 -p1
|
|
%patch14 -p1
|
|
%patch15 -p1
|
|
%patch16 -p1
|
|
%patch17 -p1
|
|
%patch18 -p1
|
|
%patch19 -p1
|
|
%patch30 -p1
|
|
%patch31 -p1
|
|
|
|
%build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
install -D -m0755 cowsay %{buildroot}%{_bindir}/cowsay
|
|
install -D -m0644 cowsay.1 %{buildroot}%{_mandir}/man1/cowsay.1
|
|
install -d %{buildroot}%{_datadir}/cowsay/cows
|
|
install -m0644 cows/*.cow %{buildroot}%{_datadir}/cowsay/cows/
|
|
|
|
cd %{buildroot}%{_bindir} && ln -s cowsay cowthink
|
|
cd %{buildroot}%{_mandir}/man1 && ln -s cowsay.1 cowthink.1
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/cowsay
|
|
%{_bindir}/cowthink
|
|
%dir %{_datadir}/cowsay/cows
|
|
%{_datadir}/cowsay/cows/*.cow
|
|
%{_mandir}/man1/cowsay*
|
|
%{_mandir}/man1/cowthink*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* 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
|