From b7ae399e4340b17ce8178b97e65aa22ef83cab5c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 1 Jan 2008 23:15:57 +0000 Subject: [PATCH 1/8] Initialize branch F-7 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..c48525c --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-7 From 9d66061bdbbb9443fceb457ccea38cca06a38274 Mon Sep 17 00:00:00 2001 From: "Bradley M. Bell" Date: Sat, 5 Jan 2008 22:29:47 +0000 Subject: [PATCH 2/8] cygwin running cvs-import.sh --- .cvsignore | 1 + cppad.spec | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 137 insertions(+) create mode 100644 cppad.spec diff --git a/.cvsignore b/.cvsignore index e69de29..12dad93 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cppad-20071229.gpl.tgz diff --git a/cppad.spec b/cppad.spec new file mode 100644 index 0000000..93076ca --- /dev/null +++ b/cppad.spec @@ -0,0 +1,135 @@ +# ---------------------------------------------------------------------------- +# RPM source for this version of cppad.spec: +# http://www.seanet.com/~bradbell/cppad/cppad-%{version}-%{release}.fc7.src.rpm +# ---------------------------------------------------------------------------- +# Known Problems: +# +# The cppad-doc package has the following rpmlint error: +# W: file-not-utf8 /usr/share/doc/cppad-%{version}/pmathmlcss.xsl +# This is the standard presentation MathML style sheet. Except for white +# space and a comment at the top, it is identical to +# http://www.w3.org/Math/XSL/pmathmlcss.xsl +# (use wget and diff -b to see that this is true). +# ---------------------------------------------------------------------------- +Name: cppad +Version: 20071229 +Release: 1%{?dist} +Summary: %{name} base package (not installed) + +Group: Development/Libraries +License: GPLv2 +URL: http://www.coin-or.org/CppAD/ +Source: http://www.coin-or.org/CppAD/download/%{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. + +# --------------------------------------------------------------------------- +%package devel +Summary: A Package for Differentiation of C++ Algorithms +Group: Development/Libraries + +%description devel +We refer to the step by step conversion from an algorithm that computes +function values to an algorithm that computes derivative values as +Algorithmic Differentiation (often referred to as Automatic Differentiation.) +Given a C++ algorithm that computes function values, %{name} generates an +algorithm that computes its derivative values. A brief introduction to +Algorithmic Differentiation (AD) can be found at +Wiki: http://en.wikipedia.org/wiki/Automatic_differentiation + +# ---------------------------------------------------------------------------- +%package doc +Summary: Documentation for %{name}-devel +Group: Development/Libraries + +%description doc +The %{name}-doc package contains the html and xml documentation for +the %{name}-devel package. + +# ---------------------------------------------------------------------------- +%prep +%setup -q + +# remove csetting of permissions in documentation destination directory +sed -i.stamp makefile.am -e '/chmod -R .* $(docdir_3)/d' +sed -i.stamp makefile.in -e '/chmod -R .* $(docdir_3)/d' + +%build +%configure --with-Documentation \ + --with-Example \ + --with-Introduction \ + --with-TestMore \ + --with-Speed \ + --with-Documentation +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +%check +example/example +introduction/exp_apx/exp_apx +test_more/test_more +speed/cppad/cppad correct 123 +speed/double/double correct 123 +speed/example/example correct 123 +speed/profile/profile correct 123 + +%clean +# cleanup +rm -rf $RPM_BUILD_ROOT + +%files devel +%defattr(-,root,root,-) +%doc COPYING ChangeLog AUTHORS uw_copy_040507.html +%{_includedir}/%{name} + +%files doc +%defattr(-,root,root,-) +%{_docdir}/%{name}-%{version} + +# ---------------------------------------------------------------------------- +%changelog +* Sat Dec 29 2007 Brad Bell 20071229-1 +- Fix gpl_license.sh in upstream source (missed some special cases). + +* Thu Dec 27 2007 Brad Bell 20071225-2 +- Fix spelling errors in this file and day of the week errors in %%changelog. +- Add ChangeLog, AUTHORS, uw_copy_040507.html to devel %%doc files. + +* Tue Dec 25 2007 Brad Bell 20071225-1 +- %%Source points to newly created directory for archived versions cppad +- modify makefile.in so does not set permissions for documentation files + +* Fri Dec 21 2007 Brad Bell 20071221-1 +- Added introduction/exp_apx/exp_apx to the list of correctness tests. +- Use %% to avoid macro expansion in %%changelog. +- Remove tabs from this spec file. +- Remove period from end of base package summary. +- Change upstream makefile.am so that it copies directories instead of files. + +* Thu Dec 20 2007 Brad Bell 20071208-2 +- Increment release number each time a new spec file is uploaded. +- Use the commands %%configure, %%check. +- Remove the %%doc command. +- Use more macros, including %%{?_smp_mflags}, %%{_includedir}, %%{_docdir}. + +* Thu Dec 20 2007 Brad Bell 20071208-1 +- Remove comments, except for those that are useful to a fedora reviewer. +- Use different Summary and description for each sub-package. +- Use %%{?dist} in Release entry. +- Use %%(%%{__id_u} -n) in BuildRoot entry. +- Use noarch in BuildArch entry. +- Move -rf $RPM_BUILD_ROOT from prep entry to install entry. +- Use macros where possible. + +* Sat Dec 08 2007 Brad Bell 20071208-1 +- Fix all but one rpmlint warning (see Notes at beginning of this file). + +* Mon Dec 03 2007 Brad Bell 20071203-1 +- first version of cppad that included RPM spec file. diff --git a/sources b/sources index e69de29..a1e7846 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4b90d026a80a66e00eea2a43931afaf6 *cppad-20071229.gpl.tgz From 9f6251cbf5df7f27cb6ddc091b24c64d09d5e546 Mon Sep 17 00:00:00 2001 From: "Bradley M. Bell" Date: Wed, 9 Jan 2008 04:50:06 +0000 Subject: [PATCH 3/8] Cygwin's verison of md5sum puts a between the check sum and the file name. Fedora expects two spaces, so change the star to a space in the devel, F-7, and F-8 sources file. --- sources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources b/sources index a1e7846..7f52296 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4b90d026a80a66e00eea2a43931afaf6 *cppad-20071229.gpl.tgz +4b90d026a80a66e00eea2a43931afaf6 cppad-20071229.gpl.tgz From fb2658c53b31d746d54f01774cabd6b7809d92aa Mon Sep 17 00:00:00 2001 From: "Bradley M. Bell" Date: Wed, 9 Jan 2008 12:02:48 +0000 Subject: [PATCH 4/8] Bump version number and include log message in ?/cppad.spec --- cppad.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cppad.spec b/cppad.spec index 93076ca..68c643e 100644 --- a/cppad.spec +++ b/cppad.spec @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------- Name: cppad Version: 20071229 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{name} base package (not installed) Group: Development/Libraries @@ -95,6 +95,11 @@ rm -rf $RPM_BUILD_ROOT # ---------------------------------------------------------------------------- %changelog +* Wed Jan 09 2008 Brad Bell 20071229-2 +Cygwin's verison of md5sum puts a between the check sum +and the file name. Fedora build tools expect two spaces, so the star has +was changed to a space in the devel, F-7, and F-8 sources file. + * Sat Dec 29 2007 Brad Bell 20071229-1 - Fix gpl_license.sh in upstream source (missed some special cases). From ecccc7d3c52b3639f3180dcb18f745194538d184 Mon Sep 17 00:00:00 2001 From: "Bradley M. Bell" Date: Wed, 9 Jan 2008 12:19:42 +0000 Subject: [PATCH 5/8] Bump version number and include log message (again) --- cppad.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cppad.spec b/cppad.spec index 68c643e..093d9f5 100644 --- a/cppad.spec +++ b/cppad.spec @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------- Name: cppad Version: 20071229 -Release: 2%{?dist} +Release: 3%{?dist} Summary: %{name} base package (not installed) Group: Development/Libraries @@ -95,6 +95,11 @@ rm -rf $RPM_BUILD_ROOT # ---------------------------------------------------------------------------- %changelog +* Wed Jan 09 2008 Brad Bell 20071229-3 +I mistakenly tried to make tag 20071229-2 in devel before commiting local +changes. It appears tag was partially created, but not sure it is correct. +So I am bumping the version number. + * Wed Jan 09 2008 Brad Bell 20071229-2 Cygwin's verison of md5sum puts a between the check sum and the file name. Fedora build tools expect two spaces, so the star has From b7b6ba3705cd098453a7ad2e70d681a9a188036b Mon Sep 17 00:00:00 2001 From: "Bradley M. Bell" Date: Sat, 12 Jan 2008 15:07:32 +0000 Subject: [PATCH 6/8] copy changes from F-8 branch --- cppad.spec | 51 +++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/cppad.spec b/cppad.spec index 093d9f5..316f8eb 100644 --- a/cppad.spec +++ b/cppad.spec @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------- Name: cppad Version: 20071229 -Release: 3%{?dist} +Release: 6%{?dist} Summary: %{name} base package (not installed) Group: Development/Libraries @@ -54,17 +54,30 @@ the %{name}-devel package. %prep %setup -q -# remove csetting of permissions in documentation destination directory +# 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;\\ +\\ +| +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 sed -i.stamp makefile.am -e '/chmod -R .* $(docdir_3)/d' sed -i.stamp makefile.in -e '/chmod -R .* $(docdir_3)/d' %build %configure --with-Documentation \ --with-Example \ - --with-Introduction \ --with-TestMore \ - --with-Speed \ - --with-Documentation + --with-Speed make %{?_smp_mflags} %install @@ -73,7 +86,6 @@ make install DESTDIR=$RPM_BUILD_ROOT %check example/example -introduction/exp_apx/exp_apx test_more/test_more speed/cppad/cppad correct 123 speed/double/double correct 123 @@ -95,15 +107,30 @@ rm -rf $RPM_BUILD_ROOT # ---------------------------------------------------------------------------- %changelog +* Sat Jan 12 2008 Brad Bell 20071229-6 +- Remove speed estimation correctness test because we are not in control of +- which other jobs are on the machine that is doing the rpmbuild. + +* Fri Jan 11 2008 Brad Bell 20071229-5 +- Remove introduction/exp_apx/exp_apx from the set of tests +- (which should have been done in 20071229-4). +- From now on test building rpm locally before making tags. + +* Thu Jan 10 2008 Brad Bell 20071229-4 +- Add code to print out DBL_EPSILON at the beginning of the example tests. +- Remove --with-Introduction (it only checks by hand calculations that are in +- AD Introduction section of the documentation). +- Remove extra --with-Documentation + * Wed Jan 09 2008 Brad Bell 20071229-3 -I mistakenly tried to make tag 20071229-2 in devel before commiting local -changes. It appears tag was partially created, but not sure it is correct. -So I am bumping the version number. +- I mistakenly tried to make tag 20071229-2 in devel before committing local +- changes. It appears tag was partially created, but not sure it is correct. +- So I am bumping the version number. * Wed Jan 09 2008 Brad Bell 20071229-2 -Cygwin's verison of md5sum puts a between the check sum -and the file name. Fedora build tools expect two spaces, so the star has -was changed to a space in the devel, F-7, and F-8 sources file. +- Cygwin's version of md5sum puts a between the check sum +- and the file name. Fedora build tools expect two spaces, so the star has +- was changed to a space in the devel, F-7, and F-8 sources file. * Sat Dec 29 2007 Brad Bell 20071229-1 - Fix gpl_license.sh in upstream source (missed some special cases). From f3ddf11829dfdfd6daf073d9dbb4aa3558f25123 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:33:46 +0000 Subject: [PATCH 7/8] 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 410ad74795e7e03f13cb0b085b6c160eb72d81ce Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 12:14:44 +0000 Subject: [PATCH 8/8] 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 c48525c..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-7