--- libclass-dbi-loader-relationship-perl-1.2.orig/debian/watch +++ libclass-dbi-loader-relationship-perl-1.2/debian/watch @@ -0,0 +1,6 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +http://www.cpan.org/authors/id/S/SI/SIMON/Class-DBI-Loader-Relationship-(\d+\.\d+)\.tar\.gz debian uupdate \ No newline at end of file --- libclass-dbi-loader-relationship-perl-1.2.orig/debian/patches/01camel_case.dpatch +++ libclass-dbi-loader-relationship-perl-1.2/debian/patches/01camel_case.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01camel_case.dpatch by Stephen Quinney +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: There seems to be a problem when setting up has_a / has_many +## DP: relationships with classes involved that contain CamelCase and the +## DP: database table has an underscore (camel_case). When the has_many is +## DP: called before the has_a, cascading deletes won't work. +## DP: See bug#330088, thanks to Joachim Breitner + +@DPATCH@ +diff -urNad libclass-dbi-loader-relationship-perl-1.2~/Relationship.pm libclass-dbi-loader-relationship-perl-1.2/Relationship.pm +--- libclass-dbi-loader-relationship-perl-1.2~/Relationship.pm 2004-03-01 16:48:45.000000000 +0000 ++++ libclass-dbi-loader-relationship-perl-1.2/Relationship.pm 2005-10-12 09:51:07.000000000 +0100 +@@ -93,8 +93,8 @@ + return "$from_c->$method($mapper => $to_c);\n". + ($method ne "has_a" && "$to_c->has_a(".to_S($from)." => $from_c);\n") + if $DEBUG; +- $from_c->$method($mapper => $to_c); + $to_c->has_a(to_S($from) => $from_c) unless $method eq "has_a"; ++ $from_c->$method($mapper => $to_c); + } + + 1; --- libclass-dbi-loader-relationship-perl-1.2.orig/debian/patches/00list +++ libclass-dbi-loader-relationship-perl-1.2/debian/patches/00list @@ -0,0 +1 @@ +01camel_case --- libclass-dbi-loader-relationship-perl-1.2.orig/debian/changelog +++ libclass-dbi-loader-relationship-perl-1.2/debian/changelog @@ -0,0 +1,21 @@ +libclass-dbi-loader-relationship-perl (1.2-3) unstable; urgency=low + + * Fixed small problem with declaring has_many before has_a + relationships, closes: #330088. + * Added build-dependency on dpatch. + * Switched to my debian.org email address. + + -- Stephen Quinney Wed, 12 Oct 2005 09:55:45 +0100 + +libclass-dbi-loader-relationship-perl (1.2-2) unstable; urgency=low + + * debian/watch - Updated URL so lookups do not randomly fail. + + -- Stephen Quinney Sat, 11 Jun 2005 11:58:57 +0100 + +libclass-dbi-loader-relationship-perl (1.2-1) unstable; urgency=low + + * Initial Release, closes: #264644. + + -- Stephen Quinney Wed, 11 Aug 2004 20:41:36 +0100 + --- libclass-dbi-loader-relationship-perl-1.2.orig/debian/control +++ libclass-dbi-loader-relationship-perl-1.2/debian/control @@ -0,0 +1,26 @@ +Source: libclass-dbi-loader-relationship-perl +Section: perl +Priority: optional +Maintainer: Stephen Quinney +Build-Depends-Indep: debhelper (>= 4), dpatch, perl (>= 5.6.0-16), libclass-dbi-loader-perl, liblingua-en-inflect-number-perl (>= 1), libtest-simple-perl +Standards-Version: 3.6.2 + +Package: libclass-dbi-loader-relationship-perl +Architecture: all +Depends: ${perl:Depends}, libclass-dbi-loader-perl, liblingua-en-inflect-number-perl (>= 1) +Description: Easier relationship specification in Class::DBI::Loader + This module acts as a mix-in, adding the relationship() method to + Class::DBI::Loader. Since Class::DBI::Loader knows how to map between + table names and class names, there ought to be no need to replicate + the names. + . + In addition, it is common (but not universal) to want reverse + relationships defined for has-many relationships, and for has-a + relationships to be defined for the linkages surrounding a + many-to-many table. + . + The aim of this module is to simplify the declaration of common + database relationships by providing both of these features. + . + The relationship takes a string. It recognises table names (singular + or plural, for convenience) and extracts them from the "sentence". --- libclass-dbi-loader-relationship-perl-1.2.orig/debian/copyright +++ libclass-dbi-loader-relationship-perl-1.2/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Stephen Quinney on +Fri, 28 May 2004 13:57:22 +0100 + +It was downloaded from http://search.cpan.org/CPAN/authors/id/S/SI/SIMON/ + +Upstream Author: Simon Cozens + +Copyright: + + This program is free software; you can redistribute it and/or modify + it under the terms of either: + + a) the GNU General Public License as published by the Free Software + Foundation; either version 1, or (at your option) any later + version, or + + b) the "Artistic License" which comes with Perl. + + 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'. --- libclass-dbi-loader-relationship-perl-1.2.orig/debian/rules +++ libclass-dbi-loader-relationship-perl-1.2/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +# Define the perl interpreter + +PACKAGE = $(shell dh_listpackages) + +TMP =`pwd`/debian/$(PACKAGE) + +PERL = /usr/bin/perl + +configure: configure-stamp +configure-stamp: + dh_testdir + + perl Makefile.PL verbose INSTALLDIRS=vendor + + touch configure-stamp + +build: patch build-stamp +build-stamp: configure-stamp + dh_testdir + + $(MAKE) + $(MAKE) test + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + + [ ! -e Makefile ] || $(MAKE) distclean + + dh_clean build-stamp configure-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install PREFIX=$(TMP)/usr + + # Remove any empty directories + + find $(TMP)/usr -type d -empty -print0 | xargs --no-run-if-empty --null rmdir -p --ignore-fail-on-non-empty + +# Build architecture-independent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_perl + dh_installdocs README + dh_installman + dh_installchangelogs Changes + 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 configure --- libclass-dbi-loader-relationship-perl-1.2.orig/debian/compat +++ libclass-dbi-loader-relationship-perl-1.2/debian/compat @@ -0,0 +1 @@ +4