Build with gf2x support

- Run ldconfig in post and postun
This commit is contained in:
Rex Dieter 2012-08-16 13:44:15 -05:00
parent 5e9c5e726d
commit 417dee3ce2

View File

@ -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@gmail.com> - 5.5.2-8
- Build with gf2x support
- Run ldconfig in post and postun
* Wed Aug 08 2012 Rex Dieter <rdieter@fedoraproject.org> 5.5.2-7
- Broken ntl-devel due to problems in multilib support (#846497)