--- cln-1.2.2.orig/debian/compat +++ cln-1.2.2/debian/compat @@ -0,0 +1 @@ +4 --- cln-1.2.2.orig/debian/libcln-dev.prerm +++ cln-1.2.2/debian/libcln-dev.prerm @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +install-info --quiet --remove /usr/share/info/cln.info + +#DEBHELPER# --- cln-1.2.2.orig/debian/pi.dirs +++ cln-1.2.2/debian/pi.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- cln-1.2.2.orig/debian/libcln-dev.install +++ cln-1.2.2/debian/libcln-dev.install @@ -0,0 +1,3 @@ +usr/lib/libcln.la +usr/lib/libcln.a +usr/lib/libcln.so --- cln-1.2.2.orig/debian/libcln-dev.dirs +++ cln-1.2.2/debian/libcln-dev.dirs @@ -0,0 +1,6 @@ +usr/include +usr/lib/pkgconfig +usr/share/info +usr/share/aclocal +usr/share/doc-base +usr/share/doc/libcln-dev/html --- cln-1.2.2.orig/debian/libcln5.dirs +++ cln-1.2.2/debian/libcln5.dirs @@ -0,0 +1 @@ +usr/lib --- cln-1.2.2.orig/debian/libcln5.install +++ cln-1.2.2/debian/libcln5.install @@ -0,0 +1 @@ +usr/lib/libcln*.so.* --- cln-1.2.2.orig/debian/libcln-dev.postinst +++ cln-1.2.2/debian/libcln-dev.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +install-info --quiet -- /usr/share/info/cln.info + +#DEBHELPER# --- cln-1.2.2.orig/debian/shlibs +++ cln-1.2.2/debian/shlibs @@ -0,0 +1 @@ +libcln 5 libcln5 --- cln-1.2.2.orig/debian/control +++ cln-1.2.2/debian/control @@ -0,0 +1,54 @@ +Source: cln +Priority: optional +Section: libs +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Richard Kreckel +Build-Depends: debhelper (>= 4.0.0), libgmp3-dev, quilt (>= 0.40) +Standards-Version: 3.8.0.0 +Homepage: http://www.ginac.de/CLN/ + +Package: libcln5 +Architecture: any +Depends: ${shlibs:Depends} +Replaces: cln +Suggests: pi +Description: Class Library for Numbers (C++) + CLN is a library for computations with all kinds of numbers. It has a + rich set of number classes, including integers (with unlimited precision), + reals with various precisions (including unlimited), rationals, complex + numbers and polynomials. The kernel is written in assembly language. + It uses garbage collection (automatic, without imposing any burden on the + main application). Many efficient algorithms (i.e. for all transcendental + functions) are implemented. + +Package: libcln-dev +Architecture: any +Section: libdevel +Depends: g++, libcln5 (= ${binary:Version}), libc6-dev | libc-dev, libgmp3-dev +Replaces: cln-dev +Provides: cln-dev +Conflicts: cln-dev +Recommends: info | info-browser +Description: Development library for Class Library for Numbers (c++) + CLN is a library for computations with all kinds of numbers. It has a + rich set of number classes, including integers (with unlimited precision), + reals with various precisions (including unlimited), rationals, complex + numbers and polynomials. The kernel is written in assembly language. + It uses garbage collection (automatic, without imposing any burden on the + main application). Many efficient algorithms (i.e. for all transcendental + functions) are implemented. + . + This package provides header files, a static library plus a manual. + +Package: pi +Architecture: any +Section: math +Depends: ${shlibs:Depends} +Description: Compute Archimedes' constant Pi to arbitrary precision + This program computes Archimedes' constant Pi to arbitrary precision. + It is extremely fast and the precision is only limited by your machine's + main memory. + . + This is a teaser for the CLN library, to which the actual computation is + delegated. You may use these decimal digits as random digits or search + them for hidden messages. :-) --- cln-1.2.2.orig/debian/rules +++ cln-1.2.2/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +package=cln + +version=$(shell expr `pwd` : '.*-\([0-9.]*\)') +version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*') + +build: patch + dh_testdir + ./configure --prefix=/usr `dpkg-architecture -qDEB_HOST_GNU_TYPE` + # * ARM: CLN's assembler support is not working properly (it was only + # 'theoretically' ported by copying from code that had once worked in + # CLISP under BSD). Same for armel. + # * HPPA: Assembler support is not working properly. Somebody needs to + # investigate but currently I don't have the inspiration for fixing + # things on exotic architectures. + # * SPARC: With some versions of GCC, there are apparently problems in + # passing return values in %g1. + case `dpkg-architecture -qDEB_HOST_ARCH` in \ + arm|armel|hppa|sparc) \ + ${MAKE} CPPFLAGS="-DNO_ASM" CXXFLAGS="-O2";; \ + *) \ + ${MAKE} CXXFLAGS="-O2";; \ + esac + touch build + +clean: unpatch + dh_testdir + dh_clean + -rm -f build + -${MAKE} distclean + -rm -f `find . -name "*~"` + +binary-indep: build + dh_testdir + dh_testroot +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: build + dh_testdir + dh_testroot + dh_installdirs + # Let's see what the buildd logs say... + -${MAKE} check + ${MAKE} install prefix=$(CURDIR)/debian/tmp/usr includedir=$(CURDIR)/debian/libcln-dev/usr/include bindir=$(CURDIR)/debian/libcln-dev/usr/bin mandir=$(CURDIR)/debian/libcln-dev/usr/share/man infodir=$(CURDIR)/debian/libcln-dev/usr/share/info datadir=$(CURDIR)/debian/libcln-dev/usr/share htmldir=$(CURDIR)/debian/libcln-dev/usr/share/doc/libcln-dev/html dvidir=$(CURDIR)/debian/libcln-dev/usr/share/doc/libcln-dev + # This installs into libdir, but we must not set libdir because it affects the .la file: + mv $(CURDIR)/debian/tmp/usr/lib/pkgconfig/* $(CURDIR)/debian/libcln-dev/usr/lib/pkgconfig/ + dh_installdocs ChangeLog NEWS README TODO + dh_installexamples -plibcln-dev $(CURDIR)/examples/contfrac.cc $(CURDIR)/examples/e.cc $(CURDIR)/examples/fibonacci.cc $(CURDIR)/examples/legendre.cc $(CURDIR)/examples/lucaslehmer.cc $(CURDIR)/examples/nextprime.cc $(CURDIR)/examples/perfnum.cc + /bin/sh libtool --mode=install /usr/bin/install -c examples/pi $(CURDIR)/debian/pi/usr/bin/pi + /usr/bin/install -m 644 examples/pi.1 $(CURDIR)/debian/pi/usr/share/man/man1/pi.1 + /usr/bin/install -m 644 debian/libcln-dev.doc-base $(CURDIR)/debian/libcln-dev/usr/share/doc-base/libcln-dev + # Note: CLN's doc/Makefile should honor psdir, just as it does honor dvidir: + /usr/bin/install -m 644 doc/cln.ps $(CURDIR)/debian/libcln-dev/usr/share/doc/libcln-dev + dh_installchangelogs + dh_install --sourcedir=debian/tmp + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: binary binary-arch binary-indep clean --- cln-1.2.2.orig/debian/copyright +++ cln-1.2.2/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Richard Kreckel on +Fri, 14 Jan 2000 11:20:17 +0100. + +It was downloaded from . + +Copyright: 1988-2008 Bruno Haible + 2000-2008 Richard B. Kreckel + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License with + the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; + if not, write to the Free Software Foundation, Inc., 51 Franklin Street, + Fifth Floor, Boston, MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. --- cln-1.2.2.orig/debian/libcln-dev.doc-base +++ cln-1.2.2/debian/libcln-dev.doc-base @@ -0,0 +1,12 @@ +Document: libcln-dev +Title: CLN (Class Library for Numbers) documentation +Author: Bruno Haible +Abstract: CLN is a C++ library for computations with all kinds of numbers. +Section: Science/Mathematics + +Format: HTML +Index: /usr/share/doc/libcln-dev/html/cln.html +Files: /usr/share/doc/libcln-dev/html/* + +Format: PostScript +Files: /usr/share/doc/libcln-dev/cln.ps.gz --- cln-1.2.2.orig/debian/changelog +++ cln-1.2.2/debian/changelog @@ -0,0 +1,303 @@ +cln (1.2.2-2ubuntu1) karmic; urgency=low + + * Add build-dependency on quilt. + * debian/patches/eof_decl.patch: include cstdio when we need EOF, instead + of expecting it to be defined for us. + * Fix bogus clean rule that nuked my debian/patches directory right after + I created it. + * Add sourceful section, without which soyuz will apparently reject the + upload. + + -- Steve Langasek Sat, 12 Sep 2009 05:32:13 +0000 + +cln (1.2.2-2) unstable; urgency=low + + * Arm eabi needs -DNO_ASM; closes: #475347. + * Updated to standards-version 3.8.0. + + -- Richard Kreckel Wed, 18 Jun 2008 22:39:16 +0100 + +cln (1.2.2-1) unstable; urgency=low + + * New upstream release; closes: #473494. + + -- Richard Kreckel Sat, 05 Apr 2008 23:11:27 +0100 + +cln (1.2.1-1) unstable; urgency=low + + * New upstream release. + + -- Richard Kreckel Mon, 24 Mar 2008 22:15:45 +0100 + +cln (1.2.0-1) unstable; urgency=low + + * New upstream release: + - Support for huge numbers; closes: #286266. + - Changed pi to truncate output a little bit; closes: #310385. + - incremented soname version; closes: #430248. + * Make libcln-dev depend on libgmp3-dev; closes: #412103. + + -- Richard Kreckel Sat, 19 Jan 2008 22:07:52 +0100 + +cln (1.2.0~beta4-1) experimental; urgency=low + + * Check current CVS again. + * Add -DNO_ASM to CPPFLAGS on Sparc until miscompilation is sorted out. + + -- Richard Kreckel Sun, 06 Jan 2008 18:08:15 +0100 + +cln (1.2.0~beta3-1) experimental; urgency=low + + * Check current CVS again. + + -- Richard Kreckel Tue, 04 Dec 2007 09:37:45 +0100 + +cln (1.2.0~beta2-1) experimental; urgency=low + + * Check build stuff again. + + -- Richard Kreckel Sun, 07 Oct 2007 22:11:48 +0200 + +cln (1.2.0~beta1-1) experimental; urgency=low + + * Check to see if current CVS is ready for prime time. + + -- Richard Kreckel Tue, 18 Sep 2007 23:38:02 +0200 + +cln (1.1.13-2) unstable; urgency=low + + * Apply workaround for m68k build failure; closes: #388000. + + -- Richard Kreckel Wed, 20 Sep 2006 22:53:21 +0200 + +cln (1.1.13-1) unstable; urgency=low + + * New upstream release. + + -- Richard Kreckel Tue, 08 Aug 2006 22:50:58 +0200 + +cln (1.1.12-2) unstable; urgency=low + + * Apply patch from CVS: Fix 64-bit brokenness due to buggy configure. + + -- Richard Kreckel Mon, 07 Aug 2006 23:59:01 +0200 + +cln (1.1.12-1) unstable; urgency=low + + * New upstream release. + + -- Richard Kreckel Sun, 06 Aug 2006 11:29:31 +0200 + +cln (1.1.11-1) unstable; urgency=low + + * New upstream release. + + -- Richard Kreckel Wed, 23 Oct 2005 22:24:52 +0100 + +cln (1.1.10-1) unstable; urgency=low + + * New upstream release... + * ...breaking binary compatibility, so renamed the package to libcln4. + + -- Richard Kreckel Sat, 22 Oct 2005 22:55:13 +0200 + +cln (1.1.9-6) unstable; urgency=low + + * Add a patch to fix the segfault on startup on mips and mipsel. + + -- Richard Kreckel Tue, 30 Aug 2005 22:20:58 +0200 + +cln (1.1.9-5) unstable; urgency=low + + * Add a patch to mark the library's stack as nonexecutable; closes: #321748. + * Reduce optimization for ia64 and m68k. This should make it build again. + * Explicitly acknowledge NMU; closes: #318210, #314831. + + -- Richard Kreckel Mon, 15 Aug 2005 22:58:08 +0200 + +cln (1.1.9-4) unstable; urgency=low + + * Sigh, I could've sworn that I applied the patch from upstream in 1.1.9-2. + Apparently, I'm overworked. Here it goes again; closes: #320040. + + -- Richard Kreckel Tue, 09 Aug 2005 23:19:12 +0200 + +cln (1.1.9-3) unstable; urgency=low + + * Oops, forgot to update debian/shlibs from NMU; closes: #321531. + + -- Richard Kreckel Sun, 07 Aug 2005 22:24:48 +0200 + +cln (1.1.9-2) unstable; urgency=low + + * Use ${shlibs:Depends} instead of hard-wired dependencies; closes: #319556. + * Include patch by Andreas Jochens for PPC64; closes: #320040. + + -- Richard Kreckel Tue, 04 Aug 2005 22:35:18 +0200 + +cln (1.1.9-1.1) unstable; urgency=low + + * NMU, coordinated with Maintainer + * Add forward declaration of cl_string needed by gcc-4 (Closes: #314831) + * debian/control: add c2 to library package name + * Build against new libgmp using gcc-4 ABI (Closes: #318210) + + -- Martin Waitz Tue, 19 Jul 2005 10:26:24 +0200 + +cln (1.1.9-1) unstable; urgency=low + + * New upstream release. + + -- Richard Kreckel Wed, 03 Nov 2004 22:35:11 +0100 + +cln (1.1.8-2) unstable; urgency=low + + * Include a patch from CVS to make it work on mipsel; closes: #140647. + + -- Richard Kreckel Mon, 6 Sep 2004 21:48:35 +0200 + +cln (1.1.8-1) unstable; urgency=low + + * New upstream release; closes: #256312. + + -- Richard Kreckel Thu, 1 Jul 2004 22:38:08 +0100 + +cln (1.1.7-1) unstable; urgency=low + + * New upstream release; closes: #246319. + + -- Richard Kreckel Sun, 2 May 2004 22:53:35 +0100 + +cln (1.1.6-1) unstable; urgency=low + + * New upstream release... + * ...breaking binary compatibility, so renamed the package to libcln3. + * More detailed extended description for cln-dev; closes: #210102. + + -- Richard Kreckel Sat, 10 Jan 2004 23:03:22 +0100 + +cln (1.1.5-2) unstable; urgency=low + + * Registered documentation with doc-base; closes: #99192. + * Changed section of libcln-dev to libdevel. + * Changed section of libcln2 to libs. + * Updated to standards-version 3.5.10. + + -- Richard Kreckel Tue, 27 May 2003 10:16:09 +0200 + +cln (1.1.5-1) unstable; urgency=low + + * New upstream release + + -- Richard Kreckel Fri, 28 Feb 2003 15:11:12 +0100 + +cln (1.1.4-1) unstable; urgency=low + + * New upstream release + (Debian and other bugfixes). + + -- Richard Kreckel Fri, 4 Jan 2002 15:17:07 +0100 + +cln (1.1.3-3) unstable; urgency=low + + * Manually added __s390__ section to include/cln/config.h.in such that + packages compiling against CLN on these architectures do not have to + define this on the command line. + + -- Richard Kreckel Sat, 29 Dec 2001 18:28:50 +0100 + +cln (1.1.3-2) unstable; urgency=low + + * Backported support for s390 from upstream CVS. + + -- Richard Kreckel Sat, 29 Dec 2001 18:28:35 +0100 + +cln (1.1.3-1) unstable; urgency=low + + * New bugfix release from upstream. + * Renamed the package to libcln2 and libcln-dev to match policy. + * Segregate the pi binary into a separate Debian package, for same reason. + + -- Richard Kreckel Wed, 7 Nov 2001 16:18:58 +0100 + +cln (1.1.2-1) unstable; urgency=low + + * New upstream release; closes: #104906. + * Remove build-dependency on libstdc++-dev; closes: #105953. + + -- Richard Kreckel Tue, 25 Jul 2001 13:26:36 +0200 + +cln (1.1.1-1) unstable; urgency=low + + * New upstream release. + + -- Richard Kreckel Thu, 31 May 2001 18:46:31 +0200 + +cln (1.1.0-5) unstable; urgency=low + + * Fixed some missing !defined(NO_ASM) preprocessor directives in + upstream's CVS and backported them to the Debian package in order to... + * ...switch them on by debian/rules if we are on the ARM architecture; + closes: #94097. + + -- Richard Kreckel Sat, 21 Apr 2001 15:46:31 +0200 + +cln (1.1.0-4) unstable; urgency=low + + * Rebuild again (*ugh*) using binutils 2.11.90, since the old library + occassionally resulted in ld-so assertions, PLT alloc failures and + more scary stuff like that. Building large C++ libraries using + binutils 2.9 is a Kamikaze combination! (This seems to make a lot of + sense, since gcc-2.95.3 now depends on those new binutils anyways.) + * Changed the dependencies to reflect this problem. + + -- Richard Kreckel Thu, 12 Apr 2001 17:52:20 +0200 + +cln (1.1.0-3) unstable; urgency=low + + * Rebuild using woody's gcc-2.95.3 since some people were reporting strange + problems with the old libraries that were build using gcc-2.95.3. + * Make install-info perform quiet. + + -- Richard Kreckel Tue, 10 Apr 2001 13:40:15 +0200 + +cln (1.1.0-2) unstable; urgency=low + + * As requested by installer, change priority from extra to optional. + * Fix miscompilation on Sparc by adjusting CXXFLAGS for this architecture. + * Just in case somebody decides to go for ia64: backported a one-line + essential (and tested) architecture-specific patch from the CVS version. + * As a gimmick, add Bruno Haible's pi example. (They'll put it into SuSE 7.2 + and we don't want to hear complaints "but SuSE has this...", do we?!) + + -- Richard Kreckel Thu, 14 Mar 2001 17:04:58 +0100 + +cln (1.1.0-1) unstable; urgency=low + + * New upstream source closes #84290. + * added dependency on libgmp3. + * added Build-Depends section closes #70274. + + -- Richard Kreckel Fri, 14 Jan 2000 15:20:02 +0100 + +cln (1.0.3-1) unstable; urgency=low + + * New upstream source. + * New upstream maintainer . + * New Debian maintainer . + * Entirely repackaged. + + -- Richard Kreckel Fri, 14 Jan 2000 15:20:02 +0100 + +cln (0.98-1) unstable; urgency=low + + * New upstream source + + -- John Lapeyre Sat, 1 Aug 1998 15:40:49 -0700 + + +cln (0.1-1) unstable; urgency=low + + * Initial Release. + + -- John Lapeyre Mon, 27 Jul 1998 17:06:36 -0700 --- cln-1.2.2.orig/debian/patches/series +++ cln-1.2.2/debian/patches/series @@ -0,0 +1 @@ +eof_decl.patch --- cln-1.2.2.orig/debian/patches/eof_decl.patch +++ cln-1.2.2/debian/patches/eof_decl.patch @@ -0,0 +1,60 @@ +Index: cln-1.2.2/src/base/string/input/cl_st_get1.cc +=================================================================== +--- cln-1.2.2.orig/src/base/string/input/cl_st_get1.cc ++++ cln-1.2.2/src/base/string/input/cl_st_get1.cc +@@ -9,6 +9,7 @@ + + // Implementation. + ++#include + #include "cln/io.h" + #include "cl_spushstring.h" + +Index: cln-1.2.2/src/base/string/input/cl_st_get2.cc +=================================================================== +--- cln-1.2.2.orig/src/base/string/input/cl_st_get2.cc ++++ cln-1.2.2/src/base/string/input/cl_st_get2.cc +@@ -9,6 +9,7 @@ + + // Implementation. + ++#include + #include "cln/io.h" + #include "cl_spushstring.h" + +Index: cln-1.2.2/src/base/string/input/cl_st_getline1.cc +=================================================================== +--- cln-1.2.2.orig/src/base/string/input/cl_st_getline1.cc ++++ cln-1.2.2/src/base/string/input/cl_st_getline1.cc +@@ -9,6 +9,7 @@ + + // Implementation. + ++#include + #include "cln/io.h" + #include "cl_spushstring.h" + +Index: cln-1.2.2/src/base/string/input/cl_st_getline2.cc +=================================================================== +--- cln-1.2.2.orig/src/base/string/input/cl_st_getline2.cc ++++ cln-1.2.2/src/base/string/input/cl_st_getline2.cc +@@ -9,6 +9,7 @@ + + // Implementation. + ++#include + #include "cln/io.h" + #include "cl_spushstring.h" + +Index: cln-1.2.2/src/base/string/input/cl_st_gettoken.cc +=================================================================== +--- cln-1.2.2.orig/src/base/string/input/cl_st_gettoken.cc ++++ cln-1.2.2/src/base/string/input/cl_st_gettoken.cc +@@ -12,6 +12,7 @@ + #include "cln/io.h" + #include "cl_spushstring.h" + #include ++#include + + namespace cln { +