2006-04-11 15:40:41 +00:00
|
|
|
|
2016-02-20 18:36:55 +00:00
|
|
|
%global 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
|
|
|
|
|
2015-02-02 16:31:00 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
2015-09-20 02:56:40 +00:00
|
|
|
%global gf2x 1
|
2015-01-09 15:52:04 +00:00
|
|
|
%endif
|
|
|
|
|
2006-04-11 15:40:41 +00:00
|
|
|
Summary: High-performance algorithms for vectors, matrices, and polynomials
|
|
|
|
Name: ntl
|
2016-06-02 19:06:01 +00:00
|
|
|
Version: 9.9.1
|
2016-02-20 18:36:55 +00:00
|
|
|
Release: 1%{?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/
|
|
|
|
|
2013-05-06 17:37:06 +00:00
|
|
|
Source0: http://shoup.net/ntl/%{name}-%{version}.tar.gz
|
2008-04-03 14:34:04 +00:00
|
|
|
Source1: multilib_template.h
|
2016-04-29 22:54:23 +00:00
|
|
|
# Detect CPU at load time, optionally use PCLMUL, AVX, FMA, and AVX2 features.
|
|
|
|
# This patch was sent upstream, but upstream prefers that the entire library
|
|
|
|
# be built for a specific CPU, which we cannot do in Fedora.
|
|
|
|
Patch0: %{name}-loadtime-cpu.patch
|
2008-04-03 14:34:04 +00:00
|
|
|
|
2016-02-20 18:36:55 +00:00
|
|
|
BuildRequires: gcc-c++
|
2015-01-09 15:52:04 +00:00
|
|
|
%if 0%{?gf2x}
|
2012-08-16 18:44:15 +00:00
|
|
|
BuildRequires: gf2x-devel
|
2015-01-09 15:52:04 +00:00
|
|
|
%endif
|
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}
|
2012-07-31 13:56:46 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{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}
|
2012-07-31 13:56:46 +00:00
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
2009-04-17 17:42:27 +00:00
|
|
|
#Requires: gmp-devel
|
|
|
|
%description static
|
|
|
|
%{summary}.
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2016-04-29 22:54:23 +00:00
|
|
|
%setup -q
|
|
|
|
%patch0
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2009-09-19 02:50:45 +00:00
|
|
|
pushd src
|
2006-04-11 15:40:41 +00:00
|
|
|
./configure \
|
2013-01-26 21:26:29 +00:00
|
|
|
CXX="${CXX-g++}" \
|
2008-12-11 16:26:27 +00:00
|
|
|
CXXFLAGS="%{optflags} -fPIC" \
|
2014-10-28 14:22:13 +00:00
|
|
|
LDFLAGS="$RPM_LD_FLAGS" \
|
2015-09-20 02:56:40 +00:00
|
|
|
DEF_PREFIX=%{_prefix} \
|
2006-04-11 15:40:41 +00:00
|
|
|
DOCDIR=%{_docdir} \
|
|
|
|
INCLUDEDIR=%{_includedir} \
|
|
|
|
LIBDIR=%{_libdir} \
|
2016-02-20 18:36:55 +00:00
|
|
|
NATIVE=off \
|
2015-01-09 15:52:04 +00:00
|
|
|
%{?gf2x:NTL_GF2X_LIB=on} \
|
2015-05-09 16:22:53 +00:00
|
|
|
NTL_PCLMUL=off \
|
2016-04-29 22:54:23 +00:00
|
|
|
NTL_DISABLE_TLS_HACK=on \
|
|
|
|
%ifarch x86_64
|
|
|
|
NTL_LOADTIME_CPU=on \
|
|
|
|
WIZARD=off \
|
|
|
|
%endif
|
2009-04-17 17:42:27 +00:00
|
|
|
SHARED=on
|
2009-09-19 02:50:45 +00:00
|
|
|
popd
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
# not smp-safe
|
2012-08-01 15:04:39 +00:00
|
|
|
make -C src V=1
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
2008-08-04 14:37:28 +00:00
|
|
|
%check
|
2016-04-29 22:54:23 +00:00
|
|
|
# skip on non-x86_64, takes a *long, long, long* (days?) time -- Rex
|
|
|
|
%ifarch x86_64
|
|
|
|
make -C src check
|
|
|
|
%endif
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
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
|
|
|
|
2015-09-20 02:56:40 +00:00
|
|
|
# Fix permissions
|
|
|
|
chmod 0755 %{buildroot}%{_libdir}/libntl.so.*
|
|
|
|
|
2006-04-11 15:40:41 +00:00
|
|
|
# Unpackaged files
|
2013-01-26 21:26:49 +00:00
|
|
|
rm -rfv %{buildroot}%{_docdir}/NTL
|
|
|
|
rm -fv %{buildroot}%{_libdir}/libntl.la
|
2009-04-17 17:42:27 +00:00
|
|
|
%if ! 0%{?static}
|
2013-01-26 21:26:49 +00:00
|
|
|
rm -fv %{buildroot}%{_libdir}/libntl.a
|
2009-04-17 17:42:27 +00:00
|
|
|
%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 \
|
2012-07-31 13:56:46 +00:00
|
|
|
%{buildroot}%{_includedir}/${header}-%{__isa_bits}.h
|
2008-04-03 14:34:04 +00:00
|
|
|
install -p -m644 %{SOURCE1} %{buildroot}%{_includedir}/${header}.h
|
|
|
|
sed -i \
|
2012-08-08 23:56:30 +00:00
|
|
|
-e "s|@@INCLUDE@@|${header}|" \
|
2012-07-31 13:56:46 +00:00
|
|
|
-e "s|@@INCLUDE_MACRO@@|$(echo ${header} | tr '/.' '_')|" \
|
2008-04-03 14:34:04 +00:00
|
|
|
%{buildroot}%{_includedir}/${header}.h
|
|
|
|
done
|
|
|
|
%endif
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
2012-08-16 18:44:15 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2009-04-17 17:42:27 +00:00
|
|
|
%files
|
2014-10-28 14:22:13 +00:00
|
|
|
%doc README
|
|
|
|
%license doc/copying.txt
|
2016-06-02 19:06:01 +00:00
|
|
|
%{_libdir}/libntl.so.27*
|
2009-04-17 17:42:27 +00:00
|
|
|
|
2007-08-11 23:25:20 +00:00
|
|
|
%files devel
|
2006-04-11 15:40:41 +00:00
|
|
|
%doc doc/*
|
2012-08-08 23:56:30 +00:00
|
|
|
%{_includedir}/NTL/
|
2009-04-17 17:42:27 +00:00
|
|
|
%{_libdir}/libntl.so
|
|
|
|
|
|
|
|
%if 0%{?static}
|
|
|
|
%files static
|
|
|
|
%{_libdir}/libntl.a
|
|
|
|
%endif
|
2006-04-11 15:40:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2016-06-02 19:06:01 +00:00
|
|
|
* Thu Jun 2 2016 Jerry James <loganjerry@gmail.com> - 9.9.1-1
|
|
|
|
- ntl-9.9.1
|
|
|
|
|
2016-04-29 22:54:23 +00:00
|
|
|
* Fri Apr 29 2016 Jerry James <loganjerry@gmail.com> - 9.8.0-1
|
|
|
|
- ntl-9.8.0
|
|
|
|
- Add -loadtime-cpu patch
|
|
|
|
- Enable the check script on x86_64
|
|
|
|
|
2016-03-20 00:20:32 +00:00
|
|
|
* Sat Mar 19 2016 Jerry James <loganjerry@gmail.com> - 9.7.0-1
|
|
|
|
- ntl-9.7.0
|
|
|
|
|
2016-02-20 18:36:55 +00:00
|
|
|
* Sat Feb 20 2016 Jerry James <loganjerry@gmail.com> - 9.6.4-1
|
|
|
|
- ntl-9.6.4
|
|
|
|
|
2016-02-04 10:58:23 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 9.6.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-12-04 22:41:57 +00:00
|
|
|
* Fri Dec 4 2015 Jerry James <loganjerry@gmail.com> - 9.6.2-1
|
|
|
|
- ntl-9.6.2
|
|
|
|
|
2015-10-16 17:25:52 +00:00
|
|
|
* Fri Oct 16 2015 Jerry James <loganjerry@gmail.com> - 9.4.0-1
|
|
|
|
- ntl-9.4.0
|
|
|
|
|
2015-09-20 02:56:40 +00:00
|
|
|
* Sat Sep 19 2015 Jerry James <loganjerry@gmail.com> - 9.3.0-1
|
|
|
|
- ntl-9.3.0
|
|
|
|
|
2015-06-17 23:25:30 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-17 03:13:34 +00:00
|
|
|
* Sat May 16 2015 Jerry James <loganjerry@gmail.com> - 9.1.1-1
|
|
|
|
- ntl-9.1.1
|
|
|
|
|
2015-05-09 16:22:53 +00:00
|
|
|
* Sat May 9 2015 Jerry James <loganjerry@gmail.com> - 9.1.0-1
|
|
|
|
- ntl-9.1.0
|
|
|
|
|
2015-05-02 14:17:16 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 8.1.2-3
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-04-01 23:09:41 +00:00
|
|
|
* Wed Apr 01 2015 Rex Dieter <rdieter@fedoraproject.org> 8.1.2-2
|
|
|
|
- rebuild (#1206849)
|
|
|
|
|
2015-02-02 16:31:00 +00:00
|
|
|
* Mon Feb 2 2015 Jerry James <loganjerry@gmail.com> - 8.1.2-1
|
|
|
|
- ntl-8.1.2
|
|
|
|
- Remove add of tag to libtool mode operations; changes commented lines only
|
|
|
|
|
2015-01-15 16:47:11 +00:00
|
|
|
* Thu Jan 15 2015 Jerry James <loganjerry@gmail.com> - 8.1.0-1
|
|
|
|
- ntl-8.1.0
|
|
|
|
|
2014-10-28 14:22:13 +00:00
|
|
|
* Tue Oct 28 2014 Jerry James <loganjerry@gmail.com> - 6.2.1-1
|
|
|
|
- ntl-6.2.1
|
|
|
|
- Fix license handling
|
|
|
|
- Link with Fedora LDFLAGS
|
|
|
|
|
2014-08-17 12:26:20 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 15:13:54 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-02 14:11:47 +00:00
|
|
|
* Wed Apr 2 2014 Jerry James <loganjerry@gmail.com> - 6.1.0-1
|
|
|
|
- ntl-6.1.0
|
|
|
|
|
2013-08-03 14:34:14 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-05-06 17:37:06 +00:00
|
|
|
* Mon May 6 2013 Jerry James <loganjerry@gmail.com> - 6.0.0-1
|
|
|
|
- ntl-6.0.0
|
|
|
|
- Add -sagemath patch to let sagemath handle NTL errors
|
|
|
|
|
2013-01-26 21:26:29 +00:00
|
|
|
* Sat Jan 26 2013 Rex Dieter <rdieter@fedoraproject.org> 5.5.2-9
|
|
|
|
- ntl should explicitly link to libstdc++ (#904348)
|
|
|
|
|
2012-08-16 18:44:15 +00:00
|
|
|
* Thu Aug 16 2012 Jerry James <loganjerry@gmail.com> - 5.5.2-8
|
2012-08-17 12:56:56 +00:00
|
|
|
- Build with gf2x support (#848870)
|
2012-08-16 18:44:15 +00:00
|
|
|
- Run ldconfig in post and postun
|
|
|
|
|
2012-08-08 23:56:30 +00:00
|
|
|
* Wed Aug 08 2012 Rex Dieter <rdieter@fedoraproject.org> 5.5.2-7
|
|
|
|
- Broken ntl-devel due to problems in multilib support (#846497)
|
|
|
|
|
2012-08-01 15:04:39 +00:00
|
|
|
* Wed Aug 1 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 5.5.2-6
|
|
|
|
- Add tag to mode options for libtool (fixes FTBFS on ARM)
|
|
|
|
|
2012-07-31 13:56:46 +00:00
|
|
|
* Tue Jul 31 2012 Rex Dieter <rdieter@fedoraproject.org> - 5.5.2-5
|
|
|
|
- better multilib conflict handling (%%{__isa_bits})
|
|
|
|
- tighten subpkg deps (%%{?_isa})
|
|
|
|
|
2012-07-20 05:31:46 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.2-4.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-13 11:19:04 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5.2-3.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-26 10:50:57 +00:00
|
|
|
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 5.5.2-2.2
|
|
|
|
- rebuild with new gmp without compat lib
|
|
|
|
|
2011-10-12 03:00:54 +00:00
|
|
|
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 5.5.2-2.1
|
|
|
|
- rebuild with new gmp
|
|
|
|
|
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)
|
|
|
|
|
2013-05-06 17:37:06 +00:00
|
|
|
* Tue Dec 18 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 5.4.1-1
|
2007-12-19 03:04:35 +00:00
|
|
|
- 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)
|
|
|
|
|
|
|
|
|