--- libmath-calculus-expression-perl-0.2.2.ds.orig/debian/control +++ libmath-calculus-expression-perl-0.2.2.ds/debian/control @@ -0,0 +1,25 @@ +Source: libmath-calculus-expression-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5) +Build-Depends-Indep: perl (>= 5.6.10-12) +Maintainer: Debian Perl Group +Uploaders: Deepak Tripathi +Standards-Version: 3.7.3 +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libmath-calculus-expression-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libmath-calculus-expression-perl/ +Homepage: http://search.cpan.org/dist/Math-Calculus-Expression/ + +Package: libmath-calculus-expression-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends} +Description: Algebraic Calculus Tools Expression Class + Math::Calculus::Expression can take an algebraic expression, parse it into a + tree structure, simplify the tree, substitute variables and named constants for + other variables or constants (which may be numeric), numerically evaluate the + tree and turn the tree back into an output of the same form as the input. + . + It supports a wide range of expressions including the +, -, *, / and ^ + (raise to power) operators, bracketed expressions to enable correct precedence + and the functions ln, exp, sin, cos, tan, sec, cosec, cot, sinh, cosh, tanh, + sech, cosech, coth, asin, acos, atan, asinh, acosh and atanh. --- libmath-calculus-expression-perl-0.2.2.ds.orig/debian/copyright +++ libmath-calculus-expression-perl-0.2.2.ds/debian/copyright @@ -0,0 +1,26 @@ +This is the debian package for the Math::Calculus::Expression module. +It was created by Deepak Tripathi using dh-make-perl. + +It was downloaded from http://search.cpan.org/dist/Math-Calculus-Expression/ + +The .ds version was created by fixing the permissions of the directory contained +in the tarball. + +The upstream author is: + +Jonathan Worthington, . + +Copyright (C) 2004, 2005 by Jonathan Worthington + +This library is free software; you can redistribute it and/or modify it +under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, +any later version of Perl 5 you may have available. + +Perl is distributed under your choice of the GNU General Public License or +the Artistic License. On Debian GNU/Linux systems, the complete text of the +GNU General Public License can be found in `/usr/share/common-licenses/GPL' +and the Artistic Licence in `/usr/share/common-licenses/Artistic'. + +-- +The Debian packaging is (C) 2008, Deepak Tripathi and +is licensed under the same terms as the software itself (see above). --- libmath-calculus-expression-perl-0.2.2.ds.orig/debian/watch +++ libmath-calculus-expression-perl-0.2.2.ds/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=uversionmangle=s/(?=$)/.ds/ \ +http://search.cpan.org/dist/Math-Calculus-Expression/ .*/Math-Calculus-Expression-v?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian debian/repack.sh --- libmath-calculus-expression-perl-0.2.2.ds.orig/debian/README.Debian-Source +++ libmath-calculus-expression-perl-0.2.2.ds/debian/README.Debian-Source @@ -0,0 +1,4 @@ + Upstream does not provide valid permission tarball. Therefore the repack.sh + file runs to produce the orig.tar.gz. + + -- Deepak Tripathi Mon, 19 May 2008 03:42:09 +0530 --- libmath-calculus-expression-perl-0.2.2.ds.orig/debian/compat +++ libmath-calculus-expression-perl-0.2.2.ds/debian/compat @@ -0,0 +1 @@ +5 --- libmath-calculus-expression-perl-0.2.2.ds.orig/debian/changelog +++ libmath-calculus-expression-perl-0.2.2.ds/debian/changelog @@ -0,0 +1,5 @@ +libmath-calculus-expression-perl (0.2.2.ds-1) unstable; urgency=low + + * Initial Release (Closes: #481726) + + -- Deepak Tripathi Mon, 19 May 2008 03:42:09 +0530 --- libmath-calculus-expression-perl-0.2.2.ds.orig/debian/repack.sh +++ libmath-calculus-expression-perl-0.2.2.ds/debian/repack.sh @@ -0,0 +1,42 @@ +#!/bin/sh +# Repackage upstream source to exclude non-distributable files +# should be called as "repack.sh --upstream-source +# (for example, via uscan) + +set -e +set -u + +VER="$2" +FILE="$3" +PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'` + +REPACK_DIR="$PKG-$VER.orig" + +echo -e "\nRepackaging $FILE\n" + +DIR=`mktemp -d ./tmpRepackXXXXXX` +trap "rm -rf \"$DIR\"" QUIT INT EXIT + +# Create an extra directory to cope with rootless tarballs +UP_BASE="$DIR/unpack" +mkdir "$UP_BASE" +tar xzf "$FILE" -C "$UP_BASE" + +if [ `ls -1 "$UP_BASE" | wc -l` -eq 1 ]; then +# Tarball does contain a root directory +UP_BASE="$UP_BASE/`ls -1 "$UP_BASE"`" +fi + +## Change permissions, otherwise dpkg-source -x fails +chmod 755 "$UP_BASE" +## End + +mv "$UP_BASE" "$DIR/$REPACK_DIR" + +# Using a pipe hides tar errors! +tar cfC "$DIR/repacked.tar" "$DIR" "$REPACK_DIR" +gzip -9 < "$DIR/repacked.tar" > "$DIR/repacked.tar.gz" + +mv "$DIR/repacked.tar.gz" "$FILE" + +echo "*** $FILE repackaged" --- libmath-calculus-expression-perl-0.2.2.ds.orig/debian/rules +++ libmath-calculus-expression-perl-0.2.2.ds/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt for +# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may +# be used freely wherever it is useful. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# If set to a true value then MakeMaker's prompt function will +# always return the default without waiting for user input. +export PERL_MM_USE_DEFAULT=1 + +PERL ?= /usr/bin/perl +PACKAGE = $(shell dh_listpackages) +TMP = $(CURDIR)/debian/$(PACKAGE) + +build: build-stamp +build-stamp: + dh_testdir + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + $(MAKE) test + touch $@ + +clean: + dh_testdir + dh_testroot + dh_clean build-stamp install-stamp + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + [ ! -d $(TMP)/usr/lib/perl5 ] || \ + rmdir --ignore-fail-on-non-empty --parents --verbose \ + $(TMP)/usr/lib/perl5 + touch $@ + +binary-arch: + +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs Changes + dh_perl + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install