[ktouch] cleanup, source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 14:22:52 UTC 2012


commit 8c20f1c33c7745a9fc94be48ff8b0d0c8dd38a51
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 08:22:28 2012 -0600

    cleanup, source0 snippet

 .gitignore  |    6 +-----
 ktouch.spec |    9 +++++++--
 2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 07f765b..514413b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,2 @@
-/ktouch-4.7.3.tar.bz2
-/ktouch-4.7.80.tar.bz2
-/ktouch-4.7.90.tar.bz2
-/ktouch-4.7.95.tar.bz2
-/ktouch-4.7.97.tar.bz2
+/ktouch-4.7.4.tar.bz2
 /ktouch-4.8.0.tar.bz2
diff --git a/ktouch.spec b/ktouch.spec
index 79b65c7..cccfaa6 100644
--- a/ktouch.spec
+++ b/ktouch.spec
@@ -6,7 +6,13 @@ Release: 1%{?dist}
 
 License: GPLv2+
 URL:     https://projects.kde.org/projects/kde/kdeedu/%{name}
-Source0: http://download.kde.org/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}
@@ -65,7 +71,6 @@ fi
 %{_mandir}/man1/ktouch.*
 
 
-
 %changelog
 * Sun Jan 22 2012 Rex Dieter <rdieter at fedoraproject.org> - 4.8.0-1
 - 4.8.0


More information about the scm-commits mailing list