[liblastfm/el6] adapt for epel-6

Rex Dieter rdieter at fedoraproject.org
Tue Feb 19 21:06:20 UTC 2013


commit 030f74bac984b2895ddf2476e0f7c529af4e3bb8
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Tue Feb 19 15:06:02 2013 -0600

    adapt for epel-6

 liblastfm.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/liblastfm.spec b/liblastfm.spec
index b66d485..4ef1b2a 100644
--- a/liblastfm.spec
+++ b/liblastfm.spec
@@ -12,7 +12,13 @@ URL:     https://github.com/lastfm/liblastfm
 # https://github.com/lastfm/liblastfm/archive/1.0.3.tar.gz
 Source0: liblastfm-%{version}.tar.gz
 
-BuildRequires: cmake
+%if "%{rhel}" == "6"
+BuildRequires: cmake28 >= 2.8.6
+%global cmake_cmd %{cmake28}
+%else
+BuildRequires: cmake >= 2.8.6
+%global cmake_cmd %{cmake}
+%endif
 BuildRequires: pkgconfig(QtNetwork) pkgconfig(QtSql) pkgconfig(QtXml)
 BuildRequires: ruby
 
@@ -47,7 +53,7 @@ Requires: %{name}-fingerprint%{?_isa} = %{version}-%{release}
 %build
 mkdir -p %{_target_platform}
 pushd %{_target_platform}
-%{cmake} \
+%{cmake_cmd} \
   DBUILD_FINGERPRINT:BOOL=%{?fingerprint:ON}%{!?fingerprint:OFF} \
   ..
 popd


More information about the scm-commits mailing list