File frisk.spec of Package frisk

#
# spec file for package frisk
#
# Copyright (c) 2012 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:           frisk
Version:        1.3rc1
Release:        0
Summary:        X Window System Risk
License:        GPL-2.0+
Group:          Amusements/Games/Strategy/Other
Url:            http://tuxick.net/xfrisk/
Source:         xfrisk-1.3-rc1.tar.bz2
Patch1:         frisk-1.3rc1-uninitialized.patch
Patch2:         frisk-1.3rc1-strict_aliasing.patch
BuildRequires:  xaw3d-devel
BuildRequires:  xorg-x11
BuildRequires:  xorg-x11-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.

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

%build
%configure
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_bindir}
install -D -m 0644 Xfrisk.ad %{buildroot}%{_datadir}/X11/app-defaults/XFrisk
make install BINDIR=%{_bindir} PREFIX=%{_prefix} LIBNAME=%{_lib} DESTDIR=%{buildroot}

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

%changelog
openSUSE Build Service is sponsored by