[kcharselect] cleanup, Source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 13:15:04 UTC 2012


commit ded634b35e97fc38dc0a235fe574fa2675de509d
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 07:14:46 2012 -0600

    cleanup, Source0 snippet

 .gitignore       |    3 ---
 kcharselect.spec |    8 +++++++-
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index aa5a986..400b4f3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-/kcharselect-4.7.90.tar.bz2
-/kcharselect-4.7.95.tar.bz2
-/kcharselect-4.7.97.tar.bz2
 /kcharselect-4.8.0.tar.bz2
diff --git a/kcharselect.spec b/kcharselect.spec
index a45ba59..50e02e8 100644
--- a/kcharselect.spec
+++ b/kcharselect.spec
@@ -7,7 +7,13 @@ Release: 1%{?dist}
 License: GPLv2+
 #URL:     https://projects.kde.org/projects/kde/kdeutils/%{name}
 URL:     http://utils.kde.org/projects/kcharselect
-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: desktop-file-utils
 BuildRequires: kdelibs4-devel >= %{version}


More information about the scm-commits mailing list