File freeserf.spec of Package freeserf

#
# spec file for package freeserf
#
# Copyright (c) 2020 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/
#


Summary:        A modern Settlers 1 reimplementation
License:        GPL-3.0-or-later
Group:          Amusements/Games/Strategy/Real Time
Name:           freeserf
Version:        0.3
Release:        0
Source:         https://github.com/freeserf/freeserf/archive/v%{version}.tar.gz
URL:            http://jonls.dk/freeserf/
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(libxmp)
BuildRequires:  pkgconfig(sdl2)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A faithful clone of the simulation game The Settlers 1 aka Serf City.

NOTE: Original game files are needed.

%prep
%setup -q

%build
%cmake -DENABLE_TESTS=OFF
make %{?_smp_mflags}

%install
%cmake_install
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_prefix}/FreeSerf %{buildroot}%{_bindir}/%{name}

%files
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by