From 32e48d8dd54f5202bc562ee6c1d2e462ff44a0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Mon, 3 Nov 2014 13:30:28 +0100 Subject: [PATCH] Clean up spec file, autodetect stable/unstable download folder --- kf5-knotifyconfig.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kf5-knotifyconfig.spec b/kf5-knotifyconfig.spec index 8189dfc..df9b1c6 100644 --- a/kf5-knotifyconfig.spec +++ b/kf5-knotifyconfig.spec @@ -1,4 +1,3 @@ -#%define snapshot 20140205 %define framework knotifyconfig Name: kf5-%{framework} @@ -8,12 +7,14 @@ Summary: KDE Frameworks 5 Tier 3 module for KNotify configuration 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: kf5-rpm-macros BuildRequires: extra-cmake-modules @@ -32,7 +33,6 @@ Requires: kf5-filesystem %description %{summary}. - %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} @@ -46,6 +46,7 @@ Requires: kf5-kservice-devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. + %prep %setup -q -n %{framework}-%{version} @@ -61,11 +62,10 @@ make %{?_smp_mflags} -C %{_target_platform} %make_install -C %{_target_platform} %find_lang knotifyconfig5_qt --with-qt --all-name -%post -p /sbin/ldconfig +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig - %files -f knotifyconfig5_qt.lang %doc COPYING.LIB README.md %{_kf5_libdir}/libKF5NotifyConfig.so.*