[ntl] Build with gf2x support

Rex Dieter rdieter at fedoraproject.org
Thu Aug 16 18:40:34 UTC 2012


commit 417dee3ce2556b4ff2db4784efe8eeb87e2cf868
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Thu Aug 16 13:44:15 2012 -0500

    Build with gf2x support
    
    - Run ldconfig in post and postun

 ntl.spec |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/ntl.spec b/ntl.spec
index 869aea7..48ed36f 100644
--- a/ntl.spec
+++ b/ntl.spec
@@ -7,7 +7,7 @@
 Summary: High-performance algorithms for vectors, matrices, and polynomials 
 Name:    ntl 
 Version: 5.5.2
-Release: 7%{?dist}
+Release: 8%{?dist}
 
 License: GPLv2+
 URL:     http://shoup.net/ntl/ 
@@ -16,6 +16,7 @@ Group:   System Environment/Libraries
 Source0: http://shoup.net/ntl/ntl-%{version}.tar.gz
 Source1: multilib_template.h
 
+BuildRequires: gf2x-devel
 BuildRequires: gmp-devel
 BuildRequires: libtool
 
@@ -57,12 +58,13 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
 %setup -q 
 
 # Specify tag with mode for libtool.
-sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/def_makefile 
-sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/makefile 
-sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/mfile 
-sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/def_makefile 
-sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/makefile 
-sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/mfile 
+sed -i.mode \
+  -e 's| --mode=compile| --tag=CC --mode=compile|' \
+  -e 's| --mode=link| --tag=LD --mode=link|' \
+  src/def_makefile \
+  src/makefile \
+  src/mfile 
+
 
 %build
 pushd src
@@ -76,6 +78,7 @@ pushd src
   INCLUDEDIR=%{_includedir} \
   LIBDIR=%{_libdir} \
   NTL_GMP_LIP=on \
+  NTL_GF2X_LIB=on \
   SHARED=on
 popd
 
@@ -116,6 +119,9 @@ done
 %endif
 
 
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(-,root,root,-)
 %doc README doc/copying.txt 
@@ -135,6 +141,10 @@ done
 
 
 %changelog
+* Thu Aug 16 2012 Jerry James <loganjerry at gmail.com> - 5.5.2-8
+- Build with gf2x support
+- Run ldconfig in post and postun
+
 * Wed Aug 08 2012 Rex Dieter <rdieter at fedoraproject.org> 5.5.2-7
 - Broken ntl-devel due to problems in multilib support (#846497)
 


More information about the scm-commits mailing list