File frisk.spec of Package frisk

#
# spec file for package frisk (Version 1.3rc1 )
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           frisk
BuildRequires:  xaw3d-devel xorg-x11 xorg-x11-devel
License:        GPL v2 or later
Group:          Amusements/Games/Strategy/Other
AutoReqProv:    on
Version:        1.3rc1 
Release:        198
Summary:        X Window System Risk
Source:         xfrisk-1.3-rc1.tar.bz2
Patch1:         frisk-1.3rc1-uninitialized.patch
Patch2:         frisk-1.3rc1-strict_aliasing.patch
Url:            http://tuxick.net/xfrisk/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if "%(xft-config --prefix)" == "/usr"
%define _xorg7libs %_lib
%define _xorg7libs32 lib
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7pixmaps include
%define _xorg7libshare share
%define _xorg7_xkb /usr/share/X11/xkb
%define _xorg7_termcap /usr/lib/X11/etc
%define _xorg7_serverincl /usr/include/xorg
%define _xorg7_fonts /usr/share/fonts
#%define _xorg7_config /usr/share/X11/config #use libshare macro
%define _xorg7_prefix /usr
%else
%define _xorg7libs X11R6/%_lib
%define _xorg7libs32 X11R6/lib
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7pixmaps X11R6/include
%define _xorg7libshare X11R6/lib/
%define _xorg7_xkb /etc/X11/xkb
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
#%define _xorg7_config /usr/X11R6/lib/X11/config #use libshare macro
%define _xorg7_prefix /usr/X11R6
%endif

%description
XFrisk is a computer version of the classic Risk board game. It is a
multiplayer game played on a TCP/IP network, uses the X11 window system
for graphics and runs on most UNIX and UNIX-like platforms.



Authors:
--------
    Elan Feingold <feingold@zko.dec.com>

%prep
%setup -n xfrisk-1.3-rc1 
%patch1
%patch2

%build
./configure \
	--prefix=%{_prefix} \
	--bindir=/usr/%{_xorg7bin} \
	--libdir=%{_prefix}/%{_lib} \
	--mandir=%{_mandir} \
	CPPFLAGS="$RPM_OPT_FLAGS" \
	CFLAGS="$RPM_OPT_FLAGS"
make 

%install
install -d $RPM_BUILD_ROOT/usr/{%{_xorg7bin}/,%{_xorg7libshare}/X11/app-defaults/}
install -m 0644 Xfrisk.ad $RPM_BUILD_ROOT/usr/%{_xorg7libshare}/X11/app-defaults/XFrisk
make install BINDIR=/usr/%{_xorg7bin} PREFIX=%{_prefix} LIBNAME=%{_lib} DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc BUGS ChangeLog FAQ README TODO
%config /usr/%{_xorg7libshare}/X11/app-defaults/XFrisk
/usr/%{_xorg7bin}/*
%dir /usr/share/xfrisk
/usr/share/xfrisk/*

%changelog
* Fri Nov 09 2007 lmichnovic@suse.cz
- bzipped tarball
* Fri Nov 09 2007 lmichnovic@suse.cz
- fixed unneeded executable perm of file /usr/share/X11/app-defaults/XFrisk
- fixed strict aliasing (strict_aliasing.patch)
* Fri Jun 01 2007 dmueller@suse.de
- fix buildrequires
* Thu Aug 03 2006 lmichnovic@suse.cz
- update to version 1.3rc1
  - using GNU autoconf and automake for build configuration now
  - Fixed: two memory leaks
  scrollbars in the color dialog should work now
  potential crashes in message handling system
  the clicking X kills parent bug is fixed
- obsoletes makefile.patch prefix.patch ia64.patch
- fix of uninitialized variable (uninitialized.patch)
* Thu Aug 03 2006 lmichnovic@suse.cz
- builds also with new X.org 7.x, checks the prefix in X.org
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Fri Mar 07 2003 tcrhak@suse.cz
- use /usr/lib, not /usr/local/lib (patch prefix)
  [buf #24873]
* Wed Apr 24 2002 tcrhak@suse.cz
- fixed to build with lib64
* Fri May 25 2001 pblaha@suse.cz
- fix cast warning on ia64
* Mon Jun 05 2000 bubnikv@suse.cz
- added URLs
* Wed May 24 2000 bubnikv@suse.cz
- new version (1.2)
- filled Group: tag
* Fri Mar 24 2000 bubnikv@suse.cz
-  added buildroot
* Tue Oct 19 1999 freitag@suse.de
- new version (1.00) - frisk changed to xfrisk
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Feb 06 1997 rj@suse.de
- new version (0.99b4)
	- now working with ELF (ZZZ -> FUN)
openSUSE Build Service is sponsored by