[marble] stable/unstable snippet

Jaroslav Reznik jreznik at fedoraproject.org
Mon Jan 23 09:07:20 UTC 2012


commit 540350ec7756f4e419cc51eecb88c4c3c0188622
Author: Jaroslav Reznik <jreznik at redhat.com>
Date:   Mon Jan 23 10:07:07 2012 +0100

    stable/unstable snippet

 marble.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/marble.spec b/marble.spec
index caf8d44..e7b018d 100644
--- a/marble.spec
+++ b/marble.spec
@@ -8,7 +8,13 @@ Release: 1%{?dist}
 License: LGPLv2+
 #URL:     https://projects.kde.org/projects/kde/kdeedu/marble
 URL:     http://edu.kde.org/marble/
-Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2
+%global revision %(echo %{version} | cut -d. -f3)
+%if %{revision} >= 50
+%global stable unstable
+%else
+%global stable stable
+%endif
+Source0: ftp://ftp.kde.org/pub/kde/%{stable}/%{version}/src/%{name}-%{version}.tar.bz2
 
 ## upstream patches
 


More information about the scm-commits mailing list