1: Advance to 20150000.9 version of upstream source to fix some bugs.

2: Remove patch of test_more/optimize.cpp which is no longer necessary.
3: Add Provides coin-or-cppad; see
   https://bugzilla.redhat.com/show_bug.cgi?id=1197488
This commit is contained in:
Brad Bell 2015-03-02 06:47:14 -07:00
commit ab35867f88
3 changed files with 26 additions and 18 deletions

22
.gitignore vendored
View file

@ -2,14 +2,18 @@
*.swp
# ignore rpm files created by fedpkg srpm
*.rpm
# ignore log files created by fedpkg local
*.log
# ignore result drectory created by fedpkg mockbuild
results_cppad
# tarballs
cppad-20110101.5.gpl.tgz
cppad-20120101.1.gpl.tgz
/cppad-20130000.0.gpl.tgz
/cppad-20130000.1.gpl.tgz
/cppad-20130000.2.gpl.tgz
/cppad-20130000.3.gpl.tgz
/cppad-20140000.2.gpl.tgz
/cppad-20150000.4.gpl.tgz
#
# ignore tarballs and results of fedpkg local
#
cppad-20150000.4.gpl.tgz
cppad-20150000.4
#
cppad-20150000.9.gpl.tgz
cppad-20150000.9
# ---------------------------------------------------------------------------
# Running fedpkg new-sources may create entries below the line of dashes.
# Edit these entries to be above the line of dashes.

View file

@ -15,8 +15,8 @@
# ----------------------------------------------------------------------------
Name: cppad
Version: 20150000.4
Release: 3%{?dist}
Version: 20150000.9
Release: 1%{?dist}
Summary: C++ Algorithmic Differentiation (AD), %{name}-devel and %{name}-doc
# Only noarch.rpms provided. The user can compile with or without debugging
@ -30,6 +30,11 @@ Source: http://www.coin-or.org/download/source/CppAD/%{name}-%{version}.gpl.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake >= 2.8
# Requested by bug report
# https://bugzilla.redhat.com/show_bug.cgi?id=1197488
Provides: coin-or-cppad = %{version}-%{release}
Provides: coin-or-cppad-devel = %{version}-%{release}
%description
C++ Algorithmic Differentiation (AD), see %{name}-devel, %{name}-doc.
@ -90,12 +95,6 @@ sed \
-e 's|ADD_LIBRARY(speed_src|& STATIC|' \
-i.stamp speed/src/CMakeLists.txt
# Fix an exact equal check that should be a near equal check. This should
# be fixed in the upstream source and not necessary next year; i.e, 2016.
sed \
-e 's|(y\[i\] == check\[i\])|CppAD::NearEqual(y[i], check[i], 1e-10, 1e-10)|' \
-i.stamp test_more/optimize.cpp
# Remove installation of cppad_colpack.cpp becasue it is not used
# by the Fedora installation. This should be fixed in the upstream source
# and not necessary next year; i.e., 2016.
@ -168,6 +167,11 @@ make check
# ----------------------------------------------------------------------------
%changelog
* Mon Mar 02 2015 Brad Bell <bradbell at seanet dot com> - 20150000.9-1
- 1: Advance to newer version of upstream source to fix some bugs.
- 2: Remove patch of test_more/optimize.cpp which is no longer necessary.
- 3: Add Provides coin-or-cppad.
* Mon Feb 09 2015 Brad Bell <bradbell at seanet dot com> - 20150000.4-3
- 1: Change std=c++11 to std=c++98 so works with rel6 (also so works
- in f20 and f21 when std=c++11 is not specified).

View file

@ -1 +1 @@
1720334972913771209883efd384ea0a cppad-20150000.4.gpl.tgz
f32ea7faf6fd4417b5fb4cd9ed9b5542 cppad-20150000.9.gpl.tgz