From 2fdc2c0a47ea2136df3f3aaddf60529e58e1dba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Mon, 3 Nov 2014 12:54:11 +0100 Subject: [PATCH] Clean up spec file, autodetect stable/unstable download folder --- kf5-attica.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/kf5-attica.spec b/kf5-attica.spec index f55af9c..92e40c2 100644 --- a/kf5-attica.spec +++ b/kf5-attica.spec @@ -1,7 +1,5 @@ -#%define snapshot 20140206 %define framework attica - Name: kf5-attica Version: 5.4.0 Release: 1%{?dist} @@ -11,7 +9,13 @@ Group: Development/Libraries License: LGPLv2+ URL: http://www.kde.org -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 @@ -34,7 +38,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %prep %setup -q -n %{framework}-%{version} - %build mkdir -p %{_target_platform} pushd %{_target_platform} @@ -43,7 +46,6 @@ popd make %{?_smp_mflags} -C %{_target_platform} - %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform}