[kmplot] cleanup, source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 14:03:58 UTC 2012


commit 67965887d7aa8040dc775f231f3f901d5890c5ef
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 08:03:39 2012 -0600

    cleanup, source0 snippet

 .gitignore  |    6 +-----
 kmplot.spec |    8 +++++++-
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 926d49b..dccb7ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,2 @@
-/kmplot-4.7.3.tar.bz2
-/kmplot-4.7.80.tar.bz2
-/kmplot-4.7.90.tar.bz2
-/kmplot-4.7.95.tar.bz2
-/kmplot-4.7.97.tar.bz2
+/kmplot-4.7.4.tar.bz2
 /kmplot-4.8.0.tar.bz2
diff --git a/kmplot.spec b/kmplot.spec
index af99985..b1e79c5 100644
--- a/kmplot.spec
+++ b/kmplot.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}


More information about the scm-commits mailing list