From 368bf8cc2333a524dad4e1155a9430ca58c722fe Mon Sep 17 00:00:00 2001 From: "Bradley M. Bell" Date: Thu, 10 Jan 2008 18:37:15 +0000 Subject: [PATCH] check machine epsilon --- cppad.spec | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/cppad.spec b/cppad.spec index 093d9f5..d2f290b 100644 --- a/cppad.spec +++ b/cppad.spec @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------- Name: cppad Version: 20071229 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{name} base package (not installed) Group: Development/Libraries @@ -54,17 +54,27 @@ the %{name}-devel package. %prep %setup -q -# remove csetting of permissions in documentation destination directory +# change example/example.cpp to print out machine epsilon +cat << EOF > example.sed +/^int main(void)/N +s|^int main(void)\n{|# include \\ +int main(void)\\ +{ // print machine epsilon\\ + std::cout << "DBL_EPSILON =" << DBL_EPSILON << std::endl;\\ +\\ +| +EOF +sed -i.stamp example/example.cpp -f example.sed + +# remove setting of permissions in documentation destination directory sed -i.stamp makefile.am -e '/chmod -R .* $(docdir_3)/d' sed -i.stamp makefile.in -e '/chmod -R .* $(docdir_3)/d' %build %configure --with-Documentation \ --with-Example \ - --with-Introduction \ --with-TestMore \ - --with-Speed \ - --with-Documentation + --with-Speed make %{?_smp_mflags} %install @@ -95,13 +105,18 @@ rm -rf $RPM_BUILD_ROOT # ---------------------------------------------------------------------------- %changelog +* Thu Jan 10 2008 Brad Bell 20071229-4 +Add code to print out DBL_EPSILON at the beginning of the example tests. +Remove --with-Introduction (these tests only check by hand calculations in the +AD Introcution section of the documentation). Remove extra --with-Documentation + * Wed Jan 09 2008 Brad Bell 20071229-3 -I mistakenly tried to make tag 20071229-2 in devel before commiting local +I mistakenly tried to make tag 20071229-2 in devel before committing local changes. It appears tag was partially created, but not sure it is correct. So I am bumping the version number. * Wed Jan 09 2008 Brad Bell 20071229-2 -Cygwin's verison of md5sum puts a between the check sum +Cygwin's version of md5sum puts a between the check sum and the file name. Fedora build tools expect two spaces, so the star has was changed to a space in the devel, F-7, and F-8 sources file.