From c1d9ba9ac75d11bcf64d10f73a25d7872f4f61f2 Mon Sep 17 00:00:00 2001 From: Bradley M. Bell Date: Feb 10 2010 12:55:59 +0000 Subject: Copy of bug fix in revision https://projects.coin-or.org/CppAD/changeset/1647 --- diff --git a/cppad.spec b/cppad.spec index 5c1b2d0..9fa3367 100644 --- a/cppad.spec +++ b/cppad.spec @@ -12,7 +12,7 @@ Name: cppad Version: 20100101.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: No base package is installed, see %{name}-devel Group: Development/Libraries @@ -58,6 +58,19 @@ as a single web page, in both html and xml, can be found at that web site. %prep %setup -q +# Bug fix in revision https://projects.coin-or.org/CppAD/changeset/1647 +if [ %{version} != "20100101.0" ] +then + echo "This bug fix should no longer be necessary" + exit 1 +fi +# +sed -i cppad/local/optimize.hpp \ +-e 's|(new_arg\[0\] == tape\[k\].new_var );|(new_arg[0] == tape[k].new_var )|' +# +sed -i cppad/local/print_op.hpp \ +-e 's|( arg\[1\] < i_z );|( arg\[1\] <= i_z );|' + # change example/example.cpp to print out machine epsilon cat << EOF > example.sed /^int main(void)/N @@ -118,6 +131,10 @@ rm -rf $RPM_BUILD_ROOT # ---------------------------------------------------------------------------- %changelog +* Wed Feb 10 2010 Brad Bell - 20100101.0-2 +- Patch sources for bug fix between 20100101.0 and 20100101.1. +- This should no longer be necessary once a new upstream source is loaded. + * Sat Jan 01 2010 Brad Bell - 20100101.0-1 - Use new upstream source. - Remove out of date comment about where this spec file is maintained.