[kf5-kwallet/f20: 2/4] Clean up spec file, autodetect stable/unstable download folder
Daniel Vrátil
dvratil at fedoraproject.org
Tue Nov 4 12:49:42 UTC 2014
commit 557acd616032c64a1b1b349c64ba558dceb40ab7
Author: Dan Vrátil <dvratil at redhat.com>
Date: Mon Nov 3 13:30:28 2014 +0100
Clean up spec file, autodetect stable/unstable download folder
kf5-kwallet.spec | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/kf5-kwallet.spec b/kf5-kwallet.spec
index f5bf91d..ec3fcda 100644
--- a/kf5-kwallet.spec
+++ b/kf5-kwallet.spec
@@ -1,4 +1,3 @@
-#%define snapshot 20140205
%define framework kwallet
Name: kf5-%{framework}
@@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 3 solution for password management
License: LGPLv2+
URL: http://www.kde.org
-# git archive --format=tar --prefix=%{framework}-%{version}/ \
-# --remote=git://anongit.kde.org/%{framework}.git master | \
-# bzip2 -c > %{name}-%{version}-%{snapshot}git.tar.bz2
-#Source0: %{name}-%{version}-%{snapshot}git.tar.bz2
-Source0: http://download.kde.org/stable/frameworks/%{version}/%{framework}-%{version}.tar.xz
+
+%global revision %(echo %{version} | cut -d. -f3)
+%if %{revision} >= 50
+%global stable unstable
+%else
+%global stable stable
+%endif
+Source0: http://download.kde.org/%{stable}/frameworks/%{version}/%{framework}-%{version}.tar.xz
BuildRequires: libgcrypt-devel
BuildRequires: kf5-rpm-macros
@@ -69,6 +71,7 @@ Requires: kf5-kwindowsystem-devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
+
%prep
%setup -q -n %{framework}-%{version}
@@ -84,14 +87,13 @@ make %{?_smp_mflags} -C %{_target_platform}
%make_install -C %{_target_platform}
%find_lang kwalletd5_qt --with-qt --all-name
-%post libs -p /sbin/ldconfig
-
-%postun libs -p /sbin/ldconfig
-
%files
%doc COPYING.LIB README.md
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
%files libs
%{_kf5_libdir}/libKF5Wallet.so.*
%{_kf5_libdir}/libkwalletbackend5.so.*
@@ -112,6 +114,7 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_kf5_libdir}/libkwalletbackend5.so
%{_kf5_archdatadir}/mkspecs/modules/qt_KWallet.pri
+
%changelog
* Mon Nov 03 2014 Daniel Vrátil <dvratil at redhat.com> - 5.4.0-1
- KDE Frameworks 5.4.0
More information about the scm-commits
mailing list