File koules.spec of Package koules
#
# spec file for package koules
#
# Copyright (c) 2013 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: koules
Version: 1.4
Release: 0
Summary: X Action Game with Multiplayer, Network, and Sound Support
License: GPL-2.0
Group: Amusements/Games/Action/Other
Url: http://www.ucw.cz/~hubicka/koules/English/koules.html
Source: http://www.ucw.cz/~hubicka/koules/packages/%{name}%{version}-src.tar.gz
Source1: %{name}.desktop
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: koules-%{version}.dif
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: koules-%{version}-ia64.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch2: koules-%{version}-imake.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch3: koules-%{version}-strings.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch4: hppa.diff
BuildRequires: update-desktop-files
BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Koules is a fast action arcade-style game. It works in fine (up to
900x620) resolution and offers multiplayer mode for up to five players,
full sound, and network support.
%prep
%setup -n koules1.4
%patch0
%patch1
%patch2
%patch3
%patch4
%build
xmkmf -a
make -f Makefile clean
make CCOPTIONS="%{optflags}"
%install
install -d %{buildroot}%{_bindir}
install xkoules koules koules.tcl koules.sndsrv.linux %{buildroot}%{_bindir}
install -D -m 644 xkoules.6 %{buildroot}%{_mandir}/man6/xkoules.6
install -d %{buildroot}%{_datadir}/koules
install -m 644 -c sounds/* %{buildroot}%{_datadir}/koules
%suse_update_desktop_file -i %{name} Game ArcadeGame
%files
%defattr(-,root,root)
%doc ANNOUNCE BUGS Card ChangeLog *.xpm Koules.FAQ README TODO
%license COPYING
%{_bindir}/xkoules
%{_bindir}/koules
%{_bindir}/koules.sndsrv.linux
%{_bindir}/koules.tcl
%{_datadir}/koules
%{_mandir}/man6/xkoules*
%{_datadir}/applications/%{name}.desktop
%changelog