[ksnapshot] stable/unstable snippet
Jaroslav Reznik
jreznik at fedoraproject.org
Mon Jan 23 09:59:19 UTC 2012
commit 3b9cc0e0ca57f1112b629cb8d5b568906ceb537f
Author: Jaroslav Reznik <jreznik at redhat.com>
Date: Mon Jan 23 10:59:13 2012 +0100
stable/unstable snippet
ksnapshot.spec | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ksnapshot.spec b/ksnapshot.spec
index 56f5077..4ff9dd6 100644
--- a/ksnapshot.spec
+++ b/ksnapshot.spec
@@ -4,8 +4,14 @@ Version: 4.8.0
Release: 1%{?dist}
License: GPLv2+
-URL: https://projects.kde.org/projects/kde/kdegraphics/ksnapshot
-Source0: http://download.kde.org/unstable/%{version}/src/%{name}-%{version}.tar.bz2
+URL: https://projects.kde.org/projects/kde/kdegraphics/ksnapshot
+%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
BuildRequires: desktop-file-utils
BuildRequires: kdelibs4-devel >= %{version}
More information about the scm-commits
mailing list