File xcowsay.spec of Package xcowsay

#
# spec file for package xcowsay
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:       xcowsay
Version:    1.3
Release:    0
License:    GPL-3.0+
Summary:    Displays a cute cow and message on your Linux desktop
Url:    http://www.doof.me.uk/xcowsay/
Group:  Amusements/Toys/Other
Source:  http://www.nickg.me.uk/files/xcowsay-1.3.tar.gz
Source1:        xcowfortune.desktop
Source2:        xcowfortune.svg
Source3:        xcowhelp.desktop
Source4:        xcowhelp.svg
BuildRequires:  gtk2-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  update-desktop-files
BuildRequires:  hicolor-icon-theme
Requires:       gtk2
Requires:       fortune
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
xcowsay displays a cute cow and message on your Linux desktop.
Inspired by the original cowsay.

xcowsay includes all these amazing features:
- Fully configurable!
- Calculates display time from amount of text
- Dream mode — display images in the bubble
- Can draw thought and speech bubbles
- Daemon mode! Send your cow messages over DBus!
- Three different sized cows provided
- fortune(6) wrapper program: xcowfortune — cow will deliver pearls of wisdom!
- Replace the naffness that is xmessage(1)
- Should work with any window manager
- Supports UTF-8 characters properly
- Automatic word wrapping
- Use alternative non-cow images if you like

%prep
%setup -q

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun

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

%install
make install DESTDIR=%{buildroot}
%find_lang xcowsay
%suse_update_desktop_file -i xcowfortune 
%suse_update_desktop_file -i xcowhelp 
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
cp -a %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
cp -a %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps

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

%changelog

openSUSE Build Service is sponsored by