diff --git a/cppad.spec b/cppad.spec index 093d9f5..316f8eb 100644 --- a/cppad.spec +++ b/cppad.spec @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------- Name: cppad Version: 20071229 -Release: 3%{?dist} +Release: 6%{?dist} Summary: %{name} base package (not installed) Group: Development/Libraries @@ -54,17 +54,30 @@ 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 + +# See Sat Jan 12 2008 log entry +sed -i.stamp speed/example/example.cpp -e '/Run(speed_test,/d' + +# 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 @@ -73,7 +86,6 @@ make install DESTDIR=$RPM_BUILD_ROOT %check example/example -introduction/exp_apx/exp_apx test_more/test_more speed/cppad/cppad correct 123 speed/double/double correct 123 @@ -95,15 +107,30 @@ rm -rf $RPM_BUILD_ROOT # ---------------------------------------------------------------------------- %changelog +* Sat Jan 12 2008 Brad Bell 20071229-6 +- Remove speed estimation correctness test because we are not in control of +- which other jobs are on the machine that is doing the rpmbuild. + +* Fri Jan 11 2008 Brad Bell 20071229-5 +- Remove introduction/exp_apx/exp_apx from the set of tests +- (which should have been done in 20071229-4). +- From now on test building rpm locally before making tags. + +* 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 (it only checks by hand calculations that are in +- AD Introduction 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 -changes. It appears tag was partially created, but not sure it is correct. -So I am bumping the version number. +- 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 -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. +- 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. * Sat Dec 29 2007 Brad Bell 20071229-1 - Fix gpl_license.sh in upstream source (missed some special cases).