From 7aa4fb8f94139c313c9d6a4f16a246c05ae0da49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Mon, 3 Nov 2014 13:30:28 +0100 Subject: [PATCH] Clean up spec file, autodetect stable/unstable download folder --- kf5-kactivities.spec | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/kf5-kactivities.spec b/kf5-kactivities.spec index 55ca3bb..b0d566d 100644 --- a/kf5-kactivities.spec +++ b/kf5-kactivities.spec @@ -12,10 +12,13 @@ Release: 1%{?dist} License: GPLv2+ and LGPLv2+ URL: http://www.kde.org -# git archive --format=tar --prefix=%{name}-%{version}-%{snapshot}/ \ -# --remote=git://anongit.kde.org/kactivities.git | \ -# bzip2 -c > ${name}-%{version}-%{snapshot}.tar.bz2 -Source0: http://download.kde.org/stable/frameworks/%{version}/%{framework}-%{version}.tar.xz +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/frameworks/%{version}/%{framework}-%{version}.tar.xz BuildRequires: boost-devel @@ -45,14 +48,12 @@ Provides: kactivities = %{version}-%{release} A KDE Frameworks 5 Tier 3 API for using and interacting with Activities as a consumer, application adding information to them or as an activity manager. - %package libs Summary: Libraries for KActivities framework Requires: kf5-filesystem %description libs %{summary}. - %package devel Summary: Developer files for %{name}-libs Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -85,9 +86,6 @@ rm -r %{buildroot}%{_kf5_qtplugindir}/*.so rm -rf %{buildroot}/%{_kf5_datadir}/kf5/kactivitymanagerd %endif -%post libs -p /sbin/ldconfig -%postun libs -p /sbin/ldconfig - %if 0%{?build_main_package} %files @@ -101,6 +99,9 @@ rm -rf %{buildroot}/%{_kf5_datadir}/kf5/kactivitymanagerd %{_kf5_datadir}/kf5/kactivitymanagerd/ %endif +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + %files libs -f kactivities5_qt.lang %if !0%{?build_main_package} %doc README README.md README.packagers README.developers MAINTAINER