--- pdl-2.4.0.orig/debian/control +++ pdl-2.4.0/debian/control @@ -1,9 +1,9 @@ Source: pdl Section: math Priority: optional -Maintainer: Raul Miller +Maintainer: Henning Glawe Standards-Version: 3.1.1 -Build-Depends: g77, xlibmesa-dev, xlib6g-dev, libncurses-dev, perl (>= 5.6.0-16), libextutils-f77-perl +Build-Depends: g77, xlibmesa-dev, xlibs-dev, libncurses-dev, perl (>= 5.8.0-3), libextutils-f77-perl, debhelper (>= 3.0.18), libplplot-dev, libinline-perl (>= 0.43), libgsl0-dev, fftw-dev Package: pdl Architecture: any @@ -11,7 +11,7 @@ Suggests: pgperl, libgl1, netpbm | imagemagick Conflicts: r-pdl Replaces: r-pdl -Description: The perl data language. Perl extensions for numerics. +Description: The perl data language: Perl extensions for numerics PDL (``Perl Data Language'') gives standard perl the ability to COMPACTLY store and SPEEDILY manipulate the large N-dimensional data arrays which are the bread and butter of scientific computing. The idea --- pdl-2.4.0.orig/debian/rules +++ pdl-2.4.0/debian/rules @@ -12,14 +12,15 @@ build: $(checkdir) - HOME=$$(pwd)/debian perl Makefile.PL INSTALLDIRS=vendor PREFIX=$(ddir)/usr - $(MAKE) OPTIMIZE="-O2 -g -Wall" + HOME=$$(pwd)/debian perl Makefile.PL F77CONF=debian/f77conf.pl INSTALLDIRS=vendor + $(MAKE) LD_RUN_PATH="" OPTIMIZE="-O2 -g -Wall -ffunction-sections" #make test ## disabled until doesn't require X # make doctest dont make the docs do it in postinst touch build clean: $(checkdir) + dh_clean touch deleteme (find . -type f | sed 's}^\./}}' | egrep -v ^debian; cat MANIFEST MANIFEST) | sort | uniq -u | xargs rm -rm -rf blib @@ -28,7 +29,8 @@ binary-indep: checkroot build $(checkdir) - perl -MConfig -le 'print "perl:Depends=perlapi-$Config{version}"' >>debian/substvers + # now using dh_perl + #perl -MConfig -le 'print "perl:Depends=perlapi-$$Config{version}"' >>debian/substvars binary-arch: checkroot build $(checkdir) @@ -36,12 +38,13 @@ -rm -rf $(ddir) $(INSTALL) -d $(ddir)/DEBIAN $(INSTALL) -d $(ddir)/usr/share/doc/$(package) - export BUILDROOTPREFIX=${ddir}; make pure_install + make install PREFIX=$(ddir)/usr # these scripts are not part of the distribution, but we need them for # postinst [use sort -u to give me an error if this is ever ambiguous] set -vx; d=$$(find $(ddir)/usr -type d -name PDL | sed 's}/auto/}/}' | sort -u)/Doc && mkdir -p $$d; cp Doc/scantree.pl Doc/mkhtmldoc.pl $$d/. - set -vx; (d=/$$(cd $(ddir); find usr -type d -name PDL | sed 's}/auto/}/}' | sort -u)/Doc; cat debian/postinst.base; q='>/dev/null 2>&1'; echo perl $$d/scantree.pl $$q; echo perl $$d/mkhtmldoc.pl $$q) > debian/postinst + set -vx; (d=/$$(cd $(ddir); find usr -type d -name PDL | sed 's}/auto/}/}' | sort -u)/Doc; cat debian/postinst.base; q='>/dev/null 2>&1'; echo /usr/bin/perl $$d/scantree.pl $$q; echo /usr/bin/perl $$d/mkhtmldoc.pl $$q) > debian/postinst rm -f $$(find $(ddir)/usr/lib/perl5 -name perllocal.pod) + rm -f $(ddir)/usr/share/man/man3/PDL\:\:{BAD_demo,BAD2_demo,Config,'Doc::Config'}.3pm find $(ddir)/usr/share/man -type f | xargs gzip -9 # remove packlist files find $(ddir) -type f -name .packlist | xargs -r rm -f @@ -54,6 +57,7 @@ -cd $(ddir)/usr/share/doc/$(package); gzip -9v README TODO README.debian changelog changelog.Debian cp debian/copyright $(ddir)/usr/share/doc/$(package)/copyright + d=$(ddir)/usr/share/lintian/overrides; mkdir -p $$d && cp debian/lintian.overrides $$d/pdl chmod 755 $(ddir)/usr/bin/* @@ -68,8 +72,9 @@ done # debstd Changes README TODO + dh_perl dpkg-shlibdeps $$(find blib -name '*.so') - dpkg-gencontrol + dh_gencontrol chown -R root.root $(ddir) chmod -R go=rX $(ddir) # fix up some rather odd permissions issues --- pdl-2.4.0.orig/debian/changelog +++ pdl-2.4.0/debian/changelog @@ -1,8 +1,74 @@ -pdl (1:2.3.1-0) unstable; urgency=low +pdl (1:2.4.0-1) unstable; urgency=low - * new upstream release + * new maintainer (Closes: #215543) + * acknowlege NMU (Closes: #141117, #104630, #140104, #170182) + * new upstream release. + * enable plplot support (Closes: #196185) + * enable gsl support + * enable fftw support + * swap out m51.fits and COPYING, taken from PDL CVS HEAD (Closes: #223793) + + -- Henning Glawe Sat, 13 Dec 2003 22:25:41 +0100 + +pdl (1:2.3.2-0.6) unstable; urgency=low + + * NMU for xlib6g-dev dependency (Closes: #170182) + + -- Joshua Kwan Sat, 15 Mar 2003 16:55:39 -0800 + +pdl (1:2.3.2-0.5) unstable; urgency=low + + * NMU for perl 5.8. Set build-dependency to perl 5.8. + * debian/rules: moved prefix selection to installation time. + + -- Josselin Mouette Wed, 21 Aug 2002 22:39:24 +0200 + +pdl (1:2.3.2-0.2) unstable; urgency=low + + * Non-Maintainer Upload + * In postinst, specify path to /usr/bin/perl so that users with a conflicting + perl in /usr/local/bin do not get a blow-up. (Closes: #141117) + * (Note that the above change was made in debian/rules, NOT debian/postinst, + because of the very strange way the original maintainer made the + debian/postinst be auto-generated..) - -- PDL Porters Wed, 21 Nov 2001 18:25:23 -0400 + -- Ben Gertzfield Mon, 8 Apr 2002 18:47:16 +0900 + +pdl (1:2.3.2-0.1) unstable; urgency=low + + * Non-Maintainer Upload + * Newest version needed to fix gimp-perl build problems (perl + segfaults on alpha otherwise). + * Use F77CONF=debian/f77conf.pl, signify hppa needed changes in + there instead of hacking Lib/Slatec/Makefile.PL . + * Include small patch to change $(INST_LIBDIR)/PDL to + $(INST_LIBDIR) in Basic/Gen/Makefile.PL (debian/rules has + a very long, strange find command that barfs if there are + multiple directories named PDL, and this looks like a typo + anyway) + * debian/rules was writing to file called "substvers", and + was missing a $ anyway when writing Perl depends substvars. + Commented out, added a call to dh_perl and tightened Build-Depends + on debhelper to (>= 3.0.18). + * Add call to dh_clean to clean up debhelper-generated files. + + -- Ben Gertzfield Tue, 2 Apr 2002 22:07:56 +0900 + +pdl (1:2.2.1-7.1) unstable; urgency=low + + * Non-Maintainer Upload + * Fix to build on hppa, patch in BTS. Closes: #104630 + + -- Matt Taggart Wed, 5 Dec 2001 19:42:37 -0700 + +pdl (1:2.2.1-7) unstable; urgency=low + + * rebuild with dh_gencontrol instead of dpkg-gencontrol, new + perl policy seems to need this. + * include lintian override for non-pic code in Slatec.so + * include debian/all (build/check script) in source + + -- Raul Miller Sun, 26 Aug 2001 21:44:51 -0400 pdl (1:2.2.1-6) unstable; urgency=low @@ -312,7 +378,4 @@ -- John Lapeyre Fri, 16 Jan 1998 19:32:22 -0700 -Local variables: -mode: debian-changelog -add-log-mailing-address: "lapeyre@physics.arizona.edu" -End: + --- pdl-2.4.0.orig/debian/postinst +++ pdl-2.4.0/debian/postinst @@ -5,12 +5,12 @@ [ -x /usr/bin/update-menus ] && /usr/bin/update-menus # work around potential dpkg breakage - if [ "$1" = "configure" ]; then - if [ -d /usr/doc -a ! -e /usr/doc/pdl \ - -a -d /usr/share/doc/pdl ]; then - ln -sf ../share/doc/pdl /usr/doc/pdl - fi - fi +# if [ "$1" = "configure" ]; then +# if [ -d /usr/doc -a ! -e /usr/doc/pdl \ +# -a -d /usr/share/doc/pdl ]; then +# ln -sf ../share/doc/pdl /usr/doc/pdl +# fi +# fi -perl /usr/lib/perl5/PDL/Doc/scantree.pl >/dev/null 2>&1 -perl /usr/lib/perl5/PDL/Doc/mkhtmldoc.pl >/dev/null 2>&1 +/usr/bin/perl /usr/lib/perl5/PDL/Doc/scantree.pl >/dev/null 2>&1 +/usr/bin/perl /usr/lib/perl5/PDL/Doc/mkhtmldoc.pl >/dev/null 2>&1 --- pdl-2.4.0.orig/debian/f77conf.pl +++ pdl-2.4.0/debian/f77conf.pl @@ -17,7 +17,7 @@ my $libpath = `g77 -print-libgcc-file-name`; $libpath =~ s/libgcc[.]a$//; chomp $libpath; - "-L$libpath -L/usr/lib -lg2c -lm -lgcc"; + "-L$libpath -L/usr/lib -lg2c-pic"; } sub trail_ { @@ -29,7 +29,7 @@ } sub cflags { - return '-O'; + return '-O -fPIC'; } sub testcompiler { --- pdl-2.4.0.orig/debian/copyright +++ pdl-2.4.0/debian/copyright @@ -74,3 +74,6 @@ EXCEPTIONS: m51.fits (see README) + +On Debian GNU/Linux systems, the perl license could be found under: + /usr/share/doc/perl/copyright --- pdl-2.4.0.orig/debian/all +++ pdl-2.4.0/debian/all @@ -0,0 +1,31 @@ +#!/bin/sh +# personal script for maintainer... + + +case "$1" in + + build) +dpkg-buildpackage -rfakeroot +;; + + check) +for f in debian/*copyright; do + d=`pwd | xargs basename | sed 's/-.*//'` + p=`basename $f .copyright | sed "s/copyright/$d/"` + set ../${p}_`head -1 debian/changelog | sed 's/.*(//; s/).*//; s/[0-9]*://'`*.d?? + echo lintian $* + lintian $* +done +;; + + all|"") +"$0" build +"$0" check +;; + + *) +>&2 echo $0 "[build|check|all]" +;; + +esac + --- pdl-2.4.0.orig/debian/prerm +++ pdl-2.4.0/debian/prerm @@ -0,0 +1,6 @@ +#!/bin/sh +# work around "fix" for potential dpkg breakage +# if [ \( "$1" = "upgrade" -o "$1" = "remove" \) \ +# -a -L /usr/doc/pdl ]; then +# rm -f /usr/doc/pdl +# fi --- pdl-2.4.0.orig/debian/postinst.base +++ pdl-2.4.0/debian/postinst.base @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +[ -x /usr/bin/update-menus ] && /usr/bin/update-menus + +# work around potential dpkg breakage +# if [ "$1" = "configure" ]; then +# if [ -d /usr/doc -a ! -e /usr/doc/pdl \ +# -a -d /usr/share/doc/pdl ]; then +# ln -sf ../share/doc/pdl /usr/doc/pdl +# fi +# fi + --- pdl-2.4.0.orig/debian/lintian.overrides +++ pdl-2.4.0/debian/lintian.overrides @@ -0,0 +1 @@ +pdl: shlib-with-non-pic-code usr/lib/perl5/auto/PDL/Slatec/Slatec.so --- pdl-2.4.0.orig/Graphics/PLplot/Makefile.PL +++ pdl-2.4.0/Graphics/PLplot/Makefile.PL @@ -140,7 +140,7 @@ $VERSION = '0.19'; $PDL_CONFIG{WITH_PLPLOT} = 1; -$package = ["plplot.pd",PLplot,PDL::Graphics::PLplot]; +@package = (["plplot.pd",PLplot,PDL::Graphics::PLplot]); WriteMakefile( 'NAME' => 'PDL::Graphics::PLplot', 'CCFLAGS' => "-g", @@ -154,7 +154,7 @@ 'PLplot.pm PLplot.xs PLplot.o PLplot.c PLplot.bs *.xfig temp* OPTIONS! Makefile.old'}, ); -sub MY::postamble { pdlpp_postamble($package); } +sub MY::postamble { pdlpp_postamble_int(@::package); } sub compileAndRun { my $flags = shift; --- pdl-2.4.0.orig/MANIFEST +++ pdl-2.4.0/MANIFEST @@ -584,6 +584,7 @@ debian/postrm debian/preinst debian/rules +m51.fits pdldoc.PL perldl.PL perldl.conf