File eboard.spec of Package eboard

#
# spec file for package eboard
#
# Copyright (c) 2025 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:           eboard
Version:        1.1.3
Release:        0
Summary:        A chess board interface for ICS and engines
License:        GPL-2.0-or-later
Group:          Amusements/Games/Board/Chess
URL:            http://www.bergo.eng.br/eboard/
Source0:        https://github.com/fbergo/eboard/archive/v%{version}/eboard-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- https://github.com/fbergo/eboard/commit/e529c55af7463f9169d9f36f5fc5cdbafccd66b6
Patch0:         fix-linking.patch
# PATCH-FIX-UPSTREAM -- https://github.com/fbergo/eboard/commit/3362e69125f98cdd641b67cbe42daaee163b5333
Patch1:         proper-datadir.patch
BuildRequires:  gcc-c++
BuildRequires:  perl
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libpng16)

%description
eboard is a GTK+ chess board interface for ICS (Internet
Chess Servers) and chess engines (GNU Chess, Crafty, etc.).
It also displays games in PGN (Portable Game Notation)
format.

%prep
%setup -q
%patch -P 0 -p1
%patch -P 1 -p1

%build
./configure --prefix=%{_prefix} --man-prefix=%{_mandir}
make %{?_smp_mflags}

%install
%make_install
install -d %{buildroot}%{_datadir}/applications
install -m 0644 eboard.desktop %{buildroot}%{_datadir}/applications
install -d %{buildroot}%{_datadir}/pixmaps
install -m 0644 xpm/icon-eboard.xpm %{buildroot}%{_datadir}/pixmaps/eboard.xpm

%files
%license COPYING
%doc ChangeLog README Documentation/Crafty.txt Documentation/FICS-Timeseal.txt Documentation/GNUChess4.txt Documentation/GNUChess5.txt Documentation/Scripts.txt Documentation/Sjeng.txt Documentation/Themes.txt
%{_bindir}/eboard
%{_bindir}/eboard-addtheme
%{_bindir}/eboard-config
%{_mandir}/man*/%{name}*.*.gz
%{_datadir}/eboard
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

%changelog
openSUSE Build Service is sponsored by