File scid_vs_pc.spec of Package scid_vs_pc
#
# spec file for package scid_vs_pc
#
# Copyright (c) 2024 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: scid_vs_pc
Version: 4.25
Release: 0
Summary: Chess Database application
License: GPL-2.0-only
Group: Amusements/Games/Board/Chess
URL: https://scidvspc.sourceforge.net/
Source0: %{name}-%{version}.tgz
Source99: %{name}.rpmlintrc
Patch0: %{name}-fix-world-writeable.patch
Patch1: %{name}-strip-binaries.patch
Patch2: %{name}-no-install-fonts.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: tcl-devel
BuildRequires: tk-devel
BuildRequires: update-desktop-files
Requires: scidchess-fonts
Requires: tcl
Requires: tk
Suggests: stockfish
Conflicts: scid
%lang_package
%description
Shane's Chess Information Database is a powerful Chess Toolkit, with which one
can create huge databases, run chess engines, and play casual games against the
computer or online with the Free Internet Chess Server.
Scid vs. PC began with bug-fixes for the computer-versus-player features of Scid
(hence the name), but has evolved into a solid alternative with many new features
and interfaces.
%prep
%autosetup
## Remove unneeded exec bit for doc
chmod -x doc/ScidvsMac-HowTo.rtfd.tgz
%build
## Non conformant configure
./configure BINDIR=%{_bindir} SHAREDIR=%{_datadir}/scid/
%make_build
%install
%make_install
## Desktop file
%suse_update_desktop_file -c %{name} "SCID vs PC" "Chess Database Application" scid scid Game
mkdir -p %{buildroot}%{_datadir}/icons/
install -m 0664 icons/scid.png %{buildroot}%{_datadir}/icons/
## Fix duplicates
%fdupes %{buildroot}
## Already set as docs
rm -f %{buildroot}%{_datadir}/scid/books/readme.txt
%files lang
%{_datadir}/scid/lang/
%files
%{_bindir}/scid
%{_bindir}/fruit
%{_bindir}/pgnscid
%{_bindir}/phalanx
%{_bindir}/sc_remote
%{_bindir}/scidlet
%{_bindir}/scidpgn
%{_bindir}/scidt
%{_bindir}/scmerge
%{_bindir}/tcscid
%{_bindir}/tkscid
%dir %{_datadir}/scid/
%{_datadir}/scid/spelling.ssp
%{_datadir}/scid/data
%{_datadir}/scid/books
%{_datadir}/scid/bases
%{_datadir}/scid/html
%{_datadir}/scid/bitmaps*
%{_datadir}/scid/engines/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/scid.png
%license COPYING
%doc README.txt README.html doc/*
%doc books/readme.txt
%changelog