Build with gf2x support
- Run ldconfig in post and postun
This commit is contained in:
parent
5e9c5e726d
commit
417dee3ce2
24
ntl.spec
24
ntl.spec
@ -7,7 +7,7 @@
|
|||||||
Summary: High-performance algorithms for vectors, matrices, and polynomials
|
Summary: High-performance algorithms for vectors, matrices, and polynomials
|
||||||
Name: ntl
|
Name: ntl
|
||||||
Version: 5.5.2
|
Version: 5.5.2
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://shoup.net/ntl/
|
URL: http://shoup.net/ntl/
|
||||||
@ -16,6 +16,7 @@ Group: System Environment/Libraries
|
|||||||
Source0: http://shoup.net/ntl/ntl-%{version}.tar.gz
|
Source0: http://shoup.net/ntl/ntl-%{version}.tar.gz
|
||||||
Source1: multilib_template.h
|
Source1: multilib_template.h
|
||||||
|
|
||||||
|
BuildRequires: gf2x-devel
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
|
||||||
@ -57,12 +58,13 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
# Specify tag with mode for libtool.
|
# Specify tag with mode for libtool.
|
||||||
sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/def_makefile
|
sed -i.mode \
|
||||||
sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/makefile
|
-e 's| --mode=compile| --tag=CC --mode=compile|' \
|
||||||
sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/mfile
|
-e 's| --mode=link| --tag=LD --mode=link|' \
|
||||||
sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/def_makefile
|
src/def_makefile \
|
||||||
sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/makefile
|
src/makefile \
|
||||||
sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/mfile
|
src/mfile
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd src
|
pushd src
|
||||||
@ -76,6 +78,7 @@ pushd src
|
|||||||
INCLUDEDIR=%{_includedir} \
|
INCLUDEDIR=%{_includedir} \
|
||||||
LIBDIR=%{_libdir} \
|
LIBDIR=%{_libdir} \
|
||||||
NTL_GMP_LIP=on \
|
NTL_GMP_LIP=on \
|
||||||
|
NTL_GF2X_LIB=on \
|
||||||
SHARED=on
|
SHARED=on
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -116,6 +119,9 @@ done
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README doc/copying.txt
|
%doc README doc/copying.txt
|
||||||
@ -135,6 +141,10 @@ done
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Aug 08 2012 Rex Dieter <rdieter@fedoraproject.org> 5.5.2-7
|
||||||
- Broken ntl-devel due to problems in multilib support (#846497)
|
- Broken ntl-devel due to problems in multilib support (#846497)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user