[kdepim-runtime: 3/3] Source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 13:44:02 UTC 2012


commit 515cffd8d74f143074444011e60a77ff24ad8a56
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 07:43:31 2012 -0600

    Source0 snippet

 kdepim-runtime.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/kdepim-runtime.spec b/kdepim-runtime.spec
index 4f854da..a45178c 100644
--- a/kdepim-runtime.spec
+++ b/kdepim-runtime.spec
@@ -10,8 +10,13 @@ Release: 1%{?dist}
 License: GPLv2
 Group: Applications/Productivity
 URL: http://www.kde.org/
-Source0: http://download.kde.org/unstable/%{version}/src/%{name}-%{version}.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+%global revision %(echo %{version} | cut -d. -f3)
+%if %{revision} >= 50
+%global stable unstable
+%else
+%global stable stable
+%endif
+Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.bz2
 
 # show the Akonadi KCM in System Settings (#565420)
 Patch0: kdepim-runtime-4.4.93-show_akonadi_kcm.patch


More information about the scm-commits mailing list