make gf2c fedora only (for now)

This commit is contained in:
Rex Dieter 2015-01-09 09:52:04 -06:00
parent e4f4a131bd
commit 6510d38834

View File

@ -4,6 +4,11 @@
# define include static lib (else undef) # define include static lib (else undef)
#define static 1 #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 Summary: High-performance algorithms for vectors, matrices, and polynomials
Name: ntl Name: ntl
Version: 6.2.1 Version: 6.2.1
@ -19,7 +24,9 @@ Source1: multilib_template.h
# Apply sagemath patch to let sagemath handle NTL errors. # Apply sagemath patch to let sagemath handle NTL errors.
Patch0: %{name}-sagemath.patch Patch0: %{name}-sagemath.patch
%if 0%{?gf2x}
BuildRequires: gf2x-devel BuildRequires: gf2x-devel
%endif
BuildRequires: gmp-devel BuildRequires: gmp-devel
BuildRequires: libtool BuildRequires: libtool
@ -86,7 +93,7 @@ pushd src
INCLUDEDIR=%{_includedir} \ INCLUDEDIR=%{_includedir} \
LIBDIR=%{_libdir} \ LIBDIR=%{_libdir} \
NTL_GMP_LIP=on \ NTL_GMP_LIP=on \
NTL_GF2X_LIB=on \ %{?gf2x:NTL_GF2X_LIB=on} \
SHARED=on SHARED=on
popd popd