[kf5-kidletime/f20] Clean up spec file, autodetect stable/unstable download folder
Daniel Vrátil
dvratil at fedoraproject.org
Tue Nov 4 12:30:28 UTC 2014
commit 6383711eccda3098a38be47c65de338c74de55fd
Author: Dan Vrátil <dvratil at redhat.com>
Date: Mon Nov 3 12:54:11 2014 +0100
Clean up spec file, autodetect stable/unstable download folder
kf5-kidletime.spec | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/kf5-kidletime.spec b/kf5-kidletime.spec
index 64532bc..a42e307 100644
--- a/kf5-kidletime.spec
+++ b/kf5-kidletime.spec
@@ -1,4 +1,3 @@
-#%define snapshot 20140205
%define framework kidletime
Name: kf5-%{framework}
@@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 1 integration module for idle time detecti
License: GPLv2+ and 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: libX11-devel
BuildRequires: libxcb-devel
@@ -50,11 +52,10 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
%make_install -C %{_target_platform}
-%post -p /sbin/ldconfig
+%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-
%files
%doc COPYING COPYING.LIB README.md
%{_kf5_libdir}/libKF5IdleTime.so.*
@@ -67,6 +68,7 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_kf5_libdir}/cmake/KF5IdleTime
%{_kf5_archdatadir}/mkspecs/modules/qt_KIdleTime.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