[rocs] cleanup, source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 14:44:04 UTC 2012


commit 5efdbc70bfecab4e54a69aec54d1231ded958e91
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 08:43:42 2012 -0600

    cleanup, source0 snippet

 .gitignore |    8 +-------
 rocs.spec  |    9 +++++++--
 2 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 98791ac..eb7044e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,2 @@
-/rocs-4.7.1.tar.bz2
-/rocs-4.7.2.tar.bz2
-/rocs-4.7.3.tar.bz2
-/rocs-4.7.80.tar.bz2
-/rocs-4.7.90.tar.bz2
-/rocs-4.7.95.tar.bz2
-/rocs-4.7.97.tar.bz2
+/rocs-4.7.4.tar.bz2
 /rocs-4.8.0.tar.bz2
diff --git a/rocs.spec b/rocs.spec
index 7e3d3c5..200d0d4 100644
--- a/rocs.spec
+++ b/rocs.spec
@@ -6,7 +6,13 @@ Release: 1%{?dist}
 
 License: GPLv3+
 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
 
 # upstream patches
 
@@ -38,7 +44,6 @@ Requires: kdelibs4-devel
 %{summary}.
 
 
-
 %prep
 %setup -q
 


More information about the scm-commits mailing list