From 08ed7eeddcf4c2e223ceb60a521fc8fcc2d6e4b0 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Jan 01 2016 05:16:17 +0000 Subject: .spec cosmetics, use %majmin_ver for plasma-related deps, update URL --- diff --git a/ksysguard.spec b/ksysguard.spec index 0027466..596df34 100644 --- a/ksysguard.spec +++ b/ksysguard.spec @@ -1,10 +1,10 @@ -Name: ksysguard +Name: ksysguard Version: 5.5.2 Release: 1%{?dist} -Summary: KDE Process Management application +Summary: KDE Process Management application -License: GPLv2 -URL: https://projects.kde.org/projects/kde/workspace/ksysguard +License: GPLv2 +URL: https://projects.kde.org/ksysguard %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 @@ -14,6 +14,8 @@ URL: https://projects.kde.org/projects/kde/workspace/ksysguard %endif Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz +%global majmin_ver %(echo %{version} | cut -d. -f1,2) + BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtscript-devel BuildRequires: qt5-qtwebkit-devel @@ -30,7 +32,7 @@ BuildRequires: kf5-kiconthemes-devel BuildRequires: kf5-kdelibs4support-devel BuildRequires: kf5-kdoctools-devel -BuildRequires: libksysguard-devel +BuildRequires: libksysguard-devel >= %{majmin_ver} BuildRequires: lm_sensors-devel BuildRequires: desktop-file-utils @@ -47,25 +49,29 @@ Summary: Performance monitor daemon %description -n ksysguardd %{summary}. + %prep %setup -q -n %{name}-%{version} -%build -mkdir -p %{_target_platform} +%build +mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd make %{?_smp_mflags} -C %{_target_platform} + %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang ksysguard5 --with-qt --with-kde --all-name + %check desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.ksysguard.desktop + %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : @@ -79,12 +85,14 @@ fi /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f ksysguard5.lang -%doc COPYING COPYING.DOC README +%license COPYING COPYING.DOC +%doc README %{_bindir}/ksysguard %{_kf5_libdir}/libkdeinit5_ksysguard.so %{_datadir}/ksysguard %config %{_sysconfdir}/xdg/ksysguard.knsrc %{_datadir}/applications/org.kde.ksysguard.desktop +## TODO: %%lang'ify %{_docdir}/HTML/*/ksysguard %{_datadir}/icons/hicolor/*/apps/*.png %{_kf5_datadir}/knotifications5/ksysguard.notifyrc @@ -96,6 +104,9 @@ fi %changelog +* Thu Dec 31 2015 Rex Dieter 5.5.2-1 +- .spec cosmetics, use %%majmin_ver for plasma-related deps, update URL + * Thu Dec 31 2015 Rex Dieter - 5.5.2-1 - 5.5.2