diff --git a/.gitignore b/.gitignore index b093809..c94e6d9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1 @@ -/lskat-16.04.0.tar.xz -/lskat-16.04.1.tar.xz -/lskat-16.04.2.tar.xz -/lskat-16.04.3.tar.xz -/lskat-16.07.80.tar.xz -/lskat-16.07.90.tar.xz -/lskat-16.08.0.tar.xz -/lskat-16.08.1.tar.xz -/lskat-16.08.2.tar.xz -/lskat-16.08.3.tar.xz -/lskat-16.12.1.tar.xz -/lskat-16.12.2.tar.xz -/lskat-16.12.3.tar.xz +/lskat-17.08.1.tar.xz diff --git a/lskat.spec b/lskat.spec index cff988b..bf93e84 100644 --- a/lskat.spec +++ b/lskat.spec @@ -1,11 +1,11 @@ Name: lskat Summary: A fun and engaging card game -Version: 16.12.3 -Release: 3%{?dist} +Version: 17.08.1 +Release: 1%{?dist} License: LGPLv2 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,8 +16,40 @@ 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: kdelibs4-devel >= 4.14 -BuildRequires: libkdegames4-devel +BuildRequires: libappstream-glib + +BuildRequires: extra-cmake-modules +BuildRequires: cmake(KF5Completion) +BuildRequires: cmake(KF5Config) +BuildRequires: cmake(KF5ConfigWidgets) +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5Crash) +BuildRequires: cmake(KF5DBusAddons) +BuildRequires: cmake(KF5Declarative) +BuildRequires: cmake(KF5DocTools) +BuildRequires: cmake(KF5GuiAddons) +BuildRequires: cmake(KF5IconThemes) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5NewStuff) +BuildRequires: cmake(KF5TextWidgets) +BuildRequires: cmake(KF5WidgetsAddons) +BuildRequires: cmake(KF5XmlGui) + +BuildRequires: cmake(Qt5Qml) +BuildRequires: cmake(Qt5Quick) +BuildRequires: cmake(Qt5QuickWidgets) +BuildRequires: cmake(Qt5PrintSupport) +BuildRequires: cmake(Qt5OpenGL) +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(Qt5Svg) +BuildRequires: cmake(Qt5Test) + +%global majmin_ver %(echo %{version} | cut -d. -f1,2) +BuildRequires: libkdegames-devel >= %{majmin_ver} +BuildRequires: cmake(KF5KDEGames) >= 4.9.0 + +BuildRequires: cmake(Phonon4Qt5) %description Lieutenant Skat (from German Offiziersskat) is a fun and engaging card @@ -32,7 +64,7 @@ or builtin artificial intelligence. %build mkdir %{_target_platform} pushd %{_target_platform} -%{cmake_kde4} .. +%{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} @@ -41,34 +73,32 @@ make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +%find_lang %{name} --all-name --with-html -%check -desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{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 +%check +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 -%posttrans -gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || : -%files -%doc AUTHORS +%files -f %{name}.lang %license COPYING* -%{_kde4_docdir}/HTML/en/%{name}/ -%{_kde4_bindir}/%{name} -%{_kde4_datadir}/applications/kde4/%{name}.desktop -%{_kde4_iconsdir}/hicolor/*/*/* -%{_kde4_appsdir}/%{name}/ +%doc README +%{_kf5_bindir}/%{name}* +#{_kf5_sysconfdir}/xdg/%{name}* +%{_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}/ +#{_kf5_datadir}/config.kcfg/%{name}.kcfg +#{_kf5_datadir}/knotifications5/%{name}.notifyrc %changelog +* Wed Sep 27 2017 Rex Dieter - 17.08.1-1 +- 17.08.1, kf5 port + * 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 8e6f9cc..234aca1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lskat-16.12.3.tar.xz) = 5a169d3e03e957fd6e92cb5205210595c92e6260bbc34401f7a4a75cf9d9f312c55e5160daf581ea4d5bb59a5997a5585377fddd44c8bb7b28b53bcea16d1d77 +SHA512 (lskat-17.08.1.tar.xz) = c5a846155c3cc934b89ff81acea541bee271aef342194c7d1c7d5ecf58496a42502600462730ef937290f367462f4e5ac353c5f76ee1bd46b570734b2f042a30