[kcalc] cleanup, Source0 snippet
Rex Dieter
rdieter at fedoraproject.org
Tue Jan 24 13:14:22 UTC 2012
commit 74929ce70edba74ee07f13ca47f5e98faee701b2
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Tue Jan 24 07:14:03 2012 -0600
cleanup, Source0 snippet
.gitignore | 3 ---
kcalc.spec | 8 +++++++-
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ff9c4f3..406dbd0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-/kcalc-4.7.90.tar.bz2
-/kcalc-4.7.95.tar.bz2
-/kcalc-4.7.97.tar.bz2
/kcalc-4.8.0.tar.bz2
diff --git a/kcalc.spec b/kcalc.spec
index f9a2d69..451a8fe 100644
--- a/kcalc.spec
+++ b/kcalc.spec
@@ -6,7 +6,13 @@ Release: 1%{?dist}
License: GPLv2+
URL: https://projects.kde.org/projects/kde/kdeutils/kcalc
-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