From 254cef592b3686fd111cafc01a7f99e851dec7e0cf2b97cf3f4cc84e64f025b2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 19 Aug 2024 21:10:04 +0000 Subject: [PATCH 1/2] [info=70ce1eebb3b1cfd803ac75831f6015615436b0fffd220113f7fb78fc7c4d0107] OBS-URL: https://build.opensuse.org/package/show/science/givaro?expand=0&rev=28 --- .gitattributes | 23 ++++ .gitignore | 1 + ...issing-include-cstdint-for-u-int64_t.patch | 26 ++++ _scmsync.obsinfo | 4 + build.specials.obscpio | 3 + givaro-4.2.0.tar.gz | 3 + givaro-doc-no-build-time.patch | 18 +++ givaro.changes | 86 ++++++++++++ givaro.spec | 128 ++++++++++++++++++ 9 files changed, 292 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0001-Add-missing-include-cstdint-for-u-int64_t.patch create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 givaro-4.2.0.tar.gz create mode 100644 givaro-doc-no-build-time.patch create mode 100644 givaro.changes create mode 100644 givaro.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/0001-Add-missing-include-cstdint-for-u-int64_t.patch b/0001-Add-missing-include-cstdint-for-u-int64_t.patch new file mode 100644 index 0000000..ba73164 --- /dev/null +++ b/0001-Add-missing-include-cstdint-for-u-int64_t.patch @@ -0,0 +1,26 @@ +From c7744bb133496cd7ac04688f345646d505e1bf52 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Thu, 19 Jan 2023 09:12:22 -0500 +Subject: [PATCH] Add missing #include for (u)int64_t + +Fixes failure to compile on GCC 13. +--- + src/library/poly1/givdegree.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/library/poly1/givdegree.h b/src/library/poly1/givdegree.h +index 3753a425..eb85a0dd 100644 +--- a/src/library/poly1/givdegree.h ++++ b/src/library/poly1/givdegree.h +@@ -19,6 +19,8 @@ + #ifndef __GIVARO_poly1degree_H + #define __GIVARO_poly1degree_H + ++#include ++ + #include + + namespace Givaro { +-- +2.40.0 + diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..ef0b9dd --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1680018713 +commit: 70ce1eebb3b1cfd803ac75831f6015615436b0fffd220113f7fb78fc7c4d0107 +url: https://src.opensuse.org/jengelh/givaro +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..0292344 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ecb97d430bf487499f9ebb5747bb2113e53dabbd8fba52a11d91cbbb001134b +size 256 diff --git a/givaro-4.2.0.tar.gz b/givaro-4.2.0.tar.gz new file mode 100644 index 0000000..e287b27 --- /dev/null +++ b/givaro-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:865e228812feca971dfb6e776a7bc7ac959cf63ebd52b4f05492730a46e1f189 +size 969595 diff --git a/givaro-doc-no-build-time.patch b/givaro-doc-no-build-time.patch new file mode 100644 index 0000000..5604fea --- /dev/null +++ b/givaro-doc-no-build-time.patch @@ -0,0 +1,18 @@ +From: dmitry_r@opensuse.org +Date: Thu May 23 16:16:10 UTC 2013 + +Delete timestamp from documentation. + +Index: givaro-3.7.2/docs/Doxyfile.mod +=================================================================== +--- givaro-3.7.2.orig/docs/Doxyfile.mod ++++ givaro-3.7.2/docs/Doxyfile.mod +@@ -974,7 +974,7 @@ HTML_COLORSTYLE_GAMMA = 80 + # page will contain the date and time when the page was generated. Setting + # this to NO can help when comparing the output of multiple runs. + +-HTML_TIMESTAMP = YES ++HTML_TIMESTAMP = NO + + # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, + # files or namespaces will be aligned in HTML using tables. If set to diff --git a/givaro.changes b/givaro.changes new file mode 100644 index 0000000..da817e3 --- /dev/null +++ b/givaro.changes @@ -0,0 +1,86 @@ +------------------------------------------------------------------- +Tue Mar 28 08:47:39 UTC 2023 - Jan Engelhardt + +- Add 0001-Add-missing-include-cstdint-for-u-int64_t.patch + +------------------------------------------------------------------- +Tue Dec 14 10:39:12 UTC 2021 - Jan Engelhardt + +- Update to 4.2.0 + * Change in the API for random iterators + * New Modular ring over RecInt::rint elements + * Fixed the max cardinalities for rings +- Drop reproducible.patch (merged) + +------------------------------------------------------------------- +Sat Aug 24 16:03:43 UTC 2019 - Jan Engelhardt + +- Update to new upstream release 4.1.1 + * Rewrote the Modular field code + +------------------------------------------------------------------- +Fri Jul 13 03:15:55 UTC 2018 - bwiedemann@suse.com + +- Add reproducible.patch to disable compile-time CPU detection (boo#1100677) + +------------------------------------------------------------------- +Mon Dec 25 19:48:10 UTC 2017 - jengelh@inai.de + +- Update to new upstream release 4.0.4 + * build: fix SIMD detection script +- Drop 0001-pkgconfig-file-must-not-have-non-I-flags.patch + +------------------------------------------------------------------- +Sat Sep 9 21:59:22 UTC 2017 - jengelh@inai.de + +- Add 0001-pkgconfig-file-must-not-have-non-I-flags.patch. +- Build with --disable-simd to get host-agnostic build results. + +------------------------------------------------------------------- +Thu Oct 20 19:33:43 UTC 2016 - jengelh@inai.de + +- Update to new upstream release 4.0.2 +* No changelog was provided +- Remove new-abi.diff + +------------------------------------------------------------------- +Sat Mar 12 21:33:59 UTC 2016 - jengelh@inai.de + +- Update to new upstream release 4.0.1 +* This release is compatible with fflas-ffpack-2.2.0 and + linbox-1.4.0. +* Added a pkgconfig file for givaro +- Add new-abi.diff + +------------------------------------------------------------------- +Sat Nov 14 10:21:24 UTC 2015 - jengelh@inai.de + +- Update to new upstream release 4.0.0 +* No upstream changelog was provided + +------------------------------------------------------------------- +Sat Oct 11 18:46:20 UTC 2014 - jengelh@inai.de + +- Require a minimum doxygen version for proper symlink handling + as used during givaro build. +- Move patch description to the patch. + +------------------------------------------------------------------- +Sat Aug 9 23:28:11 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 3.8.0 +* No upstream changelog was provided + +------------------------------------------------------------------- +Thu May 23 16:16:10 UTC 2013 - dmitry_r@opensuse.org + +- Replace tarball by the original variant +- Replace duplicate files by links +- Delete timestamp from documentation + * givaro-doc-no-build-time.patch +- Fix SLE11 build + +------------------------------------------------------------------- +Sun May 19 20:30:35 UTC 2013 - jengelh@inai.de + +- Initial package (version 3.7.2) for build.opensuse.org diff --git a/givaro.spec b/givaro.spec new file mode 100644 index 0000000..f011d56 --- /dev/null +++ b/givaro.spec @@ -0,0 +1,128 @@ +# +# spec file for package givaro +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: givaro +%define lname libgivaro9 +Version: 4.2.0 +Release: 0 +Summary: C++ library for arithmetic and algebraic computations +License: CECILL-B +Group: Productivity/Scientific/Math +URL: https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro/ + +#Git-Clone: https://github.com/linbox-team/givaro +Source: https://github.com/linbox-team/givaro/releases/download/v%version/%name-%version.tar.gz +Patch1: givaro-doc-no-build-time.patch +Patch2: 0001-Add-missing-include-cstdint-for-u-int64_t.patch +# Old doxygen does not properly handle symlink recursion +BuildRequires: doxygen >= 1.5.7.1 +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: gmp-devel >= 3.1.1 +BuildRequires: graphviz +BuildRequires: libtool >= 2.2 +BuildRequires: pkg-config + +%description +Givaro is a C++ library for arithmetic and algebraic computations. + +%package -n %lname +Summary: C++ library for arithmetic and algebraic computations +Group: System/Libraries + +%description -n %lname +Givaro is a C++ library for arithmetic and algebraic computations. + +Its main features are implementations of the basic arithmetic of many +mathematical entities: Primes fields, Extensions Fields, Finite +Fields, Finite Rings, Polynomials, Algebraic numbers, Arbitrary +precision integers and rationals. It also provides data structures +and templated classes for the manipulation of basic algebraic +objects, such as vectors, matrices (dense, sparse, structured), +univariate polynomials (and therefore recursive multivariate). + +It contains different program modules and is fully compatible with +the LinBox linear algebra library and the KAAPI kernel for +Adaptative, Asynchronous Parallel and Interactive programming. + +%package devel +Summary: Development files for Givaro, an algorithmic-algebraic computation library +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +Givaro is a C++ library for arithmetic and algebraic computations. + +Its main features are implementations of the basic arithmetic of many +mathematical entities: Primes fields, Extensions Fields, Finite +Fields, Finite Rings, Polynomials, Algebraic numbers, Arbitrary +precision integers and rationals. + +This subpackage contains the include files and library links for +developing against the Givaro library. + +%package doc +Summary: API documentation for the Givaro library, in HTML +Group: Documentation/HTML +BuildArch: noarch + +%description doc +Givaro is a C++ library for arithmetic and algebraic computations. + +This subpackage contains the Doxygen-generated HTML documentation for +the Givaro API. + +%prep +%autosetup -p1 + +%build +autoreconf -fi +%configure --disable-static --enable-doc --with-docdir="%_docdir/%name" \ + --enable-silent-rules --disable-simd --without-archnative +chmod a+x givaro-config +%make_build + +%install +%make_install +rm -f "%buildroot/%_libdir"/*.la +%fdupes -s %buildroot/%_docdir/%name/givaro-html/ + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%_libdir/libgivaro.so.* +%license COPYRIGHT COPYING + +%files devel +%_bindir/givaro-config +%_datadir/givaro/ +%_includedir/givaro-config.h +%_includedir/givaro/ +%_includedir/gmp++/ +%_includedir/recint/ +%_libdir/libgivaro.so +%_libdir/pkgconfig/givaro.pc + +%files doc +%dir %_docdir/%name/ +%exclude %_docdir/%name/givaro-html/INSTALL +%_docdir/%name/givaro.html +%_docdir/%name/givaro-html/ + +%changelog From f06db753dc3963cfcac357a9155ae07585ce9a9f2705e6c769fb24bd12a183c2 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 19 Aug 2024 21:16:34 +0000 Subject: [PATCH 2/2] [info=c0009e685bb3b4638ef28b4bb4d9639b44ad0e59ca41a4eb167376d30c9697e4] OBS-URL: https://build.opensuse.org/package/show/science/givaro?expand=0&rev=29 --- _scmsync.obsinfo | 4 ++-- build.specials.obscpio | 2 +- gcc14.patch | 20 ++++++++++++++++++++ givaro.changes | 5 +++++ givaro.spec | 1 + 5 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 gcc14.patch diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index ef0b9dd..a2b3b62 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1680018713 -commit: 70ce1eebb3b1cfd803ac75831f6015615436b0fffd220113f7fb78fc7c4d0107 +mtime: 1724102463 +commit: c0009e685bb3b4638ef28b4bb4d9639b44ad0e59ca41a4eb167376d30c9697e4 url: https://src.opensuse.org/jengelh/givaro revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index 0292344..85af6fa 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6ecb97d430bf487499f9ebb5747bb2113e53dabbd8fba52a11d91cbbb001134b +oid sha256:a6d7e40b79f3eafa698ed969435029c7ccc2b4e885cae2f3681421d630ec5627 size 256 diff --git a/gcc14.patch b/gcc14.patch new file mode 100644 index 0000000..9c93879 --- /dev/null +++ b/gcc14.patch @@ -0,0 +1,20 @@ +References: https://github.com/linbox-team/givaro/issues/226 + +The reference to a singleton element should not be copied. + +--- + src/kernel/integer/random-integer.h | 1 - + 1 file changed, 1 deletion(-) + +Index: givaro-4.2.0/src/kernel/integer/random-integer.h +=================================================================== +--- givaro-4.2.0.orig/src/kernel/integer/random-integer.h ++++ givaro-4.2.0/src/kernel/integer/random-integer.h +@@ -91,7 +91,6 @@ namespace Givaro + if (this != &R) { + _bits = R._bits; + _integer = R._integer; +- const_cast(_ring)=R._ring; + } + return *this; + } diff --git a/givaro.changes b/givaro.changes index da817e3..0e7be42 100644 --- a/givaro.changes +++ b/givaro.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 19 21:14:59 UTC 2024 - Jan Engelhardt + +- Add gcc14.patch + ------------------------------------------------------------------- Tue Mar 28 08:47:39 UTC 2023 - Jan Engelhardt diff --git a/givaro.spec b/givaro.spec index f011d56..1a63970 100644 --- a/givaro.spec +++ b/givaro.spec @@ -29,6 +29,7 @@ URL: https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro/ Source: https://github.com/linbox-team/givaro/releases/download/v%version/%name-%version.tar.gz Patch1: givaro-doc-no-build-time.patch Patch2: 0001-Add-missing-include-cstdint-for-u-int64_t.patch +Patch3: gcc14.patch # Old doxygen does not properly handle symlink recursion BuildRequires: doxygen >= 1.5.7.1 BuildRequires: fdupes