[kwallet] cleanup, source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 14:28:00 UTC 2012


commit 2553c7e0a36cf3c60218b4a824fa8a0e84e3700b
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 08:27:43 2012 -0600

    cleanup, source0 snippet

 .gitignore   |    3 ---
 kwallet.spec |   10 ++++++++--
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0f76ba9..4e1370c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-/kwallet-4.7.90.tar.bz2
-/kwallet-4.7.95.tar.bz2
-/kwallet-4.7.97.tar.bz2
 /kwallet-4.8.0.tar.bz2
diff --git a/kwallet.spec b/kwallet.spec
index 423298f..a9c4ac1 100644
--- a/kwallet.spec
+++ b/kwallet.spec
@@ -1,12 +1,18 @@
 
-Name: kwallet
+Name:    kwallet
 Summary: Manage KDE passwords 
 Version: 4.8.0
 Release: 1%{?dist}
 
 License: GPLv2+
 URL:     https://projects.kde.org/projects/kde/kdeutils/kwallet 
-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