File xmemory.spec of Package xmemory
#
# spec file for package xmemory
#
# Copyright (c) 2016 SUSE LINUX 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: xmemory
Version: 3.7
Release: 0
Summary: Memory game
License: X11
Group: Amusements/Games/Board/Other
Url: ftp://ftp.x.org/contrib/games/multiplayer/
Source: xmemory-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: xmemory-%{version}.dif
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: %{name}-%{version}_default-font.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch2: %{name}-cast.patch
# PATCH-FIX-UPSTREAM fix-makefile.patch
Patch3: fix-makefile.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: xorg-x11-util-devel
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
Requires: xorg-x11-fonts-scalable
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This memory game is playable by many users on different X11 displays
simultaneously.
%prep
%setup -q
%patch -P0
%patch -P1
%patch -P2
%patch -P3 -p1
%build
xmkmf -a
export CXXFLAGS="%{optflags}"
make %{?_smp_mflags} XMEMORYDIR=\\\"%{_datadir}/xmemory\\\" xmemory
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} MANDIR=%{_mandir}/man6/ MANSUFFIX=6 install.man
install -m 755 -d %{buildroot}%{_datadir}/xmemory
cp -av *.mem %{buildroot}%{_datadir}/xmemory
%files
%defattr(-,root,root)
%doc README COPYRIGHT
%{_bindir}/xmemory
%{_datadir}/xmemory/
%{_mandir}/man6/xmemory.6*
%changelog