check machine epsilon
This commit is contained in:
parent
355dbd1c30
commit
368bf8cc23
1 changed files with 22 additions and 7 deletions
29
cppad.spec
29
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 <cfloat>\\
|
||||
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 <bradbell at seanet dot com> 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 <bradbell at seanet dot com> 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 <bradbell at seanet dot com> 20071229-2
|
||||
Cygwin's verison of md5sum puts a <space><star> between the check sum
|
||||
Cygwin's version of md5sum puts a <space><star> 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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue