From a2e0e656ed27b38392b0d7c3455de07819eea496 Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Sun, 9 Jan 2011 08:32:41 -0800 Subject: [PATCH] Upgrade to version 2011 of cppad. --- .gitignore | 1 + cppad.spec | 30 +++++++++++++----------------- sources | 2 +- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index d943cbd..89ba11d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ cppad-20100101.4.gpl.tgz +/cppad-20110101.0.gpl.tgz diff --git a/cppad.spec b/cppad.spec index 287097e..065ec0b 100644 --- a/cppad.spec +++ b/cppad.spec @@ -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 - 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 - 20100101.4-1 - Use new upstream source which has bug fix at revision - https://projects.coin-or.org/CppAD/changeset/1698 diff --git a/sources b/sources index 1aadac6..1b45ca4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ff39d739635985ee78c7572f6ec9b03c cppad-20100101.4.gpl.tgz +d25559c1adb7bbdbb254206b7464dc78 cppad-20110101.0.gpl.tgz