diff --git a/.gitignore b/.gitignore index 9431db4..e30dd65 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1 @@ -/kgoldrunner-16.04.0.tar.xz -/kgoldrunner-16.04.1.tar.xz -/kgoldrunner-16.04.2.tar.xz -/kgoldrunner-16.04.3.tar.xz -/kgoldrunner-16.07.80.tar.xz -/kgoldrunner-16.07.90.tar.xz -/kgoldrunner-16.08.0.tar.xz -/kgoldrunner-16.08.1.tar.xz -/kgoldrunner-16.08.2.tar.xz -/kgoldrunner-16.08.3.tar.xz -/kgoldrunner-16.12.1.tar.xz -/kgoldrunner-16.12.2.tar.xz -/kgoldrunner-16.12.3.tar.xz +/kgoldrunner-17.08.1.tar.xz diff --git a/kgoldrunner.spec b/kgoldrunner.spec index 8fab1be..7c3fb13 100644 --- a/kgoldrunner.spec +++ b/kgoldrunner.spec @@ -1,11 +1,11 @@ Name: kgoldrunner Summary: A game of action and puzzle solving -Version: 16.12.3 -Release: 3%{?dist} +Version: 17.08.1 +Release: 1%{?dist} License: GPLv2+ and GFDL -URL: https://quickgit.kde.org/?p=%{name}.git +URL: https://cgit.kde.org/%{name}.git %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 @@ -16,7 +16,31 @@ URL: https://quickgit.kde.org/?p=%{name}.git Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: desktop-file-utils -BuildRequires: libkdegames4-devel +BuildRequires: libappstream-glib + +BuildRequires: extra-cmake-modules +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5Config) +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5Crash) +BuildRequires: cmake(KF5DBusAddons) +BuildRequires: cmake(KF5DocTools) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5XmlGui) + +%global majmin_ver %(echo %{version} | cut -d. -f1,2) +BuildRequires: libkdegames-devel >= %{majmin_ver} +BuildRequires: cmake(KF5KDEGames) >= 4.9.0 + +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(Qt5Qml) +BuildRequires: cmake(Qt5Quick) +BuildRequires: cmake(Qt5QuickWidgets) +BuildRequires: cmake(Qt5Svg) +BuildRequires: cmake(Qt5Test) + +BuildRequires: cmake(Phonon4Qt5) %description KGoldrunner is a game of action and puzzle solving. Run through the maze, @@ -30,7 +54,7 @@ dodge your enemies, collect all the gold and climb up to the next level. %build mkdir %{_target_platform} pushd %{_target_platform} -%{cmake_kde4} .. +%{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} @@ -39,73 +63,30 @@ make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} -# Register as an application to be visible in the software center -# -# NOTE: It would be *awesome* if this file was maintained by the upstream -# project, translated and installed into the right place during `make install`. -# -# See http://www.freedesktop.org/software/appstream/docs/ for more details. -# -mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata -cat > $RPM_BUILD_ROOT%{_datadir}/appdata/KGoldrunner.appdata.xml < - - - - KGoldrunner.desktop - CC0-1.0 - 2D action puzzle platform game - -

- KGoldrunner is a two-dimensional side view action puzzle game where you play - as a golden runner that collects diamonds. - The player leads the runner (either with the keyboard or the mouse) - through a series of levels with ladders, obstacles and other puzzles to - collect all the diamonds and escape the maze. -

-
- https://projects.kde.org/projects/kde/kdegames/kgoldrunner - - - https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/KGoldrunner/a.png - - -
-EOF +%find_lang %{name} --all-name --with-html %check -desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/*.desktop +appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/org.kde.%{name}.appdata.xml ||: +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop -%post -touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || : - -%postun -if [ $1 -eq 0 ] ; then -touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null -gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : -fi - -%posttrans -gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : - -%files +%files -f %{name}.lang %license COPYING* %doc README -%{_kde4_bindir}/%{name}* -%{_kde4_datadir}/appdata/*.appdata.xml -%{_kde4_datadir}/applications/kde4/*.desktop -%{_kde4_configdir}/%{name}.knsrc -%{_kde4_iconsdir}/hicolor/*/*/* -%{_kde4_appsdir}/%{name}/ -%{_kde4_docdir}/HTML/en/%{name}/ +%{_kf5_bindir}/%{name}* +%{_kf5_sysconfdir}/xdg/%{name}.knsrc +%{_kf5_datadir}/appdata/org.kde.%{name}.appdata.xml +%{_kf5_datadir}/applications/org.kde.%{name}.desktop +%{_kf5_datadir}/icons/hicolor/*/*/* +%{_kf5_datadir}/kxmlgui5/%{name}/ +%{_kf5_datadir}/%{name}/ %changelog +* Wed Sep 27 2017 Rex Dieter - 17.08.1-1 +- 17.08.1, kf5 version + * Thu Aug 03 2017 Fedora Release Engineering - 16.12.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/sources b/sources index bc7e313..fabf5f6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (kgoldrunner-16.12.3.tar.xz) = 82bde84e3b2f1edc27cc826a5c3624a1861da3343f176a35cccfde1b9dd96205fc59098d72270e69c371c08b460852ac32eca7d022223aeff469580541fc9139 +SHA512 (kgoldrunner-17.08.1.tar.xz) = f6c6b90ced8f1052239c767fdf18ccfd8d08a263f1941e8c509e2b173f4f6aed09829d4079224c9ec34a144db1ec1493f5959b4b31f34c3b0323bfd4d86f8904