r25348 - in /trunk/libcoat-persistent-perl: Makefile.PL debian/changelog debian/compat debian/control debian/copyright debian/patches/pod-error.patch debian/rules lib/Coat/Persistent.pm t/007_unique.t t/008_syntax.t t/009_cache.t

ansgar-guest at users.alioth.debian.org ansgar-guest at users.alioth.debian.org
Fri Sep 19 12:11:23 UTC 2008


Author: ansgar-guest
Date: Fri Sep 19 12:11:20 2008
New Revision: 25348

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=25348
Log:
* New upstream release.
  + drop Build-Dep on libtest-exception-perl
* Refresh debian/rules for debhelper 7
* debian/control: Fix Homepage field
* Convert debian/copyright to proposed machine-readable format
* Add myself to Uploaders
* Change pod-error.patch a bit

Modified:
    trunk/libcoat-persistent-perl/Makefile.PL
    trunk/libcoat-persistent-perl/debian/changelog
    trunk/libcoat-persistent-perl/debian/compat
    trunk/libcoat-persistent-perl/debian/control
    trunk/libcoat-persistent-perl/debian/copyright
    trunk/libcoat-persistent-perl/debian/patches/pod-error.patch
    trunk/libcoat-persistent-perl/debian/rules
    trunk/libcoat-persistent-perl/lib/Coat/Persistent.pm
    trunk/libcoat-persistent-perl/t/007_unique.t
    trunk/libcoat-persistent-perl/t/008_syntax.t
    trunk/libcoat-persistent-perl/t/009_cache.t

Modified: trunk/libcoat-persistent-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/Makefile.PL?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/Makefile.PL (original)
+++ trunk/libcoat-persistent-perl/Makefile.PL Fri Sep 19 12:11:20 2008
@@ -7,6 +7,7 @@
         'Coat' => '0.1_0.6',
         'DBI'  => '0',
         'DBIx::Sequence' => 0,
+	'DBD::CSV' => 0, # needed for the test suite
         'SQL::Abstract' => 0,
         'List::Compare' => 0,
     },

Modified: trunk/libcoat-persistent-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/debian/changelog?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/debian/changelog (original)
+++ trunk/libcoat-persistent-perl/debian/changelog Fri Sep 19 12:11:20 2008
@@ -1,3 +1,15 @@
+libcoat-persistent-perl (0.101-1) unstable; urgency=low
+
+  * New upstream release.
+    + drop Build-Dep on libtest-exception-perl
+  * Refresh debian/rules for debhelper 7
+  * debian/control: Fix Homepage field
+  * Convert debian/copyright to proposed machine-readable format
+  * Add myself to Uploaders
+  * Change pod-error.patch a bit
+
+ -- Ansgar Burchardt <ansgar at 43-1.org>  Fri, 19 Sep 2008 14:11:07 +0200
+
 libcoat-persistent-perl (0.100-2) unstable; urgency=medium
 
   * Make dependency on libdbd-csv-perl versioned (>= 0.2200-5); earlier

Modified: trunk/libcoat-persistent-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/debian/compat?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/debian/compat (original)
+++ trunk/libcoat-persistent-perl/debian/compat Fri Sep 19 12:11:20 2008
@@ -1,1 +1,1 @@
-5
+7

Modified: trunk/libcoat-persistent-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/debian/control?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/debian/control (original)
+++ trunk/libcoat-persistent-perl/debian/control Fri Sep 19 12:11:20 2008
@@ -1,18 +1,19 @@
 Source: libcoat-persistent-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 5.0.0), quilt (>= 0.40)
+Build-Depends: debhelper (>= 7), quilt (>= 0.40)
 Build-Depends-Indep: perl (>= 5.8.8-12), libdbi-perl, libdbix-sequence-perl,
                      libsql-abstract-perl, libcoat-perl (>= 0.2),
                      liblist-compare-perl, libdbd-csv-perl (>= 0.2200-5),
-                     libtest-exception-perl, libcache-fastmmap-perl
+                     libcache-fastmmap-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Alexis Sukrieh <sukria at debian.org>,
-           gregor herrmann <gregoa at debian.org>
+           gregor herrmann <gregoa at debian.org>,
+           Ansgar Burchardt <ansgar at 43-1.org>
 Standards-Version: 3.8.0
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcoat-persistent-perl/
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/
-Homepage: http://search.cpan.org/dist/Coat::Persistent/
+Homepage: http://search.cpan.org/dist/Coat-Persistent/
 
 Package: libcoat-persistent-perl
 Architecture: all

Modified: trunk/libcoat-persistent-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/debian/copyright?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/debian/copyright (original)
+++ trunk/libcoat-persistent-perl/debian/copyright Fri Sep 19 12:11:20 2008
@@ -1,22 +1,22 @@
-This is the debian package for the Coat::Persistent module.
-It was created by Alexis Sukrieh <sukria at debian.org> using dh-make-perl.
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=228
+Upstream-Name: Coat-Persistent
+Upstream-Maintainer: Alexis Sukrieh <sukria at cpan.org>
+Upstream-Source: http://search.cpan.org/dist/Coat-Persistent/
 
-It was downloaded from http://search.cpan.org/dist/Coat-Persistent/
+Files: *
+Copyright: © 2007-2008, Alexis Sukrieh <sukria at cpan.org>
+License: GPL-1+ | Artistic
+ 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'.
 
-This module was written by Alexis Sukrieh <sukria at cpan.org>.
-Quite everything implemented in this module was inspired from
-ActiveRecord::Base's API (from Ruby on Rails).
+Files: debian/*
+Copyright: © 2008, Alexis Sukrieh <sukria at debian.org>
+License: GPL-1+ | Artistic
+ The Debian packaging is licensed under the same terms as the software
+ itself (see above).
 
-Parts of the documentation are also taken from ActiveRecord::Base when
-appropriate.
-
-Copyright (C) 2007-2008 Alexis Sukrieh
-
-This library is released under the terms of the GPL licence and 
-under the same terms as Perl itself.
-
-On Debian systems, the complete text of the GNU General Public
-License can be found in `/usr/share/common-licenses/GPL'.
-
-The Debian packaging is (C) 2008, Alexis Sukrieh <sukria at debian.org> and
-is licensed under the same terms as the software itself (see above).

Modified: trunk/libcoat-persistent-perl/debian/patches/pod-error.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/debian/patches/pod-error.patch?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/debian/patches/pod-error.patch (original)
+++ trunk/libcoat-persistent-perl/debian/patches/pod-error.patch Fri Sep 19 12:11:20 2008
@@ -1,6 +1,6 @@
---- a/lib/Coat/Persistent.pm
-+++ b/lib/Coat/Persistent.pm
-@@ -781,7 +781,7 @@ Supported values for B<$driver> are the 
+--- libcoat-persistent-perl.orig/lib/Coat/Persistent.pm
++++ libcoat-persistent-perl/lib/Coat/Persistent.pm
+@@ -781,7 +781,7 @@
  
  =over 4
  
@@ -9,7 +9,7 @@
  file. B<@options> must contains a string as its first element being like the
  following: "f_dir=<DIRECTORY>" where DIRECTORY is the directory where to store
  de CSV files.
-@@ -792,7 +792,7 @@ Example:
+@@ -792,7 +792,7 @@
      use Coat::Persistent;
      __PACKAGE__->map_to_dbi('csv', 'f_dir=./t/csv-directory');
  
@@ -18,12 +18,12 @@
  to a MySQL database. B<@options> must be a list that contains repectively: the
  database name, the database user, the database password.
  
-@@ -952,6 +952,8 @@ Example with options:
+@@ -950,8 +950,6 @@
  
- =back
+     my @list = Class->find($condition, { order => 'field1 desc' })
  
-+=over 4
-+
+-=back
+-
  =item B<find_by_sql($sql, @bind_values>
  
  Executes a custom sql query against your database and returns all the results

Modified: trunk/libcoat-persistent-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/debian/rules?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/debian/rules (original)
+++ trunk/libcoat-persistent-perl/debian/rules Fri Sep 19 12:11:20 2008
@@ -1,62 +1,23 @@
 #!/usr/bin/make -f
-# This debian/rules file is provided as a template for normal perl
-# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> 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
-
-include /usr/share/quilt/quilt.make
-
-PERL   ?= /usr/bin/perl
-PACKAGE = $(shell dh_listpackages)
-TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
-build-stamp: $(QUILT_STAMPFN)
-	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE)
-	$(MAKE) test
+build-stamp:
+	dh build
 	touch $@
 
-clean: unpatch
-	dh_testdir
-	dh_testroot
-	dh_clean build-stamp install-stamp
-	[ ! -f Makefile ] || $(MAKE) realclean
+clean:
+	dh $@
 
 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
+	dh install
 	touch $@
 
 binary-arch:
-# We have nothing to do here for an architecture-independent package
 
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installchangelogs
-	dh_perl
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+binary-indep: install
+	dh $@
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+binary: binary-arch binary-indep
+
+.PHONY: binary binary-arch binary-indep install clean build

Modified: trunk/libcoat-persistent-perl/lib/Coat/Persistent.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/lib/Coat/Persistent.pm?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/lib/Coat/Persistent.pm (original)
+++ trunk/libcoat-persistent-perl/lib/Coat/Persistent.pm Fri Sep 19 12:11:20 2008
@@ -20,7 +20,7 @@
 use vars qw($VERSION @EXPORT $AUTHORITY);
 use base qw(Exporter);
 
-$VERSION   = '0.100';
+$VERSION   = '0.101';
 $AUTHORITY = 'cpan:SUKRIA';
 @EXPORT    = qw(has_p has_one has_many);
 

Modified: trunk/libcoat-persistent-perl/t/007_unique.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/t/007_unique.t?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/t/007_unique.t (original)
+++ trunk/libcoat-persistent-perl/t/007_unique.t Fri Sep 19 12:11:20 2008
@@ -1,7 +1,6 @@
 use strict;
 use warnings;
 use Test::More 'no_plan';
-use Test::Exception;
 
 BEGIN { use_ok 'Coat::Persistent' }
 {
@@ -23,11 +22,12 @@
 }
 
 # tests
-throws_ok {
-    my $p = new Person name => 'Joe'; 
+my $p;
+eval {
+    $p = new Person name => 'Joe'; 
     $p->save;
-} qr/Value Joe violates unique constraint for attribute name \(class Person\)/, 
-'unable to save a person with name "Joe" : unique value already taken';
+};
+ok( $@, "Value Joe violates unique constraint for attribute name");
 
 # clean
 $dbh->do("DROP TABLE person");

Modified: trunk/libcoat-persistent-perl/t/008_syntax.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/t/008_syntax.t?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/t/008_syntax.t (original)
+++ trunk/libcoat-persistent-perl/t/008_syntax.t Fri Sep 19 12:11:20 2008
@@ -1,7 +1,6 @@
 use strict;
 use warnings;
 use Test::More 'no_plan';
-use Test::Exception;
 
 BEGIN { use_ok 'Coat::Persistent' }
 {
@@ -18,12 +17,13 @@
 my $dbh = Person->dbh;
 $dbh->do("CREATE TABLE person (id INTEGER, name CHAR(64), age INTEGER)");
 
-# tests
-throws_ok {
-    my $p = new Person name => '213'; 
+
+my $p;
+eval {
+    $p = new Person name => '213'; 
     $p->save;
-} qr/Value "213" for attribute "name" is not valid/, 
-'Unable to set a name only with numbers';
+};
+ok($@, '"213" for attribute "name" is not valid');
 
 my $p2 = new Person name => 'jo213'; 
 ok( $p2->save, 'possible to save with name with letters and numbers');

Modified: trunk/libcoat-persistent-perl/t/009_cache.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcoat-persistent-perl/t/009_cache.t?rev=25348&op=diff
==============================================================================
--- trunk/libcoat-persistent-perl/t/009_cache.t (original)
+++ trunk/libcoat-persistent-perl/t/009_cache.t Fri Sep 19 12:11:20 2008
@@ -1,9 +1,15 @@
 use strict;
 use warnings;
-use Test::More tests => 5;
+use Test::More 'no_plan';
 
 BEGIN { use_ok 'Coat::Persistent' }
 
+# must have Cache::FastMmap isntalled
+eval "use Cache::FastMmap";
+my $have_cache_fastmmap = ($@ ? 0 : 1);
+
+SKIP: {
+     skip "Cache::FastMmap not installed", 10 unless $have_cache_fastmmap;
 {
     package Person;
     use Coat;
@@ -43,3 +49,8 @@
 $dbh->do("DROP TABLE person");
 $dbh->do("DROP TABLE dbix_sequence_state");
 $dbh->do("DROP TABLE dbix_sequence_release");
+};
+
+
+
+




More information about the Pkg-perl-cvs-commits mailing list