[libfplll/f18] Add extra compatibility support with fplll3 (#868579)
pcpa
pcpa at fedoraproject.org
Sun Oct 21 00:26:28 UTC 2012
commit 31b489a55430af24b47b5bd28f70ec884fac8b77
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date: Sat Oct 20 18:24:31 2012 -0300
Add extra compatibility support with fplll3 (#868579)
libfplll-fplllv31.patch | 29 +++++++++++++++++++++++++++++
libfplll.spec | 8 ++++++--
2 files changed, 35 insertions(+), 2 deletions(-)
---
diff --git a/libfplll-fplllv31.patch b/libfplll-fplllv31.patch
new file mode 100644
index 0000000..ec38d24
--- /dev/null
+++ b/libfplll-fplllv31.patch
@@ -0,0 +1,29 @@
+diff -up libfplll-4.0.1/src/fplllv31.h.orig libfplll-4.0.1/src/fplllv31.h
+--- libfplll-4.0.1/src/fplllv31.h.orig 2012-10-20 16:12:28.312620072 -0300
++++ libfplll-4.0.1/src/fplllv31.h 2012-10-20 16:29:21.593658874 -0300
+@@ -64,7 +64,7 @@ struct heuristic : public lll31method<ZT
+ heuristic(ZZ_mat<ZT>*B, int precision = 0, double eta = LLL_DEF_ETA,
+ double delta = LLL_DEF_DELTA, int siegel = 0) :
+ lll31method<ZT, FT>(LM_HEURISTIC, 0, B, precision,
+- delta, eta, delta, siegel) {}
++ eta, delta, siegel) {}
+ };
+
+ template<class ZT, class FT>
+@@ -72,7 +72,15 @@ struct heuristic_early_red : public lll3
+ heuristic_early_red(ZZ_mat<ZT>*B, int precision = 0, double eta = LLL_DEF_ETA,
+ double delta = LLL_DEF_DELTA, int siegel = 0) :
+ lll31method<ZT, FT>(LM_HEURISTIC, LLL_EARLY_RED, B, precision,
+- delta, eta, delta, siegel) {}
++ eta, delta, siegel) {}
++};
++
++template<class ZT, class FT>
++struct proved : public lll31method<ZT, FT> {
++ proved(ZZ_mat<ZT>*B, int precision = 0, double eta = LLL_DEF_ETA,
++ double delta = LLL_DEF_DELTA, int siegel = 0) :
++ lll31method<ZT, FT>(LM_PROVED, 0, B, precision,
++ eta, delta, siegel) {}
+ };
+
+ struct wrapper {
diff --git a/libfplll.spec b/libfplll.spec
index 1f3b4ea..08ad384 100644
--- a/libfplll.spec
+++ b/libfplll.spec
@@ -1,6 +1,6 @@
Name: libfplll
Version: 4.0.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: LLL-reduces euclidean lattices
Group: System Environment/Libraries
License: LGPLv2+
@@ -9,6 +9,7 @@ Source0: http://perso.ens-lyon.fr/damien.stehle/fplll/%{name}-%{version}.
BuildRequires: mpfr-devel
+Patch0: %{name}-fplllv31.patch
%description
fpLLL-3.0 contains several algorithms on lattices that rely on
@@ -45,7 +46,7 @@ the functionality of %{name}.
%prep
%setup -q
-
+%patch0 -p1
%build
%configure --disable-static LDFLAGS="-Wl,--as-needed $RPM_LD_FLAGS"
@@ -89,6 +90,9 @@ make check
%changelog
+* Sat Oct 20 2012 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 4.0.1-2
+- Add extra compatibility support with fplll3 (#868579)
+
* Thu Sep 27 2012 Jerry James <loganjerry at gmail.com> - 4.0.1-1
- New upstream release
- Separate binaries into a -tools subpackage
More information about the scm-commits
mailing list