6 Commits

Author SHA256 Message Date
e13872c3cf flint 3.4.0 2025-11-25 16:16:52 +01:00
564945ee5f flint 3.3.1 2025-06-16 12:04:54 +02:00
0b48a4d2ba flint 3.3.0 2025-06-12 00:39:15 +02:00
8363be0d0a flint 3.2.2 2025-04-06 18:03:14 +02:00
7cd5f79147 flint 3.2.1 2025-03-16 10:10:04 +01:00
c65db635eb flint 3.2.0 2025-03-14 13:22:53 +01:00
5 changed files with 140 additions and 15 deletions

View File

@@ -0,0 +1,59 @@
From fc593e7d0328435ec2ae6a79936eb3640caebc02 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Sun, 16 Mar 2025 09:54:20 +0100
Subject: [PATCH] build: reduce build requirements on gmp and mpfr
References: https://github.com/flintlib/flint/pull/2260
For Leap 15.6.
---
configure.ac | 13 +++++++++++--
flint.pc.in | 2 +-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 511d0be9a..cc1658dbb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -978,7 +978,15 @@ fi
# check GMP
################################################################################
-FLINT_CHECK_GMP_H(6,2,1)
+AS_IF([test "$enable_gmp_internals" = "yes"], [
+ FLINT_CHECK_GMP_H(6,2,1)
+ GMP_REQUIREMENT="6.2.1"
+], [
+ dnl Dependency on mpn_zero_p
+ FLINT_CHECK_GMP_H(6,1,0)
+ GMP_REQUIREMENT="6.1.0"
+])
+AC_SUBST([GMP_REQUIREMENT])
FLINT_GMP_LONG_LONG_LIMB([SLONG="long long int"
ULONG="unsigned long long int"
gmpcompat_h_in="gmpcompat-longlong.h.in"],
@@ -1001,7 +1009,8 @@ AC_SUBST(GMPCOMPAT_H_IN, $gmpcompat_h_in)
# check MPFR
################################################################################
-FLINT_CHECK_MPFR_H(4,1,0)
+dnl Dependency on mpfr_rootn_ui
+FLINT_CHECK_MPFR_H(4,0,0)
################################################################################
# check ABI
diff --git a/flint.pc.in b/flint.pc.in
index f17a2a9e6..138fcbb16 100644
--- a/flint.pc.in
+++ b/flint.pc.in
@@ -7,6 +7,6 @@ Name: @PACKAGE_NAME@
Description: Fast Library for Number Theory
Version: @PACKAGE_VERSION@
URL: https://flintlib.org/
-Requires: gmp >= 6.2.1 mpfr >= 4.1.0
+Requires: gmp >= @GMP_REQUIREMENT@ mpfr >= 4.0.0
Cflags: -I${includedir}
Libs: -L${libdir} -lflint
--
2.48.1

Binary file not shown.

BIN
flint-3.4.0.tar.xz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,67 @@
-------------------------------------------------------------------
Tue Nov 25 14:50:50 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.4.0
* Added functions for computing the matrix permanent
(gr_mat_permanent, _cofactor, _ryser, _glynn)
* Multithreaded matrix permanent
* Added fmpz_mat_permanent, fmpq_mat_permanent and specialize in
gr_mat_permanent
* Added gr_poly_product_roots
* Added asymptotically fast interpolation for gr_poly
* Port naive LLL reduction checks to gr_mat; speed up fmpz_mat
versions
* Added generic Newton solver for (homogeneous) systems of linear
ODEs with rational function coefficients
* Added QR and LQ factorization (gr_mat_gr, gr_mat_lq)
* Added LLL parameters delta, eta in arb_mat_spd_lll_reduce and
arb_mat_spd_is_lll_reduced
* Added flint_mpn_mulmod_precond
* Added gr_mpoly_derivative and gr_mpoly_integral
* Added nmod_vec_invert: invert an array of nmod coefficients
* Added nmod_poly_mulmod_precond
* Naive Buchberger algorithm for fmpz_mod_mpoly
* Added gr_derivative_gen, with implementations for polynomial
rings
-------------------------------------------------------------------
Mon Jun 16 10:04:20 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.3.1
* gr_mat_lu_classical: set permutation vector even if there are 0
columns
-------------------------------------------------------------------
Wed Jun 11 22:37:35 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.3.0
* This release includes major speedups for the acb_theta module,
using strides instead of row pointers in all matrix types, and
a lot of additions to the gr module, the Generic Rings module
in FLINT.
-------------------------------------------------------------------
Mon Mar 31 09:19:18 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.2.2
* Ditch assumption that the rbit instruction exists on aarch64
* Fix assertion failure because of an unitialized variable
-------------------------------------------------------------------
Sun Mar 16 09:04:11 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.2.1
* Better host triplet identification for Zen
- Add 0001-build-reduce-build-requirements-on-gmp-and-mpfr.patch
-------------------------------------------------------------------
Fri Mar 14 08:06:03 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.2.0
* New modules ``mpn_mod`` and ``nfloat`` for packed fixed-size
modulo arithmetic and packed fixed-size floating-point
arithmetic, respectively.
-------------------------------------------------------------------
Wed May 8 11:32:10 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package flint
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,29 @@
Name: flint
%define lname libflint19
Version: 3.1.3
%define lname libflint22
%define _lto_cflags %nil %dnl ASM in source
Version: 3.4.0
Release: 0
Summary: C library for doing number theory
License: LGPL-3.0-or-later
Group: Productivity/Scientific/Math
URL: https://flintlib.org/
# doc/source/history.rst for changelog
#Git-Clone: https://github.com/flintlib/flint
#NEWS: doc/source/history.rst
Source: https://github.com/flintlib/flint/releases/download/v%version/flint-%version.tar.xz
Patch1: 0001-build-reduce-build-requirements-on-gmp-and-mpfr.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
%if 0%{?suse_version} < 1600
BuildRequires: gmp-devel >= 6.1.2
%else
BuildRequires: gmp-devel >= 6.2.1
%endif
BuildRequires: libtool
BuildRequires: mpfr-devel >= 4.1.0
BuildRequires: pkgconfig(mpfr) >= 4
BuildRequires: ntl-devel
BuildRequires: xz
@@ -78,11 +83,9 @@ developing against the FLINT library.
%autosetup -p1
%build
if test ! -e configure; then
./bootstrap.sh
fi
autoreconf -fi
%configure \
%if 0%{?suse_version} < 1590
%if 0%{?suse_version} < 1600
--enable-gmp-internals=no \
%endif
--disable-static --enable-reentrant --with-ntl
@@ -107,8 +110,7 @@ done
ln -s ../flint/fmpz_mpoly.h "$b/%_includedir/calcium/utils_flint.h"
%fdupes %buildroot/%_prefix
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%ldconfig_scriptlets -n %lname
%files -n %lname
%_libdir/libflint.so.*