From 6510d38834b254351950e2bbf9ac1e7dbbb3f02f Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 9 Jan 2015 09:52:04 -0600 Subject: [PATCH] make gf2c fedora only (for now) --- ntl.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ntl.spec b/ntl.spec index b0fcad9..fc7d282 100644 --- a/ntl.spec +++ b/ntl.spec @@ -4,6 +4,11 @@ # define include static lib (else undef) #define static 1 +# no gf2x in rhel/epel, yet -- rex +%if 0%{?fedora} +%define gf2x 1 +%endif + Summary: High-performance algorithms for vectors, matrices, and polynomials Name: ntl Version: 6.2.1 @@ -19,7 +24,9 @@ Source1: multilib_template.h # Apply sagemath patch to let sagemath handle NTL errors. Patch0: %{name}-sagemath.patch +%if 0%{?gf2x} BuildRequires: gf2x-devel +%endif BuildRequires: gmp-devel BuildRequires: libtool @@ -86,7 +93,7 @@ pushd src INCLUDEDIR=%{_includedir} \ LIBDIR=%{_libdir} \ NTL_GMP_LIP=on \ - NTL_GF2X_LIB=on \ + %{?gf2x:NTL_GF2X_LIB=on} \ SHARED=on popd