File xpexeso.spec of Package xpexeso
#
# spec file for package xpexeso
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: xpexeso
Version: 2003.5.26
Release: 0
Summary: An X Window System Game with 64 Picture Cards
License: GPL-2.0-or-later
Group: Amusements/Games/Board/Other
URL: http://petr.olsak.net/xpexeso.html
Source: xpexeso-20030526.tar.bz2
Source1: xpexeso.po
Source2: xpexeso.xpm
Source3: vprirode.tar.gz
# PATCH-FEATURE-UPSTREAM - Allow custom installation location, add readme
Patch0: xpexeso-various.patch
# PATCH-FIX-OPENSUSE xpexeso-vprirode.patch - Add vprirode to source list
Patch1: xpexeso-vprirode.patch
# PATCH-FIX-UPSTREAM fix-multiple-defs.patch -- Fixed LTO multiple definitions errors (wrong extern usage)
Patch2: fix-multiple-defs.patch
BuildRequires: update-desktop-files
BuildRequires: xaw3d
BuildRequires: xaw3d-devel
BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel
%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.
%prep
%setup -q -n %{name} -b3
cp -p %{SOURCE1} %{SOURCE2} .
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
xmkmf -a
%make_build CCOPTIONS="%{optflags}" BINDIR="%{_bindir}" DOCDIR="%{_docdir}" DATADIR="%{_datadir}"
msgfmt xpexeso.po -o xpexeso.mo
%install
%make_install BINDIR="%{_bindir}" DOCDIR="%{_docdir}" DATADIR="%{_datadir}"
install -Dm644 xpexeso.mo %{buildroot}%{_datadir}/locale/cs/LC_MESSAGES/xpexeso.mo
%suse_update_desktop_file -c xpexeso %{name} xpexeso %{_bindir}/xpeseso xpexeso Game BoardGame
%find_lang %{name}
%files -f %{name}.lang
%doc README.SuSE
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_datadir}/xpexeso/
%{_datadir}/applications/xpexeso.desktop
%{_datadir}/pixmaps/xpexeso.xpm
%changelog