Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb4cfa3b88 | ||
|
|
43eb53e13a | ||
|
|
e4ecd5e222 | ||
|
|
d578e4febe |
5 changed files with 79 additions and 52 deletions
|
|
@ -1 +0,0 @@
|
||||||
cppad-20080403.gpl.tgz
|
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
cppad-20100101.4.gpl.tgz
|
||||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: cppad
|
|
||||||
# $Id$
|
|
||||||
NAME := cppad
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
106
cppad.spec
106
cppad.spec
|
|
@ -1,7 +1,3 @@
|
||||||
# ----------------------------------------------------------------------------
|
|
||||||
# RPM source for this version of cppad.spec:
|
|
||||||
# http://www.seanet.com/~bradbell/cppad/cppad-%{version}-%{release}.fc7.src.rpm
|
|
||||||
# ----------------------------------------------------------------------------
|
|
||||||
# Known Problems:
|
# Known Problems:
|
||||||
#
|
#
|
||||||
# After installation of cppad-doc-%{version} the command
|
# After installation of cppad-doc-%{version} the command
|
||||||
|
|
@ -15,25 +11,25 @@
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
Name: cppad
|
Name: cppad
|
||||||
Version: 20080403
|
Version: 20100101.4
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: no base package is installed, see %{name}-devel and %{name}-doc
|
Summary: No base package is installed, see %{name}-devel
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://www.coin-or.org/CppAD/
|
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
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
There is no base %{name} package installation,
|
There is no base %{name} package installation, only %{name}-devel is installed.
|
||||||
only %{name}-devel and %{name}-doc sub-packages are installed.
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
%package devel
|
%package devel
|
||||||
Summary: A Package for Differentiation of C++ Algorithms
|
Summary: Development libraries for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
Provides: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
We refer to the step by step conversion from an algorithm that computes
|
We refer to the step by step conversion from an algorithm that computes
|
||||||
|
|
@ -46,46 +42,42 @@ http://en.wikipedia.org/wiki/Automatic_differentiation
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{name}-devel
|
Summary: Documentation for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
The %{name}-doc package contains the html and xml documentation for
|
The %{name}-doc package contains the xml documentation for
|
||||||
the %{name}-devel package.
|
the %{name}-devel package.
|
||||||
|
Links to an html version of the %{name} documentaiton,
|
||||||
|
for the most recent version of %{name}, can be found at web site
|
||||||
|
http://www.coin-or.org/CppAD/.
|
||||||
|
In addition, printable versions of the documentation
|
||||||
|
as a single web page, in both html and xml, can be found at that web site.
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%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
|
# change example/example.cpp to print out machine epsilon
|
||||||
cat << EOF > example.sed
|
cat << EOF > example.sed
|
||||||
/^int main(void)/N
|
/^int main(void)/N
|
||||||
s|^int main(void)\n{|# include <cfloat>\\
|
s|^int main(void)\n{|# include <cfloat>\\
|
||||||
int main(void)\\
|
int main(void)\\
|
||||||
{ // print machine epsilon\\
|
{ // print machine epsilon\\
|
||||||
std::cout << "DBL_EPSILON =" << DBL_EPSILON << std::endl;\\
|
std::cout << "DBL_EPSILON =" << DBL_EPSILON << std::endl;\\
|
||||||
\\
|
\\
|
||||||
|
|
|
|
||||||
EOF
|
EOF
|
||||||
sed -i.stamp example/example.cpp -f example.sed
|
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.
|
# Remove setting of permissions in documentation destination directory.
|
||||||
# Create the doc_prefix directory (if it does not already exist).
|
# Create the doc_prefix directory (if it does not already exist).
|
||||||
# (Note we are not using a postfix directory, so can overwrite its case.)
|
# (Note we are not using a postfix directory, so can overwrite its case.)
|
||||||
sed -i.stamp makefile.am \
|
sed -i.stamp makefile.am \
|
||||||
-e '/chmod -R .* $(doc_package)/d'
|
-e '/chmod -R .* $(doc_package)/d'
|
||||||
sed -i.stamp makefile.in \
|
sed -i.stamp makefile.in \
|
||||||
-e '/chmod -R .* $(doc_package)/d'
|
-e '/chmod -R .* $(doc_package)/d'
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-Documentation \
|
%configure --with-Documentation \
|
||||||
--with-Example \
|
--with-Example \
|
||||||
|
|
@ -100,10 +92,16 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
%check
|
%check
|
||||||
example/example
|
example/example
|
||||||
test_more/test_more
|
test_more/test_more
|
||||||
speed/cppad/cppad correct 123
|
speed/example/example
|
||||||
speed/double/double correct 123
|
speed/double/double correct 123
|
||||||
speed/example/example correct 123
|
speed/cppad/cppad correct 123
|
||||||
|
speed/cppad/cppad correct 123 optimize
|
||||||
|
speed/cppad/cppad correct 123 retape
|
||||||
|
speed/cppad/cppad correct 123 optimize retape
|
||||||
speed/profile/profile correct 123
|
speed/profile/profile correct 123
|
||||||
|
speed/profile/profile correct 123 optimize
|
||||||
|
speed/profile/profile correct 123 retape
|
||||||
|
speed/profile/profile correct 123 optimize retape
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
# cleanup
|
# cleanup
|
||||||
|
|
@ -120,6 +118,56 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 08 2010 Brad Bell <bradbell at seanet dot com> - 20100101.4-1
|
||||||
|
- Use new upstream source which has bug fix at revision
|
||||||
|
- https://projects.coin-or.org/CppAD/changeset/1698
|
||||||
|
|
||||||
|
* Wed Mar 31 2010 Brad Bell <bradbell at seanet dot com> - 20100101.2-1
|
||||||
|
- Use new upstream source with bug fixes at revision
|
||||||
|
- https://projects.coin-or.org/CppAD/changeset/1664
|
||||||
|
- and remove patch from Wed Feb 10 2010.
|
||||||
|
|
||||||
|
* Wed Feb 10 2010 Brad Bell <bradbell at seanet dot com> - 20100101.0-2
|
||||||
|
- Patch sources for bug fix between 20100101.0 and 20100101.1.
|
||||||
|
- This should no longer be necessary once a new upstream source is loaded.
|
||||||
|
|
||||||
|
* Sat Jan 01 2010 Brad Bell <bradbell at seanet dot com> - 20100101.0-1
|
||||||
|
- Use new upstream source.
|
||||||
|
- Remove out of date comment about where this spec file is maintained.
|
||||||
|
- Remove patches that are no longer necessary in prep section.
|
||||||
|
- Change calling sequence for correctness of speed tests (we do not run speed
|
||||||
|
- tests, that requires a computer with no other processes running).
|
||||||
|
|
||||||
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090303.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jun 20 2009 Brad Bell <bradbell at seanet dot com> 20090303-4
|
||||||
|
- Patch cppad/local/fun_construct.hpp to give a more useful error message
|
||||||
|
- (so we can figure out why the Fedora 11 build is failing).
|
||||||
|
|
||||||
|
* Mon Jun 06 2009 Brad Bell <bradbell at seanet dot com> 20090303-3
|
||||||
|
- Patch file test_more/jacobian.cpp (required for versions below 20090606).
|
||||||
|
- Patch file cppad/local/default.hpp (required for versions below 20090606).
|
||||||
|
- Fix version (change 20080303 to 20090303) in previous two log entries.
|
||||||
|
|
||||||
|
* Mon Mar 30 2009 Brad Bell <bradbell at seanet dot com> 20090303-2
|
||||||
|
- Change tabs to spaces in spec file to avoid an rpmlint warning.
|
||||||
|
- The base package in previous release had no files, hence did not exist.
|
||||||
|
- Use Provides: in cppad-devel to indicate that it provides cppad.
|
||||||
|
|
||||||
|
* Sun Mar 29 2009 Brad Bell <bradbell at seanet dot com> 20090303-1
|
||||||
|
- Change to newer version of cppad.
|
||||||
|
- Create a base package that requres both devel and doc sub-packages
|
||||||
|
|
||||||
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080826.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
* 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).
|
||||||
|
- Add retape argument to check programs in speed directory.
|
||||||
|
|
||||||
* Fri Apr 04 2008 Brad Bell <bradbell at seanet dot com> 20080403-3
|
* Fri Apr 04 2008 Brad Bell <bradbell at seanet dot com> 20080403-3
|
||||||
- Patch speed/main.cpp work with newer version of gcc
|
- Patch speed/main.cpp work with newer version of gcc
|
||||||
- (speed/main.cpp had not been tested with new 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
|
ff39d739635985ee78c7572f6ec9b03c cppad-20100101.4.gpl.tgz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue