[okular] stable/unstable snippet

Jaroslav Reznik jreznik at fedoraproject.org
Mon Jan 23 09:34:06 UTC 2012


commit 988616db649a4d1e54a1ca1616ef501116245a77
Author: Jaroslav Reznik <jreznik at redhat.com>
Date:   Mon Jan 23 10:34:00 2012 +0100

    stable/unstable snippet

 okular.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/okular.spec b/okular.spec
index c44ec3f..f58477b 100644
--- a/okular.spec
+++ b/okular.spec
@@ -5,7 +5,13 @@ Release: 1%{?dist}
 
 License: GPLv2
 URL:     https://projects.kde.org/projects/kde/kdegraphics/okular
-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
 
 ## upstreamable patches
 # okular.desktop : Categories=-Office,+VectorGraphics (http://bugzilla.redhat.com/591089)


More information about the scm-commits mailing list