#define git 20240218 %define gitbranch release/24.02 %define gitbranchd %(echo %{gitbranch} |sed -e "s,/,-,g") Summary: A game of action and puzzle solving Name: kgoldrunner Version: 25.12.2 Release: %{?git:0.%{git}.}1 Group: Graphical desktop/KDE License: GPLv2 and LGPLv2 and GFDL Url: https://games.kde.org/game.php?game=kgoldrunner %define stable %([ "`echo %{version} |cut -d. -f3`" -ge 80 ] && echo -n un; echo -n stable) %if 0%{?git:1} Source0: https://invent.kde.org/games/kgoldrunner/-/archive/%{gitbranch}/kgoldrunner-%{gitbranchd}.tar.bz2#/kgoldrunner-%{git}.tar.bz2 %else Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/kgoldrunner-%{version}.tar.xz %endif BuildRequires: cmake(Qt6Widgets) BuildRequires: cmake(Qt6Core) BuildRequires: cmake(Qt6Gui) BuildRequires: cmake(Qt6Widgets) BuildRequires: cmake(Qt6Qml) BuildRequires: cmake(Qt6Quick) BuildRequires: cmake(Qt6QuickWidgets) BuildRequires: cmake(Qt6Svg) BuildRequires: cmake(Qt6Test) BuildRequires: cmake(KF6CoreAddons) BuildRequires: cmake(KF6Config) BuildRequires: cmake(KF6ConfigWidgets) BuildRequires: cmake(KF6Crash) BuildRequires: cmake(KF6DBusAddons) BuildRequires: cmake(KF6DocTools) BuildRequires: cmake(KF6I18n) BuildRequires: cmake(KF6KIO) BuildRequires: cmake(KF6WidgetsAddons) BuildRequires: cmake(KF6XmlGui) BuildRequires: cmake(KDEGames6) BuildRequires: cmake(Phonon4Qt6) %rename plasma6-kgoldrunner BuildSystem: cmake BuildOption: -DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=ON %description KGoldrunner is an action game where the hero runs through a maze, climbs stairs, dig holes and dodges enemies in order to collect all the gold nuggets and escape to the next level. Your enemies are also after the gold. Worse still, they are after you!. %files -f %{name}.lang %{_datadir}/qlogging-categories6/kgoldrunner.categories %{_datadir}/qlogging-categories6/kgoldrunner.renamecategories %{_bindir}/kgoldrunner %{_datadir}/kgoldrunner %{_iconsdir}/hicolor/*/apps/kgoldrunner.png %{_datadir}/knsrcfiles/kgoldrunner.knsrc %{_datadir}/applications/*.desktop %{_datadir}/metainfo/*.xml