Rebuild for gf2x 1.3.0.

This commit is contained in:
Jerry James 2019-12-10 14:35:56 -07:00
parent 4cb6f070b8
commit fa16cf7dfe
3 changed files with 24 additions and 1 deletions

10
ntl-gf2x13.patch Normal file
View File

@ -0,0 +1,10 @@
--- src/gf2x_version_1_2_or_later_required.cpp.orig 2019-10-08 07:34:08.000000000 -0600
+++ src/gf2x_version_1_2_or_later_required.cpp 2019-12-10 13:20:44.893115305 -0700
@@ -1,6 +1,7 @@
#include <cstdlib>
#include <cstdio>
#include <NTL/config.h>
+#include <gf2x.h>
using namespace std;

8
ntl.rpmlintrc Normal file
View File

@ -0,0 +1,8 @@
# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON
# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors
# The dictionary is missing some technical terms
addFilter(r'W: spelling-error .* irreducibility')
# The configure script is not generated by autotools
addFilter(r'ntl.spec:[^:]+: W: configure-without-libdir-spec')

View File

@ -11,7 +11,7 @@
Summary: High-performance algorithms for vectors, matrices, and polynomials
Name: ntl
Version: 11.4.1
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
URL: http://shoup.net/ntl/
@ -22,6 +22,8 @@ Source1: multilib_template.h
# 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
# Fix building with gf2x 1.3.0
Patch1: %{name}-gf2x13.patch
BuildRequires: gcc-c++
%if 0%{?gf2x}
@ -146,6 +148,9 @@ done
%changelog
* Tue Dec 10 2019 Jerry James <loganjerry@gmail.com> - 11.4.1-2
- Rebuild for gf2x 1.3.0
* Mon Oct 14 2019 Jerry James <loganjerry@gmail.com> - 11.4.1-1
- ntl-11.4.1