Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
fb4cfa3b88 dist-git conversion 2010-07-28 12:14:49 +00:00
Bradley M. Bell
43eb53e13a copy here from devel branch 2010-07-08 17:52:05 +00:00
Bill Nottingham
e4ecd5e222 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:33:45 +00:00
Kevin Fenzi
d578e4febe Initialize branch EL-5 for cppad 2008-04-07 03:47:02 +00:00
5 changed files with 79 additions and 52 deletions

View file

@ -1 +0,0 @@
cppad-20080403.gpl.tgz

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
cppad-20100101.4.gpl.tgz

View file

@ -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)

View file

@ -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:
#
# After installation of cppad-doc-%{version} the command
@ -15,25 +11,25 @@
# ----------------------------------------------------------------------------
Name: cppad
Version: 20080403
Release: 3%{?dist}
Summary: no base package is installed, see %{name}-devel and %{name}-doc
Version: 20100101.4
Release: 1%{?dist}
Summary: No base package is installed, see %{name}-devel
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)
%description
There is no base %{name} package installation,
only %{name}-devel and %{name}-doc sub-packages are installed.
There is no base %{name} package installation, only %{name}-devel is installed.
# ---------------------------------------------------------------------------
%package devel
Summary: A Package for Differentiation of C++ Algorithms
Summary: Development libraries for %{name}
Group: Development/Libraries
Provides: %{name} = %{version}-%{release}
%description devel
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
Summary: Documentation for %{name}-devel
Summary: Documentation for %{name}
Group: Development/Libraries
%description doc
The %{name}-doc package contains the html and xml documentation for
the %{name}-devel package.
The %{name}-doc package contains the xml documentation for
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
%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
s|^int main(void)\n{|# include <cfloat>\\
int main(void)\\
{ // print machine epsilon\\
std::cout << "DBL_EPSILON =" << DBL_EPSILON << std::endl;\\
{ // 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.
# Create the doc_prefix directory (if it does not already exist).
# (Note we are not using a postfix directory, so can overwrite its case.)
sed -i.stamp makefile.am \
-e '/chmod -R .* $(doc_package)/d'
-e '/chmod -R .* $(doc_package)/d'
sed -i.stamp makefile.in \
-e '/chmod -R .* $(doc_package)/d'
-e '/chmod -R .* $(doc_package)/d'
%build
%configure --with-Documentation \
--with-Example \
@ -100,10 +92,16 @@ make install DESTDIR=$RPM_BUILD_ROOT
%check
example/example
test_more/test_more
speed/cppad/cppad correct 123
speed/example/example
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 optimize
speed/profile/profile correct 123 retape
speed/profile/profile correct 123 optimize retape
%clean
# cleanup
@ -120,6 +118,56 @@ rm -rf $RPM_BUILD_ROOT
# ----------------------------------------------------------------------------
%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
- Patch speed/main.cpp work with newer version of gcc
- (speed/main.cpp had not been tested with new version of gcc.)

View file

@ -1 +1 @@
3e8c389e5097267410eb5c53241eb230 cppad-20080403.gpl.tgz
ff39d739635985ee78c7572f6ec9b03c cppad-20100101.4.gpl.tgz