c22f31d
c22f31d
Summary: High-performance algorithms for vectors, matrices, and polynomials 
c22f31d
Name:    ntl 
696e922
Version: 5.4.2
696e922
Release: 1%{?dist}
c22f31d
696e922
License: GPLv2+
c22f31d
URL:     http://shoup.net/ntl/ 
c22f31d
Source:	 http://shoup.net/ntl/ntl-%{version}.tar.gz
c22f31d
Group:   System Environment/Libraries
c22f31d
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c22f31d
c22f31d
BuildRequires: gmp-devel
c22f31d
c22f31d
# includes no debuginfo'able bits, disable
c22f31d
%define debug_package %{nil}
c22f31d
c22f31d
%description
c22f31d
NTL is a high-performance, portable C++ library providing data structures
c22f31d
and algorithms for arbitrary length integers; for vectors, matrices, and
c22f31d
polynomials over the integers and over finite fields; and for arbitrary
c22f31d
precision floating point arithmetic.
c22f31d
c22f31d
NTL provides high quality implementations of state-of-the-art algorithms for:
c22f31d
* arbitrary length integer arithmetic and arbitrary precision floating point
c22f31d
  arithmetic;
c22f31d
* polynomial arithmetic over the integers and finite fields including basic
c22f31d
  arithmetic, polynomial factorization, irreducibility testing, computation
c22f31d
  of minimal polynomials, traces, norms, and more;
c22f31d
* lattice basis reduction, including very robust and fast implementations of
c22f31d
  Schnorr-Euchner, block Korkin-Zolotarev reduction, and the new 
c22f31d
  Schnorr-Horner pruning heuristic for block Korkin-Zolotarev;
c22f31d
* basic linear algebra over the integers, finite fields, and arbitrary
c22f31d
  precision floating point numbers. 
c22f31d
696e922
%package devel 
c22f31d
Summary: High-performance algorithms for vectors, matrices, and polynomials 
c22f31d
Group:   Development/Libraries
696e922
Obsoletes: %{name}-static < %{version}-%{release}
6d58edd
Provides:  %{name}-devel = %{version}-%{release}
696e922
%description devel 
c22f31d
NTL is a high-performance, portable C++ library providing data structures
c22f31d
and algorithms for arbitrary length integers; for vectors, matrices, and
c22f31d
polynomials over the integers and over finite fields; and for arbitrary
c22f31d
precision floating point arithmetic.
c22f31d
c22f31d
NTL provides high quality implementations of state-of-the-art algorithms for:
c22f31d
* arbitrary length integer arithmetic and arbitrary precision floating point
c22f31d
  arithmetic;
c22f31d
* polynomial arithmetic over the integers and finite fields including basic
c22f31d
  arithmetic, polynomial factorization, irreducibility testing, computation
c22f31d
  of minimal polynomials, traces, norms, and more;
c22f31d
* lattice basis reduction, including very robust and fast implementations of
c22f31d
  Schnorr-Euchner, block Korkin-Zolotarev reduction, and the new
c22f31d
  Schnorr-Horner pruning heuristic for block Korkin-Zolotarev;
c22f31d
* basic linear algebra over the integers, finite fields, and arbitrary
c22f31d
  precision floating point numbers.
c22f31d
c22f31d
c22f31d
%prep
c22f31d
%setup -q 
c22f31d
c22f31d
c22f31d
%build
c22f31d
cd src
c22f31d
./configure \
c22f31d
  CC="%{__cc}" \
c22f31d
  CXX="%{__cxx}" \
c22f31d
  CFLAGS="%{optflags}" \
c22f31d
  CXXFLAGS="%{optflags}" \
c22f31d
  PREFIX=%{_prefix} \
c22f31d
  DOCDIR=%{_docdir} \
c22f31d
  INCLUDEDIR=%{_includedir} \
c22f31d
  LIBDIR=%{_libdir} \
c22f31d
  NTL_GMP_LIP=on
c22f31d
cd -
c22f31d
c22f31d
# not smp-safe
c22f31d
make -C src 
c22f31d
c22f31d
c22f31d
%check ||:
c22f31d
# skip by default, takes a *long, long, long* (days?) time -- Rex
c22f31d
%{?_with_check:make -C src check}
c22f31d
c22f31d
c22f31d
%install
c22f31d
rm -rf $RPM_BUILD_ROOT
c22f31d
c22f31d
make -C src install \
c22f31d
  PREFIX=$RPM_BUILD_ROOT%{_prefix} \
c22f31d
  DOCDIR=$RPM_BUILD_ROOT%{_docdir} \
c22f31d
  INCLUDEDIR=$RPM_BUILD_ROOT%{_includedir} \
c22f31d
  LIBDIR=$RPM_BUILD_ROOT%{_libdir} 
c22f31d
c22f31d
# Unpackaged files
c22f31d
rm -rf $RPM_BUILD_ROOT%{_docdir}/NTL
c22f31d
c22f31d
c22f31d
%clean
c22f31d
rm -rf $RPM_BUILD_ROOT
c22f31d
c22f31d
696e922
%files devel 
c22f31d
%defattr(-,root,root,-)
c22f31d
%doc README 
c22f31d
%doc doc/*
c22f31d
%{_includedir}/*
c22f31d
%{_libdir}/lib*.a
c22f31d
c22f31d
c22f31d
%changelog
696e922
* Tue Mar 11 2008 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-1
696e922
- ntl-5.4.2
696e922
696e922
* Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-2 
696e922
- respin (gcc43)
696e922
696e922
* Tue Dec 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 5.4.1-1
696e922
- ntl-5.4.1
696e922
696e922
* Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 5.4-6
696e922
- License: GPLv2+
696e922
- -static -> -devel (revert previous change)
696e922
6d58edd
* Mon Dec 18 2006 Rex Dieter <rdieter[AT]fedoraproject.org> 5.4-5
6d58edd
- -devel -> -static
6d58edd
23a5046
* Mon Aug 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 5.4-4
23a5046
- fc6 respin
23a5046
63e0e92
* Tue Jul 25 2006 Rex Dieter <rexdieter[AT]users.sf.net> 5.4-3
63e0e92
- fc6 respin
63e0e92
c22f31d
* Tue Apr 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 5.4-2
c22f31d
- Capitalize %%summary
c22f31d
- disable -debuginfo, includes no debuginfo'able bits 
c22f31d
c22f31d
* Fri Jan 20 2006 Rex Dieter <rexdieter[AT]users.sf.net> 5.4-1
c22f31d
- 5.4 (first try)
c22f31d
c22f31d