Upgrade to version 2011 of cppad.

This commit is contained in:
Brad Bell 2011-01-09 08:32:41 -08:00
commit a2e0e656ed
3 changed files with 15 additions and 18 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
cppad-20100101.4.gpl.tgz
/cppad-20110101.0.gpl.tgz

View file

@ -11,7 +11,7 @@
# ----------------------------------------------------------------------------
Name: cppad
Version: 20100101.4
Version: 20110101.0
Release: 1%{?dist}
Summary: No base package is installed, see %{name}-devel
@ -58,6 +58,10 @@ as a single web page, in both html and xml, can be found at that web site.
%prep
%setup -q
# abs_top_builddir is misisng from definitions in makefile.in
# (should be fixed in future versions of cppad)
sed -i makefile.in -e 's/abs_top_builddir/ABS_TOP_SRCDIR/'
# change example/example.cpp to print out machine epsilon
cat << EOF > example.sed
/^int main(void)/N
@ -79,10 +83,7 @@ sed -i.stamp makefile.in \
-e '/chmod -R .* $(doc_package)/d'
%build
%configure --with-Documentation \
--with-Example \
--with-TestMore \
--with-Speed
%configure --with-Documentation
make %{?_smp_mflags}
%install
@ -90,18 +91,7 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%check
example/example
test_more/test_more
speed/example/example
speed/double/double correct 123
speed/cppad/cppad correct 123
speed/cppad/cppad correct 123 optimize
speed/cppad/cppad correct 123 retape
speed/cppad/cppad correct 123 optimize retape
speed/profile/profile correct 123
speed/profile/profile correct 123 optimize
speed/profile/profile correct 123 retape
speed/profile/profile correct 123 optimize retape
make %{?_smp_mflags} test
%clean
# cleanup
@ -118,6 +108,12 @@ rm -rf $RPM_BUILD_ROOT
# ----------------------------------------------------------------------------
%changelog
* Sat Jan 08 2011 Brad Bell <bradbell at seanet dot com> - 20110101.0-1
- Use new major version for 2011.
- abs_top_builddir is missing from definitions in makefile.in
- (should be fixed in future versions of cppad).
- The single command "make test" now builds and runs all the tests.
* Thu Jul 08 2010 Brad Bell <bradbell at seanet dot com> - 20100101.4-1
- Use new upstream source which has bug fix at revision
- https://projects.coin-or.org/CppAD/changeset/1698

View file

@ -1 +1 @@
ff39d739635985ee78c7572f6ec9b03c cppad-20100101.4.gpl.tgz
d25559c1adb7bbdbb254206b7464dc78 cppad-20110101.0.gpl.tgz