Blob Blame History Raw
Name:           xcowsay
Version:        1.3
Release:        1%{?dist}
Summary:        Displays a cute cow and message on your desktop

Group:          Amusements/Games
License:        GPLv3+
URL:            http://www.doof.me.uk/xcowsay
Source0:        http://www.nickg.me.uk/files/%{name}-%{version}.tar.gz
Source1:        xcowfortune.desktop

BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)


BuildRequires:  gtk2-devel
BuildRequires:  gettext
BuildRequires:  dbus-glib-devel
BuildRequires:  desktop-file-utils
Requires:       fortune-mod

%description
xcowsay displays a cute cow and message on your desktop.
The message can be text or images (with xcowdream)
xcowsay can run in daemon mode for sending
your cow message with DBus.
Inspired by the original cowsay.

%prep
%setup -q
iconv -f iso-8859-1 -t utf-8 NEWS -o NEWS

%build
%configure --enable-dbus
make %{?_smp_mflags} 


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

%find_lang %{name}

desktop-file-install --vendor=""     \
       --dir=%{buildroot}%{_datadir}/applications/   \
       %{SOURCE1}
# xcowfortune is the only .desktop file because the other program 
#(xcowsay, xcowthink and xcowdream) need an argument


%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc NEWS README COPYING AUTHORS ChangeLog 
%{_bindir}/xcowdream
%{_bindir}/xcowfortune
%{_bindir}/xcowsay
%{_bindir}/xcowthink
%{_datadir}/man/man6/xcowsay.6.gz
%{_datadir}/xcowsay/
%{_datadir}/applications/xcowfortune.desktop


%changelog
* Wed Jun 22 2011 Jon Ciesla <limb@jcomserv.net> - 1.3-1
- New upstream.

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Jul 14 2010 Fabien Georget <fabien.georget@gmail.com> - 1.2-1
- Update to 1.2

* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Apr 28 2009 Fabien Georget <fabien.georget@gmail.com> 1.1-1
- change license to GPLv3+
- add /usr/share/xcowsay/ in files
- add dbus-glib-devel in BR for daemon mode of xcowsay
- add fortune-mod in Requires for xcowfortune
- add xcowfortune.desktop

* Mon Mar 30 2009 Fabien Georget <fabien.georget@gmail.com> 1.1-0.1
- Creation