From 7ca8fb4ebe5989956425954450b51259d78c0fe7 Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Sat, 17 Feb 2024 04:51:11 -0700 Subject: [PATCH] Advance upstream source 20240000.3 (fixes bug). --- cppad.spec | 17 +++++++++-------- get_tarball.sh | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 8 deletions(-) create mode 100755 get_tarball.sh diff --git a/cppad.spec b/cppad.spec index 6315a76..793bd7e 100644 --- a/cppad.spec +++ b/cppad.spec @@ -28,8 +28,8 @@ # Fedora Release starts with 1; see # https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/ Name: cppad -Version: 20240000.2 -Release: 3%{?dist} +Version: 20240000.3 +Release: 1%{?dist} Summary: C++ Algorithmic Differentiation (AD), %{name}-devel and %{name}-doc # License: EPL-2.0 OR GPL-2.0-or-later @@ -168,13 +168,10 @@ fi # because they are absolute paths. Relative values would be more flexible # because they can be combined with %%{_prefix} to get absolute values. # -# 2. The last argument to the cmake command is the directory created using -# the souce code tarball. -# -# 3. The debug_all is overridden for cppad_lib by the edit of +# 2. The debug_all is overridden for cppad_lib by the edit of # cppad_lib/CMakeLists.txt above # -# 4. The gnu c++ compiler seems to be generating an incorrect warning about +# 3. The gnu c++ compiler seems to be generating an incorrect warning about # array bounds in thread_alloc.hpp. Use -Wno-array-bounds to suppress it. # # cppad_cxx_flags @@ -268,6 +265,10 @@ make %{?_smp_mflags} check # This enables one to check that the necessary files are installed. # ---------------------------------------------------------------------------- %changelog +* Sat Feb 17 2024 Brad Bell - 20240000.3-1 +- This fixes a long standing bug; see the heading 02-04 on +- https://cppad.readthedocs.io/latest/whats_new_24.html + * Wed Jan 24 2024 Fedora Release Engineering - 20240000.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild @@ -276,7 +277,7 @@ make %{?_smp_mflags} check * Wed Jan 17 2024 Brad Bell - 20240000.2-1 - Upstream moved i386 special cases into cmake script. -- Checking that othr upstream changes do not affect Fedora install. +- Checking that other upstream changes do not affect Fedora install. * Tue Jan 09 2024 Brad Bell - 20240000.1-1 - thread_alloc.hpp: i386 i686: fix allignment for doubles diff --git a/get_tarball.sh b/get_tarball.sh new file mode 100755 index 0000000..daf2942 --- /dev/null +++ b/get_tarball.sh @@ -0,0 +1,16 @@ +# /usr/bin/env bash +set -e -u +# +version=$(sed -n cppad.spec -e '/^Version:/p' | sed -e 's|^Version: *||') +url=$(sed -n cppad.spec -e '/^URL:/p' | sed -e 's|^URL: *||') +local_tarball="CppAD-${version}.tar.gz" +remote_tarball="$url/archive/$version/$local_tarball" +if [ -e "$local_tarball" ] +then + echo "get_tarball.sh: $local_tarball already exists" + exit 1 +fi +wget $tarball +# +echo 'get_tarball.sh: OK' +exit 0