From d578e4febebb06705ef54f988a7e16f16bd75b4a Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 7 Apr 2008 03:47:02 +0000 Subject: [PATCH 1/4] Initialize branch EL-5 for cppad --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..42f697a --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-5 From e4ecd5e222e5908679558f3623dbc137c0cfc059 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:33:45 +0000 Subject: [PATCH 2/4] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0b7a4f3..cfaf8f0 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ 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 +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 43eb53e13a3e78c314571ebab22f6354a41cddcd Mon Sep 17 00:00:00 2001 From: "Bradley M. Bell" Date: Thu, 8 Jul 2010 17:52:05 +0000 Subject: [PATCH 3/4] copy here from devel branch --- .cvsignore | 2 +- cppad.spec | 106 ++++++++++++++++++++++++++++++++++++++--------------- sources | 2 +- 3 files changed, 79 insertions(+), 31 deletions(-) diff --git a/.cvsignore b/.cvsignore index f06b40c..d943cbd 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -cppad-20080403.gpl.tgz +cppad-20100101.4.gpl.tgz diff --git a/cppad.spec b/cppad.spec index 94f10e5..287097e 100644 --- a/cppad.spec +++ b/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: # # 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 /# include \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 \\ 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 - 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 - 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 - 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 - 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 - 20090303.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Jun 20 2009 Brad Bell 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 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 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 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 - 20080826.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Oct 08 2008 Brad Bell 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 20080403-3 - Patch speed/main.cpp work with newer version of gcc - (speed/main.cpp had not been tested with new version of gcc.) diff --git a/sources b/sources index 3464f74..1aadac6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -3e8c389e5097267410eb5c53241eb230 cppad-20080403.gpl.tgz +ff39d739635985ee78c7572f6ec9b03c cppad-20100101.4.gpl.tgz From fb4cfa3b880172c6eccb8da5e78018fc384e782d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 12:14:49 +0000 Subject: [PATCH 4/4] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index cfaf8f0..0000000 --- a/Makefile +++ /dev/null @@ -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 $$d/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) diff --git a/branch b/branch deleted file mode 100644 index 42f697a..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-5