File xbl.spec of Package xbl

#
# spec file for package xbl (Version 1.1.5)
#
# Copyright (c) 2007 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:           xbl
BuildRequires:  xorg-x11-devel
License:        GNU General Public License (GPL)
Group:          Amusements/Games/Logic
PreReq:         permissions
Autoreqprov:    on
Version:        1.1.5
Release:        1
Summary:        3D Tetris
URL:            http://www710.univ-lyon1.fr/ftp/xbl/xbl.html
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}-config.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
3D Tetris for X Window System



Authors:
--------
    Thierry EXCOFFIE <Thierry.EXCOFFIER@ligia.univ-lyon1.fr>

%if "%(xft-config --prefix)" == "/usr"
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7libs %_lib
%define _xorg7libshare share
%define _xorg7pixmaps include
%define _xorg7_prefix /usr
%else
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7libs X11R6/%_lib
%define _xorg7libshare X11R6/lib
%define _xorg7pixmaps X11R6/include
%define _xorg7_prefix /usr/X11R6
%endif
%prep
%setup -q
%patch
#
chmod 644 COPYING INSTALL xbl-README

%build
CFLAGS=$RPM_OPT_FLAGS \
./configure --mandir=%{%_xorg7_mandir} --prefix=/usr --bindir=/usr/%{_xorg7bin} --libdir=/usr/%{_xorg7libshare}X11/app-defaults
make %{?jobs:-j%jobs}

%install
mkdir -p $RPM_BUILD_ROOT/usr/%{_xorg7libshare}/X11/app-defaults
mkdir -p $RPM_BUILD_ROOT/usr/%{_xorg7bin}
mkdir -p $RPM_BUILD_ROOT/%{_xorg7_mandir}/man6
mkdir -p $RPM_BUILD_ROOT/var/games/xbl
make DESTDIR=$RPM_BUILD_ROOT SCOREDIR=/var/games/xbl install

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_permissions

%verifyscript
%verify_permissions -e /usr/%{_xorg7bin}/xbl

%files
%defattr(-, root, root)
%doc COPYING INSTALL README xbl.html xbl-*
%verify(not mode) %attr(0755, games,games) /usr/%{_xorg7bin}/xbl
%attr(0775, games,games) /var/games/xbl
/usr/%{_xorg7libshare}/X11/app-defaults/Xbl
%{_xorg7_mandir}/man6/xbl.6.gz

%changelog
* Mon Apr 16 2007 - lmichnovic@suse.cz
- update to version 1.1.5
  * Added missing bloc: rrldb (thanks to N.Landys and M.Banguerski)
* Wed Jul 26 2006 - lmichnovic@suse.cz
- builds also with new X.org 7.x, checks the version of X.org.
* Thu Jun 22 2006 - lmichnovic@suse.cz
- update to version 1.1.4
  - some code improvements
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 12 2006 - lmichnovic@suse.cz
- update to version 1.1.3
* Wed Oct 05 2005 - lmichnovic@suse.cz
- small adjustment of scoredir in makefile (#103762)
* Wed May 19 2004 - ro@suse.de
- try to fix compilation (broken by xvendorname changes)
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Mon Nov 03 2003 - ltinkl@suse.cz
- package according to permissions.secure and call run_permissions
* Mon Oct 27 2003 - ltinkl@suse.cz
- update to 1.1.2
- patches cleanup
- new patch to fix build
* Tue Sep 16 2003 - kukuk@suse.de
- Adjust permissions in filelist with /etc/permissions*
* Tue Jul 15 2003 - ltinkl@suse.cz
- fixed another buffer overflow [#27825]
* Wed Jul 09 2003 - ltinkl@suse.cz
- fixed potential buffer overflow [#27457]
* Wed Nov 27 2002 - pmladek@suse.cz
- updated to version 1.0k:
  * fix a missing block shape and a duplicate one
  * the default group install is the GID of "games"
  * realtime: less bugs, nicer, use less CPU, choose FPS
  * stereovision (You cross the eyes to see in 3D)
  * small delay before the start of a new game.
- fixed the usage of the varargs macros to compile with gcc-3.3
- fixed cast warnings on x64_64
- man page moved from mann to man6
* Sun Aug 04 2002 - ro@suse.de
- group name changed "game" -> "games"
* Fri Jun 29 2001 - pmladek@suse.cz
- bzipped sources
- added BuildRoot
- compiled with $RPM_OPT_FLAGS
- fixed rights of documentation files
* Mon Jan 17 2000 - freitag@suse.de
- new version V. 1.0j
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon May 17 1999 - ro@suse.de
- define __need___va_list before including varargs
* Fri Mar 06 1998 - ray@suse.de
- new package
- V. 1.0h
openSUSE Build Service is sponsored by