[qyoto] cleanup, Source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 13:53:40 UTC 2012


commit 946aa5621aef7cc68d51d3193a3c98cc43da8494
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 07:53:22 2012 -0600

    cleanup, Source0 snippet

 .gitignore |    1 -
 qyoto.spec |    8 +++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7ffe668..3591cbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-/qyoto-4.7.97.tar.bz2
 /qyoto-4.8.0.tar.bz2
diff --git a/qyoto.spec b/qyoto.spec
index 8e1abc1..1af421a 100644
--- a/qyoto.spec
+++ b/qyoto.spec
@@ -14,7 +14,13 @@ Release: 1%{?dist}
 License: LGPLv2+ and GPLv2+
 URL:     http://techbase.kde.org/Development/Languages/Qyoto
 #URL:     https://projects.kde.org/projects/kde/kdebindings/csharp/qyoto
-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: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.bz2
 
 BuildRequires: cmake
 BuildRequires: pkgconfig(mono)


More information about the scm-commits mailing list