[OpenColorIO/epel7] Fix cmake conditional for epel7.

Richard Shaw hobbes1069 at fedoraproject.org
Wed May 21 02:39:10 UTC 2014


commit 7fb0ac7cdfa05b3e8d0dde2454a7534351b468a0
Author: Richard M. Shaw <hobbes1069 at gmail.com>
Date:   Tue May 20 21:39:03 2014 -0500

    Fix cmake conditional for epel7.

 OpenColorIO.spec |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/OpenColorIO.spec b/OpenColorIO.spec
index 129148f..1c28921 100644
--- a/OpenColorIO.spec
+++ b/OpenColorIO.spec
@@ -5,7 +5,7 @@
 }
 
 # Use cmake28 package on EL builds.
-%if 0%{?el6}
+%if 0%{?rhel} && 0%{?rhel} <= 6
 %global cmake %cmake28 -DCMAKE_SKIP_RPATH=OFF
 %endif
 
@@ -22,7 +22,7 @@ Source0:        %{name}-%{version}.tar.gz
 Patch0:         OpenColorIO-yaml_cpp3.patch
 
 # Utilities
-%if 0%{?el6}
+%if 0%{?rhel} && 0%{?rhel} <= 6
 BuildRequires:  cmake28
 %else
 BuildRequires:  cmake


More information about the scm-commits mailing list