--- libwwwbrowser-perl-2.23.orig/debian/control +++ libwwwbrowser-perl-2.23/debian/control @@ -0,0 +1,21 @@ +Source: libwwwbrowser-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 6.0.0), quilt +Build-Depends-Indep: perl (>= 5.8.8), xvfb, lynx, xterm, xinit, xauth, + xfonts-base, libio-socket-ssl-perl +Maintainer: Debian Perl Group +Uploaders: Carlo Segre +Homepage: http://user.cs.tu-berlin.de/~eserte/src/perl/WWWBrowser/ +Standards-Version: 3.8.0 +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libwwwbrowser-perl/ +Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libwwwbrowser-perl/ + +Package: libwwwbrowser-perl +Architecture: all +Replaces: horae +Depends: ${perl:Depends}, ${misc:Depends}, lynx | www-browser +Description: Platform independent means to start a WWW browser + Perl module which starts a web browser, in the background for X11, with a + specified URL. Options exist to use a user-specified browser, including + text browsers, which are started in a terminal window. --- libwwwbrowser-perl-2.23.orig/debian/compat +++ libwwwbrowser-perl-2.23/debian/compat @@ -0,0 +1 @@ +6 --- libwwwbrowser-perl-2.23.orig/debian/watch +++ libwwwbrowser-perl-2.23/debian/watch @@ -0,0 +1,4 @@ +version=3 +http://user.cs.tu-berlin.de/~eserte/src/perl/WWWBrowser/WWWBrowser-(.*)\.tar\.gz \ + debian + --- libwwwbrowser-perl-2.23.orig/debian/README.source +++ libwwwbrowser-perl-2.23/debian/README.source @@ -0,0 +1,6 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +See /usr/share/doc/quilt/README.source for a detailed explanation. + --- libwwwbrowser-perl-2.23.orig/debian/changelog +++ libwwwbrowser-perl-2.23/debian/changelog @@ -0,0 +1,29 @@ +libwwwbrowser-perl (2.23-2) unstable; urgency=low + + [ Carlo Segre ] + * Add Replaces stanza to allow for smooth upgrading of horae package + which used to contain this module. + + [ gregor herrmann ] + * debian/control: Changed: Switched Vcs-Browser field to ViewSVN + (source stanza). + + -- Carlo Segre Tue, 10 Mar 2009 22:33:37 -0500 + +libwwwbrowser-perl (2.23-1) unstable; urgency=low + + * Initial Release (Closes: #492376) + * Set Standards-Version to 3.8.0 for release + + [ gregor herrmann ] + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza). Removed: XS-Vcs-Svn fields (source stanza). + * Set debhelper compatibility level to 6. + * debian/rules: + - remove unneeded variables from perl Makefile.PL + - let install-stamp target depend on build-stamp + - remove /usr/bin and /usr/lib/perl5 if they exist + * Set Standards-Version to 3.7.3 (no changes needed). + * Split changes from .diff.gz to proper patches. + + -- Carlo Segre Fri, 25 Jul 2008 11:54:18 -0500 --- libwwwbrowser-perl-2.23.orig/debian/copyright +++ libwwwbrowser-perl-2.23/debian/copyright @@ -0,0 +1,18 @@ +This is the debian package for the WWWBrowser module. +It was created by Carlo Segre using dh-make-perl. + +It was downloaded from http://user.cs.tu-berlin.de/~eserte/src/perl/WWWBrowser/ + +The upstream author is: Slaven Rezic . + +Copyright (c) 1999,2000,2001,2003 Slaven Rezic. All rights reserved. +This module 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'. + +The Debian packaging is (C) 2007, Carlo Segre and +is licensed under the same terms as the software itself (see above). --- libwwwbrowser-perl-2.23.orig/debian/rules +++ libwwwbrowser-perl-2.23/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 + +include /usr/share/quilt/quilt.make + +# 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: $(QUILT_STAMPFN) + dh_testdir + + # Add commands to compile the package here + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + xvfb-run $(MAKE) test + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + + dh_clean build-stamp install-stamp + + # Add commands to clean up after the build process here + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + + # Add commands to install the package into debian/PACKAGE_NAME here + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + # anybrowser should be an example script + rm -f $(TMP)/usr/bin/anybrowser + + # remove empty dirs if they exist + [ ! -d $(TMP)/usr/bin ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/bin + [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/lib/perl5 + + + touch $@ + +binary-arch: +# We have nothing to do here for an architecture-dependent package + +binary-indep: build install + dh_testdir + dh_testroot + dh_installexamples anybrowser + dh_installdocs README + dh_installchangelogs Changes + dh_perl + 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 --- libwwwbrowser-perl-2.23.orig/debian/patches/WWWBrowser.pm.patch +++ libwwwbrowser-perl-2.23/debian/patches/WWWBrowser.pm.patch @@ -0,0 +1,23 @@ +--- a/WWWBrowser.pm ++++ b/WWWBrowser.pm +@@ -22,8 +22,9 @@ + $VERSION = sprintf("%d.%02d", q$Revision: 2.23 $ =~ /(\d+)\.(\d+)/); + + @unix_browsers = qw(_default_gnome _default_kde +- mozilla galeon konqueror netscape Netscape kfmclient +- dillo w3m lynx ++ iceweasel iceape epiphany galeon konqueror links2 ++ firefox mozilla netscape Netscape opera ++ dillo w3m lynx links chimera2 arora netsurf conkeror + mosaic Mosaic + chimera arena tkweb + explorer) if !@unix_browsers; +@@ -346,7 +347,7 @@ + + =head1 NAME + +-WWWBrowser - platform independent mean to start a WWW browser ++WWWBrowser - platform independent means to start a WWW browser + + =head1 SYNOPSIS + --- libwwwbrowser-perl-2.23.orig/debian/patches/test.pl.patch +++ libwwwbrowser-perl-2.23/debian/patches/test.pl.patch @@ -0,0 +1,11 @@ +--- a/test.pl ++++ b/test.pl +@@ -23,7 +23,7 @@ + use File::Spec; + + if (!$ENV{BATCH}) { +- WWWBrowser::start_browser("file:" . File::Spec->catfile(cwd, "test.html")); ++ WWWBrowser::start_browser("file:" . File::Spec->catfile(cwd, "test.html"), -browser => "lynx"); + } + + if (hostname eq 'vran.herceg.de') { --- libwwwbrowser-perl-2.23.orig/debian/patches/series +++ libwwwbrowser-perl-2.23/debian/patches/series @@ -0,0 +1,2 @@ +WWWBrowser.pm.patch +test.pl.patch