File octochess.spec of Package octochess

#
# spec file for package octochess
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


Name:           octochess
Version:        @SERVICE@
Release:        0
Summary:        Free open source chess engine
License:        GPL-2.0-or-later
Group:          Amusements/Games/Board/Chess
URL:            http://octochess.org
Source:         %{name}-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel-static
Requires:       sqlite3
Suggests:       xboard

%description
Octochess is a free open source chess engine distributed under the terms and
conditions of the GNU General Public License (GPL). Octochess has been
created by Tim Kosse.

Features
 - Cross-platform
 - Both CECP and UCI protocol
 - Up to 64 CPU cores
 - Multi-PV analysis mode
 - Include/Exclude moves from analysis
 - Self-generated opening book

%prep
%setup -q

%build
#export CFLAGS="%%{optflags} -fPIE"
#export CXXFLAGS="%%{optflags} -fPIE"
#export LDFLAGS="-pie"
make %{?_smp_mflags} CFLAGS="%{optflags} -fPIE" CXXFLAGS="%{optflags} -fPIE" LDFLAGS="-pie"

%install
#%%make_install
install -Dm 0755 bookgen -t %{buildroot}%{_bindir}/
install -Dm 0755 %{name} -t %{buildroot}%{_bindir}/
install -Dm 0644 logo.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg

%files
%doc AUTHORS NEWS README
%{_bindir}/bookgen
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.svg
%license COPYING

%changelog
openSUSE Build Service is sponsored by