File xscrabble.spec of Package xscrabble

#
# spec file for package xscrabble (Version 2.10)
#
# 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:           xscrabble
BuildRequires:  xorg-x11 xorg-x11-devel
Summary:        X version of the popular board game, for 1 to 4 players
Group:          Amusements/Games/Board/Other
PreReq:         permissions
License:        GPL
Version:        2.10
Release:        584
URL:            ftp://ftp.ac-grenoble.fr/ge/educational_games
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}_en.tgz
Source2:        %{name}_fr.tgz
Patch:          %{name}-%{version}.patch
Patch1:         %{name}-%{version}-optflags.patch
Patch2:         %{name}-%{version}-strip.patch
Patch3:         %{name}-X11R7.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
X version of the popular board game, for 1 to 4 players.



Authors:
--------
    matt@belgarath.demon.co.uk

%prep
%setup -q -a1 -a2
%patch
%patch1 -p1
%patch2
%patch3

%build
export RPM_OPT_FLAGS
./build bin

%install
DESTDIR=$RPM_BUILD_ROOT ./build install
DESTDIR=$RPM_BUILD_ROOT ./build lang fr 
DESTDIR=$RPM_BUILD_ROOT ./build lang en

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_permissions

%verifyscript
%verify_permissions -e /usr/games/xscrab

%files
%defattr(-,root,root)
%doc CHANGES LICENSE README
%verify(not mode) %attr(0755,games,games) /usr/games/xscrab
/usr/games/xscrabble
/usr/share/games/scrabble/
%{_datadir}/X11/app-defaults/*
%config(noreplace) %attr(664,games,games) /var/games/scrabble*

%changelog -n xscrabble
* Thu Aug 17 2006 - cthiel@suse.de
- fix build with X.Org 7.1
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 21 2006 - schwab@suse.de
- Don't strip binaries.
* Thu May 12 2005 - meissner@suse.de
- use RPM_OPT_FLAGS
* Mon Jan 12 2004 - adrian@suse.de
- fix build again
* Sun Jan 11 2004 - adrian@suse.de
- use x-devel-packages
* Mon Nov 03 2003 - ltinkl@suse.cz
- package according to permissions.secure and call run_permissions
* Sun Aug 04 2002 - ro@suse.de
- group name changed "game" -> "games"
* Wed Jun 26 2002 - pmladek@suse.cz
- score files:
  * moved from /usr/share/games/... to /var/games/
  * fixed rights to 664
  * fixed owner to games:game
  * marked as %%config(noreplace)
- set group ID for /usr/games/xscrab to enable to write in score files
- merged rights patch
* Tue Mar 05 2002 - pmladek@suse.cz
- fixed rights for directories [#14414]
* Fri Feb 22 2002 - pmladek@suse.cz
- fixed paths to /usr/share/games
- fixed font settings
- default language is English now
* Fri Jan 11 2002 - ro@suse.de
- no subdirs in /usr/games
* Fri Oct 26 2001 - pmladek@suse.cz
- package created, version 2.10
- default language is French
openSUSE Build Service is sponsored by