[smokeqt] Source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 12:58:11 UTC 2012


commit e002e2cffdf9d6edb5efa7b43451c9417fe6de3b
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 06:57:57 2012 -0600

    Source0 snippet

 smokeqt.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/smokeqt.spec b/smokeqt.spec
index 30e886a..97779b7 100644
--- a/smokeqt.spec
+++ b/smokeqt.spec
@@ -5,7 +5,13 @@ Summary: Bindings for Qt libraries
 
 License: LGPLv2+
 URL:     https://projects.kde.org/projects/kde/kdebindings/smoke
-Source0: ftp://ftp.kde.org/pub/kde/stable/%{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: cmake
 BuildRequires: pkgconfig(phonon)


More information about the scm-commits mailing list