[kfloppy] cleanup, Source0 snippet
Rex Dieter
rdieter at fedoraproject.org
Tue Jan 24 13:48:20 UTC 2012
commit 2dff82853f9761b7e3c6bdd5e5c1aa9da6c5bb9c
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Tue Jan 24 07:48:01 2012 -0600
cleanup, Source0 snippet
.gitignore | 3 ---
kfloppy.spec | 8 +++++++-
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d1fdb4e..a0a97c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-/kfloppy-4.7.90.tar.bz2
-/kfloppy-4.7.95.tar.bz2
-/kfloppy-4.7.97.tar.bz2
/kfloppy-4.8.0.tar.bz2
diff --git a/kfloppy.spec b/kfloppy.spec
index 0018456..bdce17a 100644
--- a/kfloppy.spec
+++ b/kfloppy.spec
@@ -7,7 +7,13 @@ Release: 1%{?dist}
License: GPLv2+
#URL: https://projects.kde.org/projects/kde/kdeutils/%{name}
URL: http://utils.kde.org/projects/%{name}
-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