2006-04-11 15:40:41 +00:00
|
|
|
|
2009-03-02 02:54:34 +00:00
|
|
|
%define multilib_arches %{ix86} x86_64 ppc ppc64 s390 s390x sparcv9 sparc64
|
2008-04-03 14:34:04 +00:00
|
|
|
|
2009-04-17 17:42:27 +00:00
|
|
|
# define include static lib (else undef)
|
|
|
|
#define static 1
|
|
|
|
|
2006-04-11 15:40:41 +00:00
|
|
|
Summary: High-performance algorithms for vectors, matrices, and polynomials
|
|
|
|
Name: ntl
|
2009-09-19 02:50:45 +00:00
|
|
|
Version: 5.5.2
|
2011-02-09 01:16:12 +00:00
|
|
|
Release: 2%{?dist}
|
2006-04-11 15:40:41 +00:00
|
|
|
|
2007-08-11 23:25:20 +00:00
|
|
|
License: GPLv2+
|
2006-04-11 15:40:41 +00:00
|
|
|
URL: http://shoup.net/ntl/
|
2008-04-03 14:34:04 +00:00
|
|
|
Source0: http://shoup.net/ntl/ntl-%{version}.tar.gz
|
2006-04-11 15:40:41 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2008-04-03 14:34:04 +00:00
|
|
|
Source1: multilib_template.h
|
|
|
|
|
2006-04-11 15:40:41 +00:00
|
|
|
BuildRequires: gmp-devel
|
2009-04-17 17:42:27 +00:00
|
|
|
BuildRequires: libtool
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
NTL is a high-performance, portable C++ library providing data structures
|
|
|
|
and algorithms for arbitrary length integers; for vectors, matrices, and
|
|
|
|
polynomials over the integers and over finite fields; and for arbitrary
|
|
|
|
precision floating point arithmetic.
|
|
|
|
|
|
|
|
NTL provides high quality implementations of state-of-the-art algorithms for:
|
|
|
|
* arbitrary length integer arithmetic and arbitrary precision floating point
|
|
|
|
arithmetic;
|
|
|
|
* polynomial arithmetic over the integers and finite fields including basic
|
|
|
|
arithmetic, polynomial factorization, irreducibility testing, computation
|
|
|
|
of minimal polynomials, traces, norms, and more;
|
|
|
|
* lattice basis reduction, including very robust and fast implementations of
|
|
|
|
Schnorr-Euchner, block Korkin-Zolotarev reduction, and the new
|
|
|
|
Schnorr-Horner pruning heuristic for block Korkin-Zolotarev;
|
|
|
|
* basic linear algebra over the integers, finite fields, and arbitrary
|
|
|
|
precision floating point numbers.
|
|
|
|
|
2007-08-11 23:25:20 +00:00
|
|
|
%package devel
|
2009-04-17 17:42:27 +00:00
|
|
|
Summary: Development files for %{name}
|
2006-04-11 15:40:41 +00:00
|
|
|
Group: Development/Libraries
|
2009-04-17 17:42:27 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-08-11 23:25:20 +00:00
|
|
|
%description devel
|
2009-04-17 17:42:27 +00:00
|
|
|
%{summary}.
|
2006-04-11 15:40:41 +00:00
|
|
|
|
2009-04-17 17:42:27 +00:00
|
|
|
%package static
|
|
|
|
Summary: Static libraries for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
#Requires: gmp-devel
|
|
|
|
%description static
|
|
|
|
%{summary}.
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2009-09-19 02:50:45 +00:00
|
|
|
pushd src
|
2006-04-11 15:40:41 +00:00
|
|
|
./configure \
|
|
|
|
CC="%{__cc}" \
|
|
|
|
CXX="%{__cxx}" \
|
2008-12-11 16:26:27 +00:00
|
|
|
CFLAGS="%{optflags} -fPIC" \
|
|
|
|
CXXFLAGS="%{optflags} -fPIC" \
|
2006-04-11 15:40:41 +00:00
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
DOCDIR=%{_docdir} \
|
|
|
|
INCLUDEDIR=%{_includedir} \
|
|
|
|
LIBDIR=%{_libdir} \
|
2009-04-17 17:42:27 +00:00
|
|
|
NTL_GMP_LIP=on \
|
|
|
|
SHARED=on
|
2009-09-19 02:50:45 +00:00
|
|
|
popd
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
# not smp-safe
|
2009-09-19 02:50:45 +00:00
|
|
|
make -C src
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
2008-08-04 14:37:28 +00:00
|
|
|
%check
|
2006-04-11 15:40:41 +00:00
|
|
|
# skip by default, takes a *long, long, long* (days?) time -- Rex
|
|
|
|
%{?_with_check:make -C src check}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2008-04-03 14:34:04 +00:00
|
|
|
rm -rf %{buildroot}
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
make -C src install \
|
2008-04-03 14:34:04 +00:00
|
|
|
PREFIX=%{buildroot}%{_prefix} \
|
|
|
|
DOCDIR=%{buildroot}%{_docdir} \
|
|
|
|
INCLUDEDIR=%{buildroot}%{_includedir} \
|
|
|
|
LIBDIR=%{buildroot}%{_libdir}
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
# Unpackaged files
|
2008-04-03 14:34:04 +00:00
|
|
|
rm -rf %{buildroot}%{_docdir}/NTL
|
2009-04-17 17:42:27 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/libntl.la
|
|
|
|
%if ! 0%{?static}
|
|
|
|
rm -f %{buildroot}%{_libdir}/libntl.a
|
|
|
|
%endif
|
2008-04-03 14:34:04 +00:00
|
|
|
|
|
|
|
%ifarch %{multilib_arches}
|
|
|
|
# hack to allow parallel installation of multilib factory-devel
|
|
|
|
for header in NTL/config NTL/gmp_aux NTL/mach_desc ; do
|
|
|
|
mv %{buildroot}%{_includedir}/${header}.h \
|
|
|
|
%{buildroot}%{_includedir}/${header}-%{_arch}.h
|
|
|
|
install -p -m644 %{SOURCE1} %{buildroot}%{_includedir}/${header}.h
|
|
|
|
sed -i \
|
|
|
|
-e "s|@@INCLUDE@@|${header}|" \
|
|
|
|
-e "s|@@PACKAGENAME@@|%{name}-devel|" \
|
|
|
|
%{buildroot}%{_includedir}/${header}.h
|
|
|
|
done
|
|
|
|
%endif
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
2008-04-03 14:34:04 +00:00
|
|
|
rm -rf %{buildroot}
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
2009-04-17 17:42:27 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README doc/copying.txt
|
|
|
|
%{_libdir}/libntl.so.0*
|
|
|
|
|
2007-08-11 23:25:20 +00:00
|
|
|
%files devel
|
2006-04-11 15:40:41 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc/*
|
|
|
|
%{_includedir}/*
|
2009-04-17 17:42:27 +00:00
|
|
|
%{_libdir}/libntl.so
|
|
|
|
|
|
|
|
%if 0%{?static}
|
|
|
|
%files static
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libntl.a
|
|
|
|
%endif
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2011-02-09 01:16:12 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-09-19 02:50:45 +00:00
|
|
|
* Fri Sep 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 5.5.2-1
|
|
|
|
- ntl-5.5.2
|
|
|
|
|
2009-07-25 19:38:58 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-04-17 17:42:27 +00:00
|
|
|
* Fri Apr 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 5.5-1
|
|
|
|
- ntl-5.5
|
|
|
|
- enable shared libs (and omit static lib)
|
|
|
|
|
2009-03-20 17:28:37 +00:00
|
|
|
* Fri Mar 20 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 5.4.2-7
|
|
|
|
- add -static virtual Provides to -devel package
|
|
|
|
|
2009-03-02 14:47:53 +00:00
|
|
|
* Mon Mar 02 2009 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-6
|
2009-03-02 02:54:34 +00:00
|
|
|
- s/i386/%%ix86/
|
2009-03-02 14:47:53 +00:00
|
|
|
- gcc44 patch
|
2009-03-02 02:54:34 +00:00
|
|
|
|
2009-02-26 06:18:16 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-11 16:26:27 +00:00
|
|
|
* Thu Dec 11 2008 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-4
|
|
|
|
- build -fPIC (#475254)
|
|
|
|
|
2008-09-29 18:43:21 +00:00
|
|
|
* Mon Sep 29 2008 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-3
|
|
|
|
- multilib fixes
|
|
|
|
|
2008-04-03 14:34:04 +00:00
|
|
|
* Thu Apr 03 2008 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-2
|
|
|
|
- multiarch conflicts (#342711)
|
|
|
|
|
2008-03-13 02:18:13 +00:00
|
|
|
* Tue Mar 11 2008 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-1
|
|
|
|
- ntl-5.4.2
|
|
|
|
|
2008-02-08 21:30:41 +00:00
|
|
|
* Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-2
|
|
|
|
- respin (gcc43)
|
|
|
|
|
2007-12-19 03:04:35 +00:00
|
|
|
* Tue Dec 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 5.4.1-1
|
|
|
|
- ntl-5.4.1
|
|
|
|
|
2007-08-11 23:25:20 +00:00
|
|
|
* Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 5.4-6
|
|
|
|
- License: GPLv2+
|
|
|
|
- -static -> -devel (revert previous change)
|
|
|
|
|
2006-12-18 18:42:15 +00:00
|
|
|
* Mon Dec 18 2006 Rex Dieter <rdieter[AT]fedoraproject.org> 5.4-5
|
|
|
|
- -devel -> -static
|
|
|
|
|
2006-08-28 14:03:55 +00:00
|
|
|
* Mon Aug 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 5.4-4
|
|
|
|
- fc6 respin
|
|
|
|
|
2006-07-26 03:27:49 +00:00
|
|
|
* Tue Jul 25 2006 Rex Dieter <rexdieter[AT]users.sf.net> 5.4-3
|
|
|
|
- fc6 respin
|
|
|
|
|
2006-04-11 15:40:41 +00:00
|
|
|
* Tue Apr 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 5.4-2
|
|
|
|
- Capitalize %%summary
|
|
|
|
- disable -debuginfo, includes no debuginfo'able bits
|
|
|
|
|
|
|
|
* Fri Jan 20 2006 Rex Dieter <rexdieter[AT]users.sf.net> 5.4-1
|
|
|
|
- 5.4 (first try)
|
|
|
|
|
|
|
|
|