Copy of bug fix in revision

https://projects.coin-or.org/CppAD/changeset/1647
This commit is contained in:
Bradley M. Bell 2010-02-10 12:55:59 +00:00
commit cf39840d30

View file

@ -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 <bradbell at seanet dot com> - 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 <bradbell at seanet dot com> - 20100101.0-1
- Use new upstream source.
- Remove out of date comment about where this spec file is maintained.