[attica] make buildable on epel-6

Rex Dieter rdieter at fedoraproject.org
Sat Oct 19 21:47:40 UTC 2013


commit 6fb8988d8d8fcf8e1cb2e131d4c9457e6a7f337a
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Sat Oct 19 16:47:26 2013 -0500

    make buildable on epel-6

 attica.spec |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/attica.spec b/attica.spec
index 62113e6..91ddf79 100644
--- a/attica.spec
+++ b/attica.spec
@@ -1,7 +1,13 @@
 
+%if 0%{?rhel} == 6
+%define cmake_pkg cmake28
+%else
+%define cmake_pkg cmake
+%endif
+
 Name:           attica
 Version:        0.4.2
-Release:        2%{?dist}
+Release:        1%{?dist}
 Summary:        Implementation of the Open Collaboration Services API
 
 Group:          Development/Libraries
@@ -9,7 +15,7 @@ License:        LGPLv2+
 URL:            http://www.kde.org
 Source0:        http://download.kde.org/stable/attica/attica-%{version}.tar.bz2
 
-BuildRequires:  cmake
+BuildRequires: %{cmake_pkg} >= 2.8
 BuildRequires:  pkgconfig(QtNetwork) >= 4.7
 
 %description
@@ -31,7 +37,7 @@ Requires:       %{name}%{?_isa} = %{version}-%{release}
 %build
 mkdir -p %{_target_platform}
 pushd %{_target_platform}
-%{cmake} \
+%{?cmake28}%{!?cmake28:%{?cmake}} \
   -DQT4_BUILD:BOOL=ON \
   ..
 popd
@@ -64,9 +70,6 @@ test "$(pkg-config --modversion libattica)" = "%{version}"
 
 
 %changelog
-* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.2-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
-
 * Sat Jun 15 2013 Rex Dieter <rdieter at fedoraproject.org> 0.4.2-1
 - 0.4.2
 


More information about the scm-commits mailing list