File koules.spec of Package koules

#
# spec file for package koules (Version 1.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           koules
BuildRequires:  update-desktop-files xorg-x11 xorg-x11-devel
Version:        1.4
Release:        789
License:        GPL
Group:          Amusements/Games/Action/Other
Summary:        X Action Game with Multiplayer, Network, and Sound Support
URL:            http://www.ucw.cz/~hubicka/koules/English/koules.html
Source:         sunsite.unc.edu:/pub/Linux/games/video/koules/koules1.4-src.tar.gz
Source1:        %name.desktop
Patch:          koules-%{version}.dif
Patch1:         koules-%{version}-ia64.patch
Patch2:         koules-%{version}-imake.patch
Patch3:         koules-%{version}-strings.patch
Patch4:         hppa.diff
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.



Authors:
--------
    Jan Hubicka <hubicka@limax.paru.cas.cz>

%prep
%setup -n koules1.4
%patch 
%patch1
%patch2
%patch3
%patch4

%build
xmkmf -a
make -f Makefile clean
make CCOPTIONS="$RPM_OPT_FLAGS"

%install
mkdir -p $RPM_BUILD_ROOT/usr/{games,share/games}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
install -c xkoules $RPM_BUILD_ROOT/usr/games/xkoules
install -m 644 -c xkoules.6 $RPM_BUILD_ROOT%{_mandir}/man6/xkoules.6
install -c koules $RPM_BUILD_ROOT/usr/games
install -c koules.tcl $RPM_BUILD_ROOT/usr/games/koules.tcl
install -c koules.sndsrv.linux $RPM_BUILD_ROOT/usr/games
install -d $RPM_BUILD_ROOT/usr/share/games/koules
install -m 644 -c sounds/* $RPM_BUILD_ROOT/usr/share/games/koules
%suse_update_desktop_file -i %name Game ArcadeGame

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc ANNOUNCE BUGS COPYING Card ChangeLog *.xpm Koules.FAQ README TODO 
/usr/games/xkoules
/usr/games/koules
/usr/games/koules.sndsrv.linux
/usr/share/games/koules
/usr/games/koules.tcl
%{_mandir}/man6/xkoules*
/usr/share/applications/%name.desktop

%changelog -n koules
* Wed May 24 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jun 15 2005 - meissner@suse.de
- use RPM_OPT_FLAGS.
* Thu Jul 01 2004 - bg@suse.de
- fix build for hppa
* Tue Feb 17 2004 - nadvornik@suse.cz
- added desktop file
* Sun Jan 11 2004 - adrian@suse.de
- add %%defattr
* Fri Nov 15 2002 - nadvornik@suse.cz
- fixed multi-line string literals
* Wed Oct 23 2002 - nadvornik@suse.cz
- fixed BuildRoot
* Tue Feb 26 2002 - nadvornik@suse.cz
- fixed file permissions
* Tue Jun 12 2001 - nadvornik@suse.cz
- used ComplexProgramTargetNoMan in Imakefile
* Fri May 25 2001 - nadvornik@suse.cz
- fixed include files for ia64
* Fri Aug 18 2000 - nadvornik@suse.cz
- new package
openSUSE Build Service is sponsored by