New upstream release.

This commit is contained in:
Jerry James 2015-01-15 09:47:11 -07:00
parent 6510d38834
commit c9458921c7
4 changed files with 17 additions and 13 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
/ntl-6.1.0.tar.gz
/ntl-6.2.1.tar.gz
/ntl-8.1.0.tar.gz

View File

@ -1,9 +1,10 @@
--- ./include/NTL/tools.h.orig 2014-08-26 11:51:43.000000000 -0600
+++ ./include/NTL/tools.h 2014-09-18 20:00:00.000000000 -0600
@@ -310,6 +310,12 @@ long CharToIntVal(long c);
char IntValToChar(long a);
--- ./include/NTL/tools.h.orig 2015-01-09 06:58:19.000000000 -0700
+++ ./include/NTL/tools.h 2015-01-12 20:00:00.000000000 -0700
@@ -406,7 +406,12 @@ void swap(WrappedPtr<T,Deleter>& x, Wrap
// Error Handling
-
+/*
+ This function is not present in vanilla NTL.
+ See tools.c for documentation.
@ -11,10 +12,10 @@
+void SetErrorCallbackFunction(void (*func)(const char *s, void *context),
+ void *context);
void Error(const char *s);
--- ./src/tools.c.orig 2014-08-26 11:51:42.000000000 -0600
+++ ./src/tools.c 2014-09-18 20:00:00.000000000 -0600
class ErrorObject : public NTL_SNS runtime_error {
public:
--- ./src/tools.c.orig 2015-01-09 06:58:19.000000000 -0700
+++ ./src/tools.c 2015-01-12 20:00:00.000000000 -0700
@@ -17,9 +17,33 @@ NTL_START_IMPL
NTL_THREAD_LOCAL void (*ErrorCallback)() = 0;
@ -41,7 +42,7 @@
+ ErrorCallbackContext = context;
+}
void Error(const char *s)
void TerminalError(const char *s)
{
+ if (ErrorCallbackFunction != NULL)
+ ErrorCallbackFunction(s, ErrorCallbackContext);

View File

@ -11,7 +11,7 @@
Summary: High-performance algorithms for vectors, matrices, and polynomials
Name: ntl
Version: 6.2.1
Version: 8.1.0
Release: 1%{?dist}
License: GPLv2+
@ -140,7 +140,7 @@ done
%files
%doc README
%license doc/copying.txt
%{_libdir}/libntl.so.5*
%{_libdir}/libntl.so.9*
%files devel
%doc doc/*
@ -154,6 +154,9 @@ done
%changelog
* Thu Jan 15 2015 Jerry James <loganjerry@gmail.com> - 8.1.0-1
- ntl-8.1.0
* Tue Oct 28 2014 Jerry James <loganjerry@gmail.com> - 6.2.1-1
- ntl-6.2.1
- Fix license handling

View File

@ -1 +1 @@
00b7e1cab9bf9b0eae2ad9beab4b0fc9 ntl-6.2.1.tar.gz
9f03248c3c94469f59c58755e87fab7e ntl-8.1.0.tar.gz