Group :: Games/Strategy
RPM: openttd
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define daterev 20230205
%define gitsnapshot 2ebc601d97aa431e5d8aebfe4a7bbfdabf29dc75
%define version_major 13
%define version_minor 0
Name: openttd
Version: %version_major.%version_minor
Release: alt1
Summary: An open source clone of the Microprose game "Transport Tycoon Deluxe"
License: GPLv2
Group: Games/Strategy
Url: http://www.openttd.org
Source: %name-%version.tar
Source1: %name.watch
Patch: %name-13.0-alt.patch
Requires: TiMidity++
Requires: fonts-ttf-dejavu
Obsoletes: %name-data < %EVR
Requires: openttd-3rd-party >= 0.6.1
BuildRequires: libSDL2-devel libpng-devel libfreetype-devel fontconfig-devel gcc-c++ liblzo2-devel liblzma-devel libxdg-basedir-devel libfluidsynth-devel
BuildRequires: cmake
%description
An open source clone of the Microprose game "Transport Tycoon Deluxe".
%prep
%setup
%patch -p1
%build
echo "%version %daterev 0 %gitsnapshot 1 1 `echo %daterev|cut -c 1-4`" >.ottdrev
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_DATADIR=share/games
%cmake_build
%install
%cmakeinstall_std
%files
%doc docs/* bin/scripts README.md known-bugs.txt changelog.txt COPYING.md
%_gamesbindir/%name
%_gamesdatadir/%name
%_datadir/applications/%name.desktop
%_iconsdir/hicolor/*/*/*.png
%_man6dir/*
%changelog
…
Full changelog you can see here
%define gitsnapshot 2ebc601d97aa431e5d8aebfe4a7bbfdabf29dc75
%define version_major 13
%define version_minor 0
Name: openttd
Version: %version_major.%version_minor
Release: alt1
Summary: An open source clone of the Microprose game "Transport Tycoon Deluxe"
License: GPLv2
Group: Games/Strategy
Url: http://www.openttd.org
Source: %name-%version.tar
Source1: %name.watch
Patch: %name-13.0-alt.patch
Requires: TiMidity++
Requires: fonts-ttf-dejavu
Obsoletes: %name-data < %EVR
Requires: openttd-3rd-party >= 0.6.1
BuildRequires: libSDL2-devel libpng-devel libfreetype-devel fontconfig-devel gcc-c++ liblzo2-devel liblzma-devel libxdg-basedir-devel libfluidsynth-devel
BuildRequires: cmake
%description
An open source clone of the Microprose game "Transport Tycoon Deluxe".
%prep
%setup
%patch -p1
%build
echo "%version %daterev 0 %gitsnapshot 1 1 `echo %daterev|cut -c 1-4`" >.ottdrev
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_DATADIR=share/games
%cmake_build
%install
%cmakeinstall_std
%files
%doc docs/* bin/scripts README.md known-bugs.txt changelog.txt COPYING.md
%_gamesbindir/%name
%_gamesdatadir/%name
%_datadir/applications/%name.desktop
%_iconsdir/hicolor/*/*/*.png
%_man6dir/*
%changelog
…
Full changelog you can see here