--- libtext-typography-perl-0.01.orig/debian/control +++ libtext-typography-perl-0.01/debian/control @@ -0,0 +1,22 @@ +Source: libtext-typography-perl +Section: perl +Priority: optional +Maintainer: Debian Perl Group +Uploaders: Recai Oktaş +Build-Depends: debhelper (>= 6), cdbs +Build-Depends-Indep: perl, libmodule-build-perl, libtest-pod-perl +Standards-Version: 3.7.3 +Homepage: http://search.cpan.org/dist/Text-Typography/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libtext-typography-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-typography-perl/ + +Package: libtext-typography-perl +Section: perl +Priority: optional +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends} +Description: markup ASCII text with correct typography for HTML + This module is a thin wrapper for John Gruber's SmartyPants plugin for + various CMSs. SmartyPants is a web publishing utility that translates + plain ASCII punctuation characters into "smart" typographic punctuation + HTML entities. --- libtext-typography-perl-0.01.orig/debian/patches/no-warnings.patch +++ libtext-typography-perl-0.01/debian/patches/no-warnings.patch @@ -0,0 +1,11 @@ +diff -rup a/libtext-typography-perl/lib/Text/Typography.pm b/libtext-typography-perl/lib/Text/Typography.pm +--- a/libtext-typography-perl/lib/Text/Typography.pm 2006-09-21 00:36:07.000000000 +0300 ++++ b/libtext-typography-perl/lib/Text/Typography.pm 2006-09-21 03:31:23.000000000 +0300 +@@ -502,6 +502,7 @@ sub EducateQuotes { + # even when it's undefined. Use $^W instead of "no warnings" + # for compatibility with Perl 5.005: + local $^W = 0; ++ local $SIG{__WARN__} = sub {}; + + + # Make our own "punctuation" character class, because the POSIX-style --- libtext-typography-perl-0.01.orig/debian/rules +++ libtext-typography-perl-0.01/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +THIS := libtext-typography-perl + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/perlmodule.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +install/$(THIS):: + # As this is a architecture independent package, we are not + # supposed to install stuff to /usr/lib. MakeMaker creates + # the dirs, we delete them from the deb: + [ ! -d $(CURDIR)/debian/$(THIS)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/$(THIS)/usr/lib/perl5 --- libtext-typography-perl-0.01.orig/debian/watch +++ libtext-typography-perl-0.01/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/Text-Typography/ .*/Text-Typography-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) --- libtext-typography-perl-0.01.orig/debian/copyright +++ libtext-typography-perl-0.01/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by Recai Oktaş . It was +downloaded from http://search.cpan.org/~tsibley/Text-Typography-0.01/ + +Generic upstream source location: http://search.cpan.org/dist/Text-Typography/ + +SmartyPants was written by John Gruber. Thomas Sibley +is the Perl module's author. + +Copyright: + + Copyright (c) 2003 John Gruber + (http://daringfireball.net/) + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name "SmartyPants" nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + + This software is provided by the copyright holders and contributors "as + is" and any express or implied warranties, including, but not limited + to, the implied warranties of merchantability and fitness for a + particular purpose are disclaimed. In no event shall the copyright owner + or contributors be liable for any direct, indirect, incidental, special, + exemplary, or consequential damages (including, but not limited to, + procurement of substitute goods or services; loss of use, data, or + profits; or business interruption) however caused and on any theory of + liability, whether in contract, strict liability, or tort (including + negligence or otherwise) arising in any way out of the use of this + software, even if advised of the possibility of such damage. --- libtext-typography-perl-0.01.orig/debian/compat +++ libtext-typography-perl-0.01/debian/compat @@ -0,0 +1 @@ +6 --- libtext-typography-perl-0.01.orig/debian/changelog +++ libtext-typography-perl-0.01/debian/changelog @@ -0,0 +1,23 @@ +libtext-typography-perl (0.01-2) unstable; urgency=low + + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza); Homepage field (source stanza). Removed: XS- + Vcs-Svn fields. + * debian/rules: don't wrap 'rmdir .. /usr/lib/perl5' to make later + substitution easier. + * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #467985). + * Set Standards-Version to 3.7.3 (no changes). + * Set debhelper compatibility level to 6. + * debian/watch: use dist-based URL. + * debian/copyright: add generic upstream source location. + + -- gregor herrmann Sat, 01 Mar 2008 22:06:54 +0100 + +libtext-typography-perl (0.01-1) unstable; urgency=low + + * Add a workaround to surpress 'uninitialized value' warnings. The + original code has indeed a 'local $^W = 0' statement, but it doesn't + work in perl v5.8.4, somehow. The patch was accepted by upstream. + * Initial Release. Closes: #387846 + + -- Recai Oktaş Sun, 17 Sep 2006 03:06:29 +0300