1
0
forked from pool/gap-float

- Update to release 1.0.4

OBS-URL: https://build.opensuse.org/package/show/science/gap-float?expand=0&rev=24
This commit is contained in:
Jan Engelhardt 2024-02-08 15:11:05 +00:00 committed by Git OBS Bridge
parent b2171d41d3
commit 0632eeb14e
5 changed files with 12 additions and 55 deletions

View File

@ -1,49 +0,0 @@
From f952fd99fc1b6934708ae64cbe92ec1c1ec4e419 Mon Sep 17 00:00:00 2001
From: Jerome Benoit <quartermaster@rezozer.net>
Date: Sun, 3 Jul 2022 17:11:31 +0200
Subject: [PATCH] fplll: fix namespace issue
Description: fix fplll namespace issue
Upstream maintainer of FPLLL has removed from `root` fplll.h
'using namespace fplll' (commit e886a8899f71ca78711fdf420e6817432b2fe4be),
this patch mimics the former behviour at the scale of this package.
Origin: vendor, Debian
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2022-07-03
---
m4/ac_check_fplll.m4 | 5 ++++-
src/fplll.C | 2 ++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/m4/ac_check_fplll.m4 b/m4/ac_check_fplll.m4
index a6e2945..224f87c 100644
--- a/m4/ac_check_fplll.m4
+++ b/m4/ac_check_fplll.m4
@@ -68,7 +68,10 @@ if test "$found_fplll" = false; then
AX_CXX_COMPILE_STDCXX([11],[noext],[mandatory])
AC_CHECK_HEADER(fplll.h,[found_fplll=true],[found_fplll=false],[#include <mpfr.h>])
AC_MSG_CHECKING([for lllReduction in -fplll (version 5.x)])
- AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <fplll.h>],[ZZ_mat<mpz_t> M(3,3);lll_reduction(M, 0.99, 0.51, LM_WRAPPER);])],[AC_MSG_RESULT([yes]);found_fplll=5],[AC_MSG_RESULT([no]);found_fplll=false])
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#include <fplll.h>
+using namespace fplll;
+]],[ZZ_mat<mpz_t> M(3,3);lll_reduction(M, 0.99, 0.51, LM_WRAPPER);])],[AC_MSG_RESULT([yes]);found_fplll=5],[AC_MSG_RESULT([no]);found_fplll=false])
fi
AC_LANG_POP([C++])
diff --git a/src/fplll.C b/src/fplll.C
index 45241c2..832c7b1 100644
--- a/src/fplll.C
+++ b/src/fplll.C
@@ -23,6 +23,8 @@
#include "floattypes.h"
#include <fplll.h>
+using namespace fplll;
+
typedef Obj (*ObjFunc)(); // I never could get the () and * right
--
2.38.1

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0afd65441844ba3a02670f6057d79c3aba77b9a5d0ec6861e215a33bd2b9405
size 662629

3
float-1.0.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dcdca5c2cb6428cf7d257e2ef71ec98f2b3eb62d3b2907fda416ac9ecf65e63e
size 764754

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 8 15:10:53 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.0.4
* No changelog was provided
- Delete 0001-fplll-fix-namespace-issue.patch (merged)
-------------------------------------------------------------------
Sun Nov 27 23:28:35 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package gap-float
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: gap-float
Version: 1.0.3
Version: 1.0.4
Release: 0
Summary: GAP: Integration of mpfr, mpfi, mpc, fplll and cxsc in GAP
License: GPL-3.0-or-later
@ -25,7 +25,6 @@ Group: Productivity/Scientific/Math
URL: https://gap-packages.github.io/float/
#Git-Clone: https://github.com/gap-packages/float
Source: https://github.com/gap-packages/float/releases/download/v%version/float-%version.tar.gz
Patch1: 0001-fplll-fix-namespace-issue.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gap-devel >= 4.11