cppad: new version for Fedora 10
This commit is contained in:
parent
8c03175d6f
commit
434892206d
3 changed files with 15 additions and 14 deletions
|
|
@ -1 +1 @@
|
|||
cppad-20080403.gpl.tgz
|
||||
cppad-20080826.0.gpl.tgz
|
||||
|
|
|
|||
25
cppad.spec
25
cppad.spec
|
|
@ -15,14 +15,14 @@
|
|||
# ----------------------------------------------------------------------------
|
||||
|
||||
Name: cppad
|
||||
Version: 20080403
|
||||
Release: 3%{?dist}
|
||||
Version: 20080826.0
|
||||
Release: 1%{?dist}
|
||||
Summary: no base package is installed, see %{name}-devel and %{name}-doc
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPLv2
|
||||
URL: http://www.coin-or.org/CppAD/
|
||||
Source: http://www.coin-or.org/CppAD/download/%{name}-%{version}.gpl.tgz
|
||||
Source: http://www.coin-or.org/download/source/CppAD/%{name}-%{version}.gpl.tgz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
|
|
@ -57,11 +57,6 @@ the %{name}-devel package.
|
|||
%prep
|
||||
%setup -q
|
||||
|
||||
# fix errors errors found by newer version of gcc
|
||||
sed -i.stamp speed/main.cpp \
|
||||
-e 's/^# include <cstdlib>/# include <cstring>\n&/' \
|
||||
-e 's/char \*option\[\]=/const &/'
|
||||
|
||||
# change example/example.cpp to print out machine epsilon
|
||||
cat << EOF > example.sed
|
||||
/^int main(void)/N
|
||||
|
|
@ -100,10 +95,11 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||
%check
|
||||
example/example
|
||||
test_more/test_more
|
||||
speed/cppad/cppad correct 123
|
||||
speed/double/double correct 123
|
||||
speed/example/example correct 123
|
||||
speed/profile/profile correct 123
|
||||
speed/cppad/cppad correct 123 true
|
||||
speed/cppad/cppad correct 123 false
|
||||
speed/double/double correct 123 true
|
||||
speed/example/example
|
||||
speed/profile/profile correct 123 true
|
||||
|
||||
%clean
|
||||
# cleanup
|
||||
|
|
@ -120,6 +116,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
# ----------------------------------------------------------------------------
|
||||
%changelog
|
||||
* Tue Oct 08 2008 Brad Bell <bradbell at seanet dot com> 20080826-1
|
||||
- Change to newer version of cppad.
|
||||
- Change download directory to standard coin-or location.
|
||||
- Remove editing of speed/main.cpp (no longer necessary).
|
||||
|
||||
* Fri Apr 04 2008 Brad Bell <bradbell at seanet dot com> 20080403-3
|
||||
- Patch speed/main.cpp work with newer version of gcc
|
||||
- (speed/main.cpp had not been tested with new version of gcc.)
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
3e8c389e5097267410eb5c53241eb230 cppad-20080403.gpl.tgz
|
||||
a9c7e2af215564f7ee097e8901af5e97 cppad-20080826.0.gpl.tgz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue