[kf5-attica/f20] Clean up spec file, autodetect stable/unstable download folder
Daniel Vrátil
dvratil at fedoraproject.org
Tue Nov 4 12:27:12 UTC 2014
commit 2fdc2c0a47ea2136df3f3aaddf60529e58e1dba0
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-attica.spec | 12 +++++++-----
1 files 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}
More information about the scm-commits
mailing list