From 23c4c50facf0b84526fe1e2667843cf85808ae940ba137efb75588d7a2fbb7cb Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Fri, 7 Aug 2015 09:51:59 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/picmi?expand=0&rev=18 --- picmi.spec | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/picmi.spec b/picmi.spec index b4debde..9c6868e 100644 --- a/picmi.spec +++ b/picmi.spec @@ -17,8 +17,21 @@ Name: picmi -BuildRequires: libkdegames4-devel -BuildRequires: xz +BuildRequires: libkdegames-devel +BuildRequires: extra-cmake-modules +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5Svg) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5QuickWidgets) +BuildRequires: pkgconfig(Qt5Test) +BuildRequires: kcoreaddons-devel +BuildRequires: kdeclarative-devel +BuildRequires: ki18n-devel +BuildRequires: kdelibs4support-devel +BuildRequires: knewstuff-devel +BuildRequires: kxmlgui-devel +BuildRequires: update-desktop-files Summary: Nonogram Logic game License: GPL-2.0+ Group: Amusements/Games/Board/Logic @@ -27,7 +40,6 @@ Version: 15.07.90 Release: 0 Source0: picmi-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%kde4_runtime_requires %description A nonogram logic game for KDE @@ -37,14 +49,12 @@ A nonogram logic game for KDE %setup -q -n picmi-%{version} %build - %cmake_kde4 -d build + %cmake_kf5 -d build %make_jobs %install - cd build - %makeinstall - %suse_update_desktop_file -r picmi Game LogicGame - %kde_post_install + %kf5_makeinstall -C build + %suse_update_desktop_file -r org.kde.picmi Game LogicGame %clean rm -rf $RPM_BUILD_ROOT @@ -52,12 +62,14 @@ A nonogram logic game for KDE %files %defattr(-,root,root) %doc COPYING -%{_kde4_bindir}/picmi -%{_kde4_htmldir}/en/picmi/ -%{_kde4_applicationsdir}/picmi.desktop -%dir %{_kde4_iconsdir}/hicolor/256x256 -%dir %{_kde4_iconsdir}/hicolor/256x256/apps -%{_kde4_iconsdir}/hicolor/*/apps/picmi.* -%{_kde4_appsdir}/picmi/ +%{_kf5_bindir}/picmi +%{_kf5_htmldir}/en/picmi/ +%{_kf5_applicationsdir}/org.kde.picmi.desktop +%dir %{_kf5_iconsdir}/hicolor/256x256 +%dir %{_kf5_iconsdir}/hicolor/256x256/apps +%{_kf5_iconsdir}/hicolor/*/apps/picmi.* +%{_kf5_appsdir}/picmi/ +%_kf5_kxmlguidir/picmi/ +%{_datadir}/appdata/ %changelog