From d9bdde0a4a483bf1243db0d433a06f3f80bc7c9eb5b7b15a54d48de751da8214 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Mon, 12 Jul 2021 22:51:03 +0000 Subject: [PATCH] Accepting request 902670 from home:badshah400:gcc11fix * Update to version 1.7.0.13. * Enforce '-std=c++14' for openSUSE >= 1550 to build with gcc 11, as giac codebase isn't C++17 ready. * Fix a few more script-without-shebang issues. * Drop install_info post scriptlets and associated BuildRequires; these have been managed by file triggers for a while now. OBS-URL: https://build.opensuse.org/request/show/902670 OBS-URL: https://build.opensuse.org/package/show/science/giac?expand=0&rev=10 --- giac.changes | 22 ++++++++++++++++++++++ giac.spec | 27 ++++++++++----------------- giac_1.7.0-13.tar.gz | 3 +++ 3 files changed, 35 insertions(+), 17 deletions(-) create mode 100644 giac_1.7.0-13.tar.gz diff --git a/giac.changes b/giac.changes index 0bb082a..7674f2a 100644 --- a/giac.changes +++ b/giac.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Sun Jun 27 22:33:21 UTC 2021 - Atri Bhattacharya + +- Update to version 1.7.0.13: + * polynomial system solver optimizations (rational univariate + representation computation and real root isolation). +- Changes from version 1.7.0: + * Javascript interpreter added: QuickJS. +- Changes from version 1.6.17: + * Compatibility with calculators (KhiCAS sessions for Numworks, + TI nspire CX). + * Inclusion of a MicroPython interpreter (with builtin modules + for teaching), you can switch interpreter by typing python or + xcas in an empty commandline. +- Changes from version 1.6.0: + * Improved FFT over finite field, half-GCD implementation. +- Enforce '-std=c++14' for openSUSE >= 1550 to build with gcc 11, + as giac codebase isn't C++17 ready. +- Fix a few more script-without-shebang issues. +- Drop install_info post scriptlets and associated BuildRequires; + these have been managed by file triggers for a while now. + ------------------------------------------------------------------- Fri Sep 25 10:57:20 UTC 2020 - Jan Engelhardt diff --git a/giac.spec b/giac.spec index 3e452f4..e517e45 100644 --- a/giac.spec +++ b/giac.spec @@ -1,7 +1,7 @@ # # spec file for package giac # -# Copyright (c) 2020 SUSE LLC. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,8 +18,8 @@ %bcond_with cocoa Name: giac -%define tarver 1.5.0-85 -Version: %( echo %{tarver} | sed 's/-/./' ) +%define tarver 1.7.0-13 +Version: %( echo %{tarver} | sed 's/-/./' ) %define mainver %( echo %{tarver} | sed 's/-.*//' ) %define soname 0 Release: 0 @@ -29,10 +29,10 @@ Group: Productivity/Scientific/Math URL: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html Source: http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_%{tarver}.tar.gz BuildRequires: bison -BuildRequires: byacc -BuildRequires: flex BuildRequires: blas-devel +BuildRequires: byacc BuildRequires: fdupes +BuildRequires: flex BuildRequires: fltk-devel BuildRequires: gcc-c++ BuildRequires: gcc-fortran @@ -66,8 +66,6 @@ BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xft) BuildRequires: pkgconfig(xinerama) -Requires(post): %install_info_prereq -Requires(preun): %install_info_prereq %if !%{with cocoa} BuildRequires: pkgconfig(ao) %endif @@ -129,6 +127,9 @@ usage of giac, a computer algebra system. find . -type f -iname '.*' -delete %build +%if 0%{?suse_version} >= 1550 +export CXXFLAGS+=' -std=c++14' +%endif %configure \ --enable-gui \ --enable-static=no @@ -155,6 +156,7 @@ chmod a+x %{buildroot}%{_datadir}/%{name}/doc/pari/gphtml # fix script-without-shebang chmod a-x %{buildroot}%{_datadir}/%{name}/examples/Exemples/*/*.xws chmod a-x %{buildroot}%{_datadir}/%{name}/examples/geo/*.cas +chmod a-x %{buildroot}%{_datadir}/%{name}/examples/groebner/* chmod a-x %{buildroot}%{_datadir}/%{name}/examples/lewisw/fermat_gcd_1var chmod a-x %{buildroot}%{_datadir}/%{name}/examples/lewisw/fermat_gcd_mod_1var # fix spurious-executable-perm @@ -171,16 +173,6 @@ rm %{buildroot}%{_docdir}/giac/Makefile.am %fdupes -s %{buildroot}%{_datadir} -%post -%install_info --info-dir=%{_infodir} %{_infodir}/%{name}_es.info%{ext_info} -%install_info --info-dir=%{_infodir} %{_infodir}/%{name}_us.info%{ext_info} - -%preun -if [ $1 -eq 0 ]; then -%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}_es.info%{ext_info} -%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}_us.info%{ext_info} -fi - %post -n lib%{name}%{soname} -p /sbin/ldconfig %postun -n lib%{name}%{soname} -p /sbin/ldconfig @@ -220,6 +212,7 @@ fi %{_datadir}/icons/hicolor/*/mimetypes/*xcas.png %{_datadir}/pixmaps/xcas.xpm %{_datadir}/applications/xcas.desktop +%{_datadir}/metainfo/*.xml %files -n lib%{name}%{soname} %license COPYING diff --git a/giac_1.7.0-13.tar.gz b/giac_1.7.0-13.tar.gz new file mode 100644 index 0000000..b1fc6f5 --- /dev/null +++ b/giac_1.7.0-13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d365059b895ef065f437720aca05140b87d22cec918fcc4ebbee087ca665dc93 +size 86447065