debian/0002755000000000000000000000000011523252301007162 5ustar debian/compat0000644000000000000000000000000211523247225010367 0ustar 7 debian/rules0000755000000000000000000000003611523247160010246 0ustar #!/usr/bin/make -f %: dh $@ debian/source/0002755000000000000000000000000011523252300010461 5ustar debian/source/format0000644000000000000000000000001411523247271011700 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000031711523252217010220 0ustar version=3 # URL to the package page followed by a regex to search opts=dversionmangle=s/\+dfsg\d+$// http://search.cpan.org/dist/Geo-Postcode/ .*/Geo-Postcode-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) debian/changelog0000644000000000000000000000316111523252257011045 0ustar libgeo-postcode-perl (0.17+dfsg1-1) unstable; urgency=low * New upstream release * Update Standards-Version (no changes) * Switch to minimal dh7 rules file * Update to debhelper compatibility level 7 * Update source format version to 3.0 (quilt) * Update README.Debian with a better URL for information about free postcodes * debian/watch: mangle Debian version to strip of dfsg portion -- Dominic Hargreaves Sat, 05 Feb 2011 13:46:07 +0000 libgeo-postcode-perl (0.15.dfsg.1-4) unstable; urgency=low * Fix debian/rules rmdir bug (closes: #468028) * Update Standards-Version (no changes) * Add debian/watch * debian/control: add Homepage field -- Dominic Hargreaves Thu, 28 Feb 2008 19:40:54 +0000 libgeo-postcode-perl (0.15.dfsg.1-3) unstable; urgency=medium * Fix FTBFS (build-dep on libdbi-perl, closes: #395859) * Also Depends on libdbi-perl; even though not all functionality requires it. -- Dominic Hargreaves Sat, 28 Oct 2006 11:30:58 +0100 libgeo-postcode-perl (0.15.dfsg.1-2) unstable; urgency=low * Correct copyright file to include reference to upstream location. -- Dominic Hargreaves Thu, 12 Oct 2006 10:25:44 +0100 libgeo-postcode-perl (0.15.dfsg.1-1) unstable; urgency=low * Remove dubious postcode data * Upload targetted at Debian (closes: #368452) * Fix broken Build-Depends-Indep on perl -- Dominic Hargreaves Wed, 11 Oct 2006 10:19:08 +0100 libgeo-postcode-perl (0.15-1) unstable; urgency=low * Initial Release. -- Dominic Hargreaves Tue, 10 Oct 2006 21:30:28 +0100 debian/README.Debian-source0000644000000000000000000000027110707472450012533 0ustar The dfsg.1 source this package has been prepared with is built from the Geo::Postcode source tarball obtained from CPAN with the following applied to it: rm postcodedata/postcodes.csv debian/patches/0002755000000000000000000000000011523252300010610 5ustar debian/patches/series0000644000000000000000000000004711523251117012031 0ustar no_test_data no_build_data doc_no_data debian/patches/no_build_data0000644000000000000000000000075111523251451013326 0ustar Description: don't build the data which has been removed in our DFSG version Origin: vendor Index: trunk/Makefile.PL =================================================================== --- trunk.orig/Makefile.PL 2011-02-05 13:27:43.000000000 +0000 +++ trunk/Makefile.PL 2011-02-05 13:27:48.000000000 +0000 @@ -19,7 +19,6 @@ clean => { FILES => './blib/lib/Geo/Postcode/postcodes.db' }, - PL_FILES => { "postcodedata/makesqlite.pl" => "postcodedata/makesqlite"}, ); sub test { debian/patches/doc_no_data0000644000000000000000000000230211523251373012771 0ustar Description: Document that our version contains no postcode data Origin: vendor --- libgeo-postcode-perl-0.17+dfsg1.orig/lib/Geo/Postcode.pm +++ libgeo-postcode-perl-0.17+dfsg1/lib/Geo/Postcode.pm @@ -55,9 +55,11 @@ Any postcode, whether fully or partly sp Unfortunately, and inexplicably, this information is not public domain: unless you're prepared to work at a very crude level, you have to buy location data either from the Post Office or a data shop. -This module comes with with a basic set of publicly-available coordinates that covers nearly all the postcode districts (ie it maps the first block of the postcode but not the second). +This module does not come with any postcode data of its own, therefore, and +so the coordinate and distance calculation facilities are unavailable unless +you plug in your own database. -This means that the coordinates we return and the distances we calculate are a bit crude, being based at best on the postcode area. See the POD for Geo::Delivery::Location for how to override the standard data set something more comprehensive. +See the POD for Geo::Delivery::Location for how to override the standard data set something more comprehensive. =head1 INTERFACE debian/patches/no_test_data0000644000000000000000000000134011523251537013206 0ustar Description: don't run the tests which depend on the non-DFSG free data Origin: vendor Index: trunk/t/01_test.t =================================================================== --- trunk.orig/t/01_test.t 2011-02-05 13:30:14.000000000 +0000 +++ trunk/t/01_test.t 2011-02-05 13:31:40.000000000 +0000 @@ -55,6 +55,8 @@ } isa_ok($postcode->location, 'Geo::Postcode::Location', 'location object'); +SKIP: { + skip "No postcode database in this distribution", 13; is($postcode->gridn, 497700, 'grid north'); is($postcode->gride, 340800, 'grid east'); is($postcode->lat, 54.371, 'grid latitude'); @@ -86,3 +88,4 @@ $hmmm->location_class('Geo::Postcode::Location'); is($hmmm->gridref, 'SD408977', 'location class mutator'); +} debian/README.Debian0000644000000000000000000000055611523251654011241 0ustar Upstream ships a postcode database that is of uncertain origin. To avoid legal problems the Debian package does not include this. To use the features of this module requiring the postcode database, you will need to acquire a database of your own (which may require paying the Post Office lots of money or looking at something like http://www.freepostcodes.org.uk/). debian/control0000644000000000000000000000233111523247174010576 0ustar Source: libgeo-postcode-perl Section: perl Priority: optional Build-Depends: debhelper (>= 7) Build-Depends-Indep: perl (>= 5.8.0-7), libdbi-perl Maintainer: Dominic Hargreaves Standards-Version: 3.9.1 Homepage: http://search.cpan.org/dist/Geo-Postcode/ Package: libgeo-postcode-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, libdbi-perl Description: UK Postcode validation and location Geo::Postcode will accept full or partial UK postcodes, validate them against the official spec, separate them into their significant parts, translate them into map references or co-ordinates and calculate distances between them. . The last two features require a postcode database to be supplied separately. . It does not check whether the supplied postcode exists: only whether it is well-formed according to British Standard 7666, which you can find here: . http://www.govtalk.gov.uk/gdsc/html/frames/PostCode.htm . Geo::Postcode will also work with partial codes, ie areas, districts and sectors. They won't validate, but you can test them for legitimacy with a call to valid_fragment, and you can still turn them into grid references. . To work with US zipcodes, you need Geo::Postalcode instead. debian/docs0000644000000000000000000000000711523247145010042 0ustar README debian/copyright0000644000000000000000000000132310707472450011126 0ustar This is the debian package for the Geo-Postcode module. It was created by Dominic Hargreaves using dh-make-perl. The original source was downloaded from CPAN The upstream author is: William Ross, wross@cpan.org Copyright 2004 William Ross, spanner ltd. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 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'.