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