From f96f4e17caed3b957c8d25c4364fdb757d5217361f796e10c6aa4f01e315ee26 Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Tue, 15 Dec 2015 19:15:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/ksystemlog?expand=0&rev=21 --- ksystemlog.spec | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/ksystemlog.spec b/ksystemlog.spec index 4346603..dac80e2 100644 --- a/ksystemlog.spec +++ b/ksystemlog.spec @@ -17,8 +17,14 @@ Name: ksystemlog -BuildRequires: libkde4-devel +BuildRequires: extra-cmake-modules +BuildRequires: kdelibs4support-devel BuildRequires: oxygen-icon-theme-large +BuildRequires: update-desktop-files +BuildRequires: xz +BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Test) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0 Url: http://www.kde.org Version: 15.12.0 Release: 0 @@ -27,7 +33,6 @@ License: GPL-2.0 Group: System/Monitoring Source0: %{name}-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%kde4_runtime_requires %description This program is developed for use by beginner users, who do not know @@ -41,15 +46,12 @@ want to quickly see problems occurring on their server. %setup -q -n %{name}-%{version} %build - %cmake_kde4 -d build + %cmake_kf5 -d build %make_jobs %install - cd build - %makeinstall - cd .. - %suse_update_desktop_file ksystemlog System Monitor - %kde_post_install + %kf5_makeinstall -C build + %suse_update_desktop_file org.kde.ksystemlog System Monitor for i in {16,22,32,48,64,128}; do mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps cp /usr/share/icons/oxygen/"$i"x"$i"/apps/utilities-log-viewer.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/; @@ -65,10 +67,12 @@ want to quickly see problems occurring on their server. %files %defattr(-,root,root) %doc COPYING -%{_kde4_bindir}/ksystemlog -%{_kde4_applicationsdir}/ksystemlog.desktop -%{_kde4_htmldir}/en/ksystemlog/ -%{_kde4_appsdir}/ksystemlog/ -%{_kde4_iconsdir}/hicolor/*/apps/utilities-log-viewer.* +%{_kf5_bindir}/ksystemlog +%{_kf5_applicationsdir}/*.desktop +%dir %{_kf5_htmldir}/en +%dir %{_kf5_htmldir} +%doc %{_kf5_htmldir}/en/*/ +%{_kf5_sharedir}/kxmlgui5/ +%{_kf5_iconsdir}/hicolor/*/*/*.png %changelog