File berserk.spec of Package berserk

#
# spec file for package berserk
#
# Copyright (c) 2024 Malcolm Lewis <malcolmlewis@opensuse.org>
#
# 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:           berserk
Version:        13
Release:        0
Summary:        A UCI chess engine written in C
License:        GPL-3.0-or-later
URL:            https://github.com/jhonnold/berserk
Source0:        %{name}-%{version}.tar.xz
## Needed for testing.
Source1:        berserk-d43206fe90e4.nn
BuildRequires:  clang
BuildRequires:  llvm-gold
BuildRequires:  llvm

%description
Berserk Chess Engine - A UCI chess engine written in C.

%prep
%autosetup
cp %{S:1} src/

%build
pushd src
%make_build pgo
popd

%install
install -d 0755 %{buildroot}%{_bindir}
install -m 0755 src/%{name} %{buildroot}%{_bindir}/%{name}

%files
%doc README.md
%license LICENSE
%{_bindir}/berserk

%changelog

openSUSE Build Service is sponsored by