File xbl.spec of Package xbl

# spec file for package xbl
# 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

Name:           xbl
Version:        1.1.6
Release:        0
Summary:        3D Tetris like Game
License:        GPL-1.0-or-later
Group:          Amusements/Games/Logic
Patch0:         no-user-interaction.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  xorg-x11-devel

3D Tetris for X Window System.
Users which are in the "games" group are sharing their scores (competition).

%setup -q
%patch0 -p1
find . -type f -exec chmod 644 \{\} +
rm configure

autoreconf -fiv
%configure --mandir=%{_mandir} --bindir=%{_bindir} --libdir=%{_datadir}/X11/app-defaults

mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}/%{_datadir}/X11/app-defaults
make DESTDIR=%{buildroot} SCOREDIR=%{_datadir}/%{name} install
chmod 0755 %{buildroot}%{_bindir}/xbl
rm %{buildroot}%{_datadir}/%{name}/COPYING

%license COPYING
%doc %{_datadir}/%{name}/{README,xbl.html,xbl-*}
%dir %{_datadir}/%{name}

openSUSE Build Service is sponsored by