r14763 - in /trunk/libxml-atom-perl: debian/changelog debian/compat debian/control debian/copyright debian/patches/ debian/rules debian/watch t/28-ext.t
rmayorga-guest at users.alioth.debian.org
rmayorga-guest at users.alioth.debian.org
Mon Feb 11 19:30:48 UTC 2008
Author: rmayorga-guest
Date: Mon Feb 11 19:30:47 2008
New Revision: 14763
URL: http://svn.debian.org/wsvn/?sc=1&rev=14763
Log:
* debian/control -- Bumped build-dependency on
libxml-libxml-perl to 1.64 as well
* Remove test-cases patch, this problem is solved with
libxml-libxml-perl >= 1.64
* debian/control
+ Raise debhelper version to 6
+ set standards-version to 3.7.3
+ wrap B-D-I and Uploaders field
+ remove quilt from B-D
* debian/rules
+ remove quilt
+ remove VENDORARCHEXP and INSTALLVENDORARCH
+ conditional remove of /usr/lib/perl5
+ Don't install README file, it only have Install Instructions
* debian/copyright: Convert to machine-readble format, and copyright
notice from upstream
* Improve debian/watch
Added:
trunk/libxml-atom-perl/t/28-ext.t
Removed:
trunk/libxml-atom-perl/debian/patches/
Modified:
trunk/libxml-atom-perl/debian/changelog
trunk/libxml-atom-perl/debian/compat
trunk/libxml-atom-perl/debian/control
trunk/libxml-atom-perl/debian/copyright
trunk/libxml-atom-perl/debian/rules
trunk/libxml-atom-perl/debian/watch
Modified: trunk/libxml-atom-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libxml-atom-perl/debian/changelog?rev=14763&op=diff
==============================================================================
--- trunk/libxml-atom-perl/debian/changelog (original)
+++ trunk/libxml-atom-perl/debian/changelog Mon Feb 11 19:30:47 2008
@@ -1,10 +1,8 @@
-libxml-atom-perl (0.28-1) UNRELEASED; urgency=low
-
- NEEDS libxml-libxml-perl 1.64 (#442813)
+libxml-atom-perl (0.28-1) unstable; urgency=low
[ David Paleino ]
* Newer upstream release 0.28
-
+
[ gregor herrmann ]
* Don't ignore return value of ($MAKE) distclean.
* debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser
@@ -32,10 +30,27 @@
+ Remove unneeded OPTIMIZE="..."
+ Use PERL_AUTOINSTALL=--skip when invoking $(Perl) Makefile.PL to avoid
downloading missing dependencies from CPAN
- * debian/control -- Bumped build-dependency on libxml-libxml-perl to 1.64 as
- well
+ * debian/control -- Bumped build-dependency on
+ libxml-libxml-perl to 1.64 as well
- -- David Paleino <d.paleino at gmail.com> Sat, 17 Nov 2007 09:04:21 +0100
+ [ Rene Mayorga ]
+ * Remove test-cases patch, this problem is solved with
+ libxml-libxml-perl >= 1.64
+ * debian/control
+ + Raise debhelper version to 6
+ + set standards-version to 3.7.3
+ + wrap B-D-I and Uploaders field
+ + remove quilt from B-D
+ * debian/rules
+ + remove quilt
+ + remove VENDORARCHEXP and INSTALLVENDORARCH
+ + conditional remove of /usr/lib/perl5
+ + Don't install README file, it only have Install Instructions
+ * debian/copyright: Convert to machine-readble format, and copyright
+ notice from upstream
+ * Improve debian/watch
+
+ -- Rene Mayorga <rmayorga at debian.org.sv> Mon, 11 Feb 2008 10:46:28 -0600
libxml-atom-perl (0.25-2) unstable; urgency=low
Modified: trunk/libxml-atom-perl/debian/compat
URL: http://svn.debian.org/wsvn/trunk/libxml-atom-perl/debian/compat?rev=14763&op=diff
==============================================================================
--- trunk/libxml-atom-perl/debian/compat (original)
+++ trunk/libxml-atom-perl/debian/compat Mon Feb 11 19:30:47 2008
@@ -1,1 +1,1 @@
-5
+6
Modified: trunk/libxml-atom-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libxml-atom-perl/debian/control?rev=14763&op=diff
==============================================================================
--- trunk/libxml-atom-perl/debian/control (original)
+++ trunk/libxml-atom-perl/debian/control Mon Feb 11 19:30:47 2008
@@ -1,13 +1,18 @@
Source: libxml-atom-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 5.0.0), dpatch
-Build-Depends-Indep: perl (>= 5.8.0-7), libxml-libxml-perl (>=1.64), liburi-perl, libwww-perl, liblwp-authen-wsse-perl, libdigest-sha1-perl, libdatetime-perl, libhtml-parser-perl, libxml-libxslt-perl, libclass-data-inheritable-perl, libxml-xpath-perl
+Build-Depends: debhelper (>= 6)
+Build-Depends-Indep: perl (>= 5.8.0-7), libxml-libxml-perl (>=1.64),
+ liburi-perl, libwww-perl, liblwp-authen-wsse-perl,
+ libdigest-sha1-perl, libdatetime-perl, libhtml-parser-perl,
+ libxml-libxslt-perl, libclass-data-inheritable-perl, libxml-xpath-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Tim Peeler <thp at linuxforce.net>, gregor herrmann <gregor+debian at comodo.priv.at>,
- Carlo Segre <segre at debian.org>, Krzysztof Krzyzaniak (eloy) <eloy at debian.org>,
+Uploaders: Tim Peeler <thp at linuxforce.net>,
+ gregor herrmann <gregor+debian at comodo.priv.at>,
+ Carlo Segre <segre at debian.org>,
+ Krzysztof Krzyzaniak (eloy) <eloy at debian.org>,
Rene Mayorga <rmayorga at debian.org.sv>, David Paleino <d.paleino at gmail.com>
-Standards-Version: 3.7.2
+Standards-Version: 3.7.3
Homepage: http://search.cpan.org/dist/XML-Atom/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libxml-atom-perl/
Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-atom-perl/
Modified: trunk/libxml-atom-perl/debian/copyright
URL: http://svn.debian.org/wsvn/trunk/libxml-atom-perl/debian/copyright?rev=14763&op=diff
==============================================================================
--- trunk/libxml-atom-perl/debian/copyright (original)
+++ trunk/libxml-atom-perl/debian/copyright Mon Feb 11 19:30:47 2008
@@ -1,17 +1,16 @@
-This is the debian package for the XML-Atom module.
-It was created by Tim Peeler <thp at linuxforce.net> using dh-make-perl.
+This package was downloaded from: http://search.cpan.org/dist/XML-Atom/
-Upstream Author: Benjamin Trott <cpan at stupidfool.org>
+Upstream author: Benjamin Trott, cpan at stupidfool.org.
-License:
+files : *
+Copyright: © 2003-2005 Benjamin Trott, <cpan at stupidfool.org>
+License GPL-2+ | Artistic
-This program is free software; you can redistribute it and/or
-modify it under the same terms as Perl itself.
+Files: debian/*
+Copyright: © 2008 Debian Perl Group
+ <pkg-perl-maintainers at lists.alioth.debian.org>
+License: GPL
-See http://www.perl.com/perl/misc/Artistic.html
-
-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'.
-
+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'.
Modified: trunk/libxml-atom-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libxml-atom-perl/debian/rules?rev=14763&op=diff
==============================================================================
--- trunk/libxml-atom-perl/debian/rules (original)
+++ trunk/libxml-atom-perl/debian/rules Mon Feb 11 19:30:47 2008
@@ -19,36 +19,19 @@
TMP =$(CURDIR)/debian/$(PACKAGE)
-include /usr/share/dpatch/dpatch.make
-
-# Allow disabling build optimation by setting noopt in
-# $DEB_BUILD_OPTIONS
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
build: build-stamp
-build-stamp: patch-stamp
+build-stamp:
dh_testdir
-
PERL_AUTOINSTALL=--skip $(PERL) Makefile.PL \
INSTALLDIRS=vendor \
- VENDORARCHEXP=/usr/share/perl5 \
- INSTALLVENDORARCH=/usr/share/perl5
$(MAKE)
$(MAKE) test
-
touch $@
-clean: unpatch
+clean:
dh_testdir
dh_testroot
-
dh_clean build-stamp install-stamp
-
[ ! -f Makefile ] || $(MAKE) distclean
install: install-stamp
@@ -56,16 +39,15 @@
dh_testdir
dh_testroot
dh_clean -k
-
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
touch $@
+ [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
binary-arch:
binary-indep: build install
dh_testdir
dh_testroot
- dh_installdocs README
+ dh_installdocs
dh_installchangelogs Changes
dh_perl
dh_compress
Modified: trunk/libxml-atom-perl/debian/watch
URL: http://svn.debian.org/wsvn/trunk/libxml-atom-perl/debian/watch?rev=14763&op=diff
==============================================================================
--- trunk/libxml-atom-perl/debian/watch (original)
+++ trunk/libxml-atom-perl/debian/watch Mon Feb 11 19:30:47 2008
@@ -1,3 +1,2 @@
-# format version number, currently 3; this line is compulsory!
version=3
-http://www.cpan.org/modules/by-module/XML/XML-Atom-([\d\.]+)\.tar\.gz
+http://search.cpan.org/dist/XML-Atom/ .*/XML-Atom-v?(\d.*)\.tar\.gz
Added: trunk/libxml-atom-perl/t/28-ext.t
URL: http://svn.debian.org/wsvn/trunk/libxml-atom-perl/t/28-ext.t?rev=14763&op=file
==============================================================================
--- trunk/libxml-atom-perl/t/28-ext.t (added)
+++ trunk/libxml-atom-perl/t/28-ext.t Mon Feb 11 19:30:47 2008
@@ -1,0 +1,85 @@
+package XML::Atom::Ext::Test;
+
+use base qw( XML::Atom::Base );
+
+XML::Atom::Feed->mk_elem_accessors(qw(totalResults startIndex itemsPerPage),
+ [ element_ns() ]
+);
+
+XML::Atom::Feed->mk_object_list_accessor( ext_link => 'XML::Atom::Ext::Test::Link' );
+#XML::Atom::Feed->mk_object_accessor( Query => 'XML::Atom::Ext::::Query' );
+
+sub element_ns {
+ return XML::Atom::Namespace->new("testext" => q{http://test.com/-/spec/test/0.1/} );
+}
+
+1;
+
+package XML::Atom::Ext::Test::Link;
+
+use base qw( XML::Atom::Base );
+
+__PACKAGE__->mk_attr_accessors( qw( href hreflang rel type ) );
+
+sub element_name {
+ return 'link'
+}
+
+sub element_ns {
+ return XML::Atom::Ext::Test->element_ns;
+}
+
+1;
+
+package main;
+
+use strict;
+use warnings;
+
+use XML::Atom::Feed;
+use Test::More tests => 8;
+
+my $feed = XML::Atom::Feed->new;
+
+my $link = XML::Atom::Link->new;
+ $link->href(q{http://www.legacy_link.com});
+ $feed->add_link($link);
+
+my $ext_link = XML::Atom::Ext::Test::Link->new;
+ $ext_link->href(q{http://www.extended_link.org});
+ $feed->add_ext_link($ext_link);
+
+ok($ext_link, "creating extension link");
+
+# Test simple accessors
+my @accessors = qw( totalResults startIndex itemsPerPage );
+
+for ( @accessors ) {
+ $feed->$_( 2 );
+}
+for ( @accessors ) {
+ is($feed->$_, 2, "extension accessors");
+}
+
+my $xml = $feed->as_xml;
+like( $xml, qr{xmlns:testext="http://test.com/-/spec/test/0.1/"}, "ext namespace");
+like( $xml, qr{<testext:link xmlns:testext="http://test.com/-/spec/test/0.1/" href="http://www.extended_link.org"/>}, "ext link match");
+
+like( $xml, qr{<testext:startIndex xmlns:testext="http://test.com/-/spec/test/0.1/">2</testext:startIndex>}, "ext method match");
+
+like( $xml, qr{<link(?: xmlns="http://purl.org/atom/ns#")? href="http://www.legacy_link.com"/>}, "standard link match");
+
+
+__END__
+
+=head2 Expected Output
+
+ <?xml version="1.0" encoding="utf-8"?>
+ <feed xmlns="http://purl.org/atom/ns#" xmlns:testext="http://test.com/-/spec/test/0.1/">
+ <link xmlns="http://purl.org/atom/ns#" href="http://www.legacy_link.com"/>
+ <testext:link xmlns:testext="http://test.com/-/spec/test/0.1/" href="http://www.extended_link.org"/>
+ <testext:totalResults xmlns:testext="http://test.com/-/spec/test/0.1/">2</testext:totalResults>
+ <testext:startIndex xmlns:testext="http://test.com/-/spec/test/0.1/">2</testext:startIndex>
+ <testext:itemsPerPage xmlns:testext="http://test.com/-/spec/test/0.1/">2</testext:itemsPerPage>
+ </feed>
+
More information about the Pkg-perl-cvs-commits
mailing list