[kstars] cleanup, source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 14:15:25 UTC 2012


commit 43c67eb382b1d1594d0da2f11686d8df266bd76f
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 08:15:07 2012 -0600

    cleanup, source0 snippet

 .gitignore  |    6 +-----
 kstars.spec |    8 +++++++-
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index bb4538b..ca099ab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,2 @@
-/kstars-4.7.3.tar.bz2
-/kstars-4.7.80.tar.bz2
-/kstars-4.7.90.tar.bz2
-/kstars-4.7.95.tar.bz2
-/kstars-4.7.97.tar.bz2
+/kstars-4.7.4.tar.bz2
 /kstars-4.8.0.tar.bz2
diff --git a/kstars.spec b/kstars.spec
index 5113cfa..6579487 100644
--- a/kstars.spec
+++ b/kstars.spec
@@ -7,7 +7,13 @@ Release: 1%{?dist}
 License: GPLv2+
 #URL:     https://projects.kde.org/projects/kde/kdeedu/kstars
 URL:     http://edu.kde.org/kstars
-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