## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global appname CorsixTH %global uuid com.corsixth.%{appname} %global tarball_version %%(echo %{version} | tr '~' '-') Name: corsix-th Version: 0.67 Release: %autorelease Summary: Open source clone of Theme Hospital # For a breakdown of the licensing, see LICENSE.txt # The entire source code is MIT except: # BSD: CMake scripts # GPLv3+: SpriteEncoder License: MIT and BSD and GPLv3+ URL: https://github.com/CorsixTH/CorsixTH Source0: %{url}/archive/v%{tarball_version}/%{name}-%{tarball_version}.tar.gz BuildRequires: cmake >= 3.10 BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: libappstream-glib BuildRequires: lua-devel >= 5.4.2 BuildRequires: ninja-build BuildRequires: pkgconfig(SDL2_mixer) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(sdl2) %if 0%{?fedora} <= 33 BuildRequires: auto-destdir %endif Requires: %{name}-data Requires: hicolor-icon-theme Requires: lua-filesystem Requires: lua-lpeg # For music support Recommends: fluid-soundfont-lite-patches # For extracting GOG version Recommends: innoextract %global _description %{expand: CorsixTH aims to reimplement the game engine of Theme Hospital, and be able to load the original game data files. This means that you will need a purchased copy of Theme Hospital, or a copy of the demo, in order to use CorsixTH. After most of the original engine has been reimplemented in open source code, the project will serve as a base from which extensions and improvements to the original game can be made. * To play CorsixTH, you will need either the Demo: https://th.corsix.org/Demo.zip * or the full game of Theme Hospital, available for example at: https://www.gog.com/game/theme_hospital} %description %{_description} %package data Summary: Data files for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description data %{_description} Package contains data files for %{name}. %prep %autosetup -n %{appname}-%{tarball_version} -p1 %build %cmake \ -G Ninja \ -DWITH_MOVIES=0 \ %{nil} %cmake_build %install %cmake_install # Remove and catch license file by RPM macros rm %{buildroot}%{_datadir}/%{name}/LICENSE.txt %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files %doc README.md README.txt %license LICENSE.txt %{_bindir}/%{name} %{_datadir}/applications/*.desktop %{_mandir}/man6/%{name}.6* %{_metainfodir}/*.xml %files data %license LICENSE.txt %{_datadir}/%{name}/ %{_datadir}/icons/hicolor/scalable/apps/*.svg %changelog ## START: Generated by rpmautospec * Wed Jul 17 2024 Fedora Release Engineering - 0.67-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 0.67-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0.67-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Aug 06 2023 Artem Polishchuk - 0.67-1 - chore: Update to 0.67 * Sat Jul 22 2023 Artem Polishchuk - 0.67~rc1-1 - chore: Update to 0.67-rc1 * Wed Jul 19 2023 Fedora Release Engineering - 0.67~beta1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jun 25 2023 Artem Polishchuk - 0.67~beta1-1 - chore: Update to 0.67-beta1 * Thu Jan 19 2023 Fedora Release Engineering - 0.66-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering - 0.66-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Jun 26 2022 Artem Polishchuk - 0.66-4 - chore(update): 0.66 * Tue Jun 21 2022 Artem Polishchuk - 0.66-0.2.rc1 - chore(update): 0.66-rc1 * Tue May 24 2022 Artem Polishchuk - 0.66-0.1.beta1 - chore(update): 0.66-beta1 * Wed Jan 19 2022 Fedora Release Engineering - 0.65.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 0.65.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jul 19 2021 Artem Polishchuk - 0.65.1-1 - build(update): 0.65.1 * Sat Jun 19 2021 Artem Polishchuk - 0.65-2 - build(update): 0.65 (new, re-tagged upstream version) * Thu Jun 10 2021 Artem Polishchuk - 0.65-1 - build(update): 0.65 * Sat May 29 2021 Artem Polishchuk - 0.65-0.1.beta2 - build(update): 0.65-beta2 * Tue May 25 2021 Artem Polishchuk - 0.65-0.1.beta1 - build(update): 0.65-beta1 * Sun May 23 2021 Artem Polishchuk - 0.64-8 - fix: Broken music | rh#1963368 * Sat May 22 2021 Artem Polishchuk - 0.64-7 - fix: rh#1963261 - style: Minor Spec file improvements * Tue Jan 26 2021 Fedora Release Engineering - 0.64-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Aug 05 2020 Artem Polishchuk - 0.64-5 - Build with 'compat-lua-devel' and fix FTBFS-33 * Sat Aug 01 2020 Fedora Release Engineering - 0.64-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Artem Polishchuk - 0.64-3 - Rebuild with out-of-source builds new CMake macros * Mon Jul 27 2020 Fedora Release Engineering - 0.64-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 15 2020 Artem Polishchuk - 0.64-1 - Update to 0.64 * Mon Jun 08 2020 Artem Polishchuk - 0.64-0.3rc2 - Update to 0.64-rc2 * Thu Jun 04 2020 Artem Polishchuk - 0.64-0.2rc1 - Add patch: Fix #1627 by using static linking for libRnc | GH-1627 * Sun May 31 2020 Artem Polishchuk - 0.64-0.1rc1 - Update to 0.64-rc1 * Tue Jan 28 2020 Fedora Release Engineering - 0.63-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 0.63-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun May 26 2019 Artem Polishchuk - 0.63-1 - Update to 0.63 - Add *fluid-soundfont-lite-patches* package as Recommends for music support * Tue May 14 2019 Artem Polishchuk - 0.63-0.6.rc1 - Update to 0.63rc1 * Mon Apr 15 2019 Artem Polishchuk - 0.63-0.4.beta1 - Initial package ## END: Generated by rpmautospec