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 - 0.4.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - * Sat Jun 15 2013 Rex Dieter 0.4.2-1 - 0.4.2