[kolourpaint] stable/unstable snippet

Jaroslav Reznik jreznik at fedoraproject.org
Mon Jan 23 09:39:55 UTC 2012


commit 428f232cc97053c81de98e25595c7f803d7cad14
Author: Jaroslav Reznik <jreznik at redhat.com>
Date:   Mon Jan 23 10:39:50 2012 +0100

    stable/unstable snippet

 kolourpaint.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/kolourpaint.spec b/kolourpaint.spec
index d80e819..f52e102 100644
--- a/kolourpaint.spec
+++ b/kolourpaint.spec
@@ -5,7 +5,13 @@ Release: 1%{?dist}
 
 License: BSD 
 URL:     https://projects.kde.org/projects/kde/kdegraphics/kolourpaint
-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
 
 BuildRequires: desktop-file-utils
 BuildRequires: kdelibs4-devel >= %{version}


More information about the scm-commits mailing list