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 https://bugs.opensuse.org/
#


Name:           xbl
Version:        1.1.6
Release:        0
Summary:        3D Tetris like Game
License:        GPL-1.0-or-later
Group:          Amusements/Games/Logic
URL:            https://perso.univ-lyon1.fr/thierry.excoffier/XBL/
Source:         http://perso.univ-lyon1.fr/thierry.excoffier/XBL/xbl-%{version}.tar.gz
Patch0:         no-user-interaction.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  xorg-x11-devel

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

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

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

%install
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

%files
%license COPYING
%doc %{_datadir}/%{name}/{README,xbl.html,xbl-*}
%{_bindir}/xbl
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/Xbl
%{_datadir}/X11/app-defaults
%{_mandir}/man1/xbl.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by