From eff17f7a286256bf235ee9210b5fd994c3b9e125 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 19 Nov 2007 13:45:24 +0000 Subject: [PATCH] New --- debian/.cvsignore | 3 ++ debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 30 +++++++++++++++++++ debian/copyright | 10 +++++++ debian/rules | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 132 insertions(+) create mode 100644 debian/.cvsignore create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/debian/.cvsignore b/debian/.cvsignore new file mode 100644 index 0000000..dc2a71d --- /dev/null +++ b/debian/.cvsignore @@ -0,0 +1,3 @@ +files +libnet-z3950-pqf-perl +libnet-z3950-pqf-perl.substvars diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c47366f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libnet-z3950-pqf-perl (0.04-1) unstable; urgency=low + + * Initial Release. + + -- Mike Taylor Mon, 19 Nov 2007 14:37:45 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..fb21a90 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: libnet-z3950-pqf-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 5.0.0) +Build-Depends-Indep: perl (>= 5.8.8-7ubuntu3) +Maintainer: Mike Taylor +Standards-Version: 3.7.2 + +Package: libnet-z3950-pqf-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, +Description: Perl extension for parsing PQF (Prefix Query Format) + This library provides a parser for PQF (Prefix Query Format), an ugly + but precise string format for expressing Z39.50 Type-1 queries. This + format is widely used behind the scenes of Z39.50 applications, and is + also used extensively with test-harness programs such as the YAZ + command-line client, yaz-client. A few particularly misguided + souls have been known to type it by hand. + . + Unlike PQF itself, this module + is simple to use. Create a parser object, then pass PQF strings + into its parse() method to yield parse-trees. The trees are made + up of nodes whose types are subclasses of + Net::Z3950::PQF::Node. + and have names of the form + Net::Z3950::PQF::somethingNode. You may find it helpful to use + Data::Dumper to visualise the structure of the returned + parse-trees. + . + This description was automagically extracted from the module by dh-make-perl. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..096c486 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +This is the debian package for the Net::Z3950::PQF module. +It was created by Mike Taylor using dh-make-perl. + +This copyright info was automatically extracted from the perl module. +It may not be accurate, so you better check the module sources +if don't want to get into legal troubles. + +The upstream author is: + +Mike Taylor, . diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0fc28d6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,83 @@ +#!/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 + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +TMP =$(CURDIR)/debian/$(PACKAGE) + +build: build-stamp +build-stamp: + dh_testdir + + # Add commands to compile the package here + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) OPTIMIZE="-Wall -O2 -g" + + touch build-stamp + +clean: + dh_testdir + dh_testroot + + # Add commands to clean up after the build process here + [ ! -f Makefile ] || $(MAKE) realclean + + dh_clean build-stamp install-stamp + +install: build install-stamp +install-stamp: + dh_testdir + dh_testroot + dh_clean -k + + # Add commands to install the package into debian/$PACKAGE_NAME here + $(MAKE) test + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + + # As this is a architecture independent package, we are not + # supposed to install stuff to /usr/lib. MakeMaker creates + # the dirs, we delete them from the deb: + rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5 + + touch install-stamp + +binary-arch: +# We have nothing to do by default. + +binary-indep: build install + dh_testdir + dh_testroot +# dh_installcron +# dh_installmenu +# dh_installexamples + dh_installdocs README + dh_installchangelogs Changes + dh_perl + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary -- 1.7.10.4