File xpexeso.spec of Package xpexeso

#
# spec file for package xpexeso (Version 2003.5.26)
#
# 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:           xpexeso
BuildRequires:  update-desktop-files xaw3d xorg-x11 xorg-x11-devel
%if 0%{?suse_version} > 1020
BuildRequires:  xaw3d-devel
%endif
License:        GPL v2 or later
Group:          Amusements/Games/Board/Other
AutoReqProv:    on
Version:        2003.5.26
Release:        309
Summary:        An X Window System Game with 64 Picture Cards
Source:         xpexeso-20030526.tar.bz2
Source1:        xpexeso.po
Source2:        xpexeso.xpm
Source3:        vprirode.tar.gz
Patch:          xpexeso-various.patch
Patch1:         xpexeso-vprirode.patch
Url:            http://math.feld.cvut.cz/olsak/xpexeso.html
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
The game is for two or more players. If the xpexeso program is used,
some players can be substituted by computer. The game includes 64
picture cards coupled into pairs. There are 32 pictures (the same
picture on each pair). The backside of all cards is common for all
cards. The winner is usually the player with a better "short memory".
You have to remember the position and contents of cards. The program
xpexeso emulates the classical game PEXESO, which is widely played by
children. The program is implemented for X Window System.



Authors:
--------
    Petr Olsak <olsak@math.feld.cvut.cz>

%prep
%setup -q -n %{name} -b3
cp -p %{S:1} %{S:2} .
%patch
%patch1

%build
xmkmf -a
make %{?jobs:-j%jobs} CCOPTIONS="$RPM_OPT_FLAGS"
# just for translators
#make xpexeso.po
msgfmt xpexeso.po -o xpexeso.mo

%install
make DESTDIR=$RPM_BUILD_ROOT install
install -d $RPM_BUILD_ROOT/usr/share/locale/cs/LC_MESSAGES/
install xpexeso.mo $RPM_BUILD_ROOT/usr/share/locale/cs/LC_MESSAGES/
install README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/xpexeso/
install -d $RPM_BUILD_ROOT/usr/%{_xorg7pixmaps}/X11/pixmaps/
install xpexeso.xpm $RPM_BUILD_ROOT/usr/%{_xorg7pixmaps}/X11/pixmaps/
%suse_update_desktop_file -c xpexeso %name xpexeso /usr/games/xpeseso xpexeso Game BoardGame
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(644, root, root, 755)
%attr (755,root,root) /usr/games/*
/usr/share/games/xpexeso/
%docdir /usr/share/doc/packages/xpexeso/
/usr/share/doc/packages/xpexeso/
#/usr/share/locale/cs/LC_MESSAGES/xpexeso.mo
/usr/%{_xorg7pixmaps}/X11/pixmaps/*
/usr/share/applications/xpexeso.desktop
/usr/share/pixmaps/xpexeso.xpm
%changelog
* Wed Nov 07 2007 - lmichnovic@suse.cz
- removed suffix from icon file in desktop file
* Mon Sep 03 2007 - lmichnovic@suse.cz
- fixed rpmlint errors: executable permissions
- using %%lang macro
* Fri Jun 01 2007 - lmichnovic@suse.cz
- added xaw3d-devel to BuildReq
* Fri Jul 28 2006 - lmichnovic@suse.cz
- builds also with new X.org 7.x, detecting prefix in X.org
- building with icecream
- using RPM_OPT_FLAGS
* Thu Jul 13 2006 - lmichnovic@suse.cz
- added cards "Nature" ("V prirode") and adjusted configure files
  (vprirode.patch)
- patch xpexeso.diff renamed into xpexeso-various.patch
* Tue Feb 21 2006 - lmichnovic@suse.cz
- created desktop entry
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 - dmueller@suse.de
- don't build as root
* Fri Jun 06 2003 - ltinkl@suse.cz
- updated sources to version 20030526
- fixed the patches
* Thu Mar 27 2003 - pmladek@suse.cz
- fixed to use iso8859-2 fonts for related locales
* Tue Nov 27 2001 - vinil@suse.cz
- fixed l10n of pexset-* files
- bzip2ed source
* Wed Jun 20 2001 - ro@suse.de
- use ComplexProgramTargetNoMan
* Wed Dec 06 2000 - vinil@suse.cz
- fixed to build
- pixmap relocated
- compiled against Xaw3d
* Tue Jun 27 2000 - vinil@suse.cz
- initial release
openSUSE Build Service is sponsored by