File freerct.spec of Package freerct
#
# spec file for package freerct
#
# Copyright (c) 2022 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: freerct
Version: 0.1
Release: 0
Summary: Theme park construction game
License: GPL-2.0-only
Group: Amusements/Games/Strategy/Other
URL: https://freerct.net/
Source: https://github.com/FreeRCT/FreeRCT/archive/refs/tags/%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- https://github.com/FreeRCT/FreeRCT/pull/303
Patch0: reproducible.patch
BuildRequires: cmake >= 3.9
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: flex
BuildRequires: bison
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(SDL2_ttf)
%description
FreeRCT aims to be a free and open source game which captures the look,
feel and gameplay of the popular games RollerCoaster Tycoon 1 and 2.
%prep
%autosetup -p1 -n FreeRCT-%{version}
%build
%cmake -DVERSION_STRING=%{version} -DDEBIAN_PACKAGING=OFF -DRELEASE=ON
%make_build
%install
%cmake_install
# Debian leftovers
rm -rf %{buildroot}%{_datadir}/doc/
%fdupes %{buildroot}%{_datadir}/%{name}
%files
%license LICENSE-gpl-2.0.txt
%doc CONTRIBUTORS.rst README.rst
%{_bindir}/freerct
%{_datadir}/metainfo/net.freerct.FreeRCT.metainfo.xml
%{_datadir}/applications/net.freerct.FreeRCT.desktop
%{_datadir}/icons/hicolor/256x256/apps/net.freerct.FreeRCT.png
%{_datadir}/freerct
%changelog