[perl/f18] Add NAME headings to CPAN modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 2d4821d272a5daa44687b4f66554746ccc6c5d56
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Mon Feb 18 15:52:11 2013 +0100

    Add NAME headings to CPAN modules

 ...PAN-add-NAME-headings-in-modules-with-POD.patch |   80 ++++++++++++++++++++
 perl.spec                                          |   10 ++-
 2 files changed, 89 insertions(+), 1 deletions(-)
---
diff --git a/perl-5.16.2-cpan-CPAN-add-NAME-headings-in-modules-with-POD.patch b/perl-5.16.2-cpan-CPAN-add-NAME-headings-in-modules-with-POD.patch
new file mode 100644
index 0000000..3d967bf
--- /dev/null
+++ b/perl-5.16.2-cpan-CPAN-add-NAME-headings-in-modules-with-POD.patch
@@ -0,0 +1,80 @@
+From a6a40029a3cbad2c7d9b39cec86b9dc4baf428a9 Mon Sep 17 00:00:00 2001
+From: Dominic Hargreaves <dom@xxxxxxxx>
+Date: Tue, 20 Dec 2011 22:19:45 +0000
+Subject: [PATCH 1/4] cpan/CPAN: add NAME headings in modules with POD
+
+This fixes the Debian Lintian warning about missing NAME sections in
+manpages.
+
+Bug-Debian: http://bugs.debian.org/650448
+
+Patch-Name: fixes/manpage_name_CPAN.diff
+---
+ cpan/CPAN/lib/CPAN/Debug.pm        |    4 ++++
+ cpan/CPAN/lib/CPAN/HandleConfig.pm |    6 ++++++
+ cpan/CPAN/lib/CPAN/Queue.pm        |    4 ++++
+ cpan/CPAN/lib/CPAN/Tarzip.pm       |    4 ++++
+ 4 files changed, 18 insertions(+), 0 deletions(-)
+
+diff --git a/cpan/CPAN/lib/CPAN/Debug.pm b/cpan/CPAN/lib/CPAN/Debug.pm
+index 23c4a36..48e394b 100644
+--- a/cpan/CPAN/lib/CPAN/Debug.pm
++++ b/cpan/CPAN/lib/CPAN/Debug.pm
+@@ -71,6 +71,10 @@ sub debug {
+ 
+ __END__
+ 
++=head1 NAME
++
++CPAN::Debug - internal debugging for CPAN.pm
++
+ =head1 LICENSE
+ 
+ This program is free software; you can redistribute it and/or
+diff --git a/cpan/CPAN/lib/CPAN/HandleConfig.pm b/cpan/CPAN/lib/CPAN/HandleConfig.pm
+index 58ccbe5..bab607d 100644
+--- a/cpan/CPAN/lib/CPAN/HandleConfig.pm
++++ b/cpan/CPAN/lib/CPAN/HandleConfig.pm
+@@ -6,6 +6,12 @@ use File::Spec ();
+ use File::Basename ();
+ use Carp ();
+ 
++=head1 NAME
++
++CPAN::HandleConfig - internal configuration handling for CPAN.pm
++
++=cut 
++
+ $VERSION = "5.5003"; # see also CPAN::Config::VERSION at end of file
+ 
+ %can = (
+diff --git a/cpan/CPAN/lib/CPAN/Queue.pm b/cpan/CPAN/lib/CPAN/Queue.pm
+index e5d88ce..1222b37 100644
+--- a/cpan/CPAN/lib/CPAN/Queue.pm
++++ b/cpan/CPAN/lib/CPAN/Queue.pm
+@@ -201,6 +201,10 @@ sub reqtype_of {
+ 
+ __END__
+ 
++=head1 NAME
++
++CPAN::Queue - internal queue support for CPAN.pm
++
+ =head1 LICENSE
+ 
+ This program is free software; you can redistribute it and/or
+diff --git a/cpan/CPAN/lib/CPAN/Tarzip.pm b/cpan/CPAN/lib/CPAN/Tarzip.pm
+index 972df6c..cf8aad4 100644
+--- a/cpan/CPAN/lib/CPAN/Tarzip.pm
++++ b/cpan/CPAN/lib/CPAN/Tarzip.pm
+@@ -450,6 +450,10 @@ END
+ 
+ __END__
+ 
++=head1 NAME
++
++CPAN::Tarzip - internal handling of tar archives for CPAN.pm
++
+ =head1 LICENSE
+ 
+ This program is free software; you can redistribute it and/or
diff --git a/perl.spec b/perl.spec
index 9f13608..ea0736b 100644
--- a/perl.spec
+++ b/perl.spec
@@ -29,7 +29,7 @@
 Name:           perl
 Version:        %{perl_version}
 # release number must be even higher, because dual-lived modules will be broken otherwise
-Release:        238%{?dist}
+Release:        239%{?dist}
 Epoch:          %{perl_epoch}
 Summary:        Practical Extraction and Report Language
 Group:          Development/Languages
@@ -112,6 +112,9 @@ Patch19:        perl-5.16.1-perl-115206-Don-t-crash-when-vivifying.patch
 # Fix CVE-2012-6329, rhbz#884354
 Patch20:        perl-5.17.6-Fix-misparsing-of-maketext-strings.patch
 
+# Add NAME heading into CPAN PODs, rhbz#908113, CPANRT#73396
+Patch21:        perl-5.16.2-cpan-CPAN-add-NAME-headings-in-modules-with-POD.patch
+
 # Update some of the bundled modules
 # see http://fedoraproject.org/wiki/Perl/perl.spec for instructions
 
@@ -1342,6 +1345,7 @@ tarball from perl.org.
 %patch18 -p1
 %patch19 -p1
 %patch20 -p1
+%patch21 -p1
 
 #copy the example script
 cp -a %{SOURCE5} .
@@ -1553,6 +1557,7 @@ pushd %{build_archlib}/CORE/
     'Fedora Patch18: Extend stack in File::Glob::glob, (RT#114984)' \
     'Fedora Patch19: Do not crash when vivifying $|' \
     'Fedora Patch20: Fix misparsing of maketext strings (CVE-2012-6329)' \
+    'Fedora Patch21: Add NAME headings to CPAN modules (CPANRT#73396)' \
     %{nil}
 
 rm patchlevel.bak
@@ -2625,6 +2630,9 @@ sed \
 
 # Old changelog entries are preserved in CVS.
 %changelog
+* Mon Feb 18 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 4:5.16.2-239
+- Add NAME headings to CPAN modules (bug #908113)
+
 * Thu Feb 07 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 4:5.16.2-238
 - Obsolete perl-ExtUtils-Typemaps by perl-ExtUtils-ParseXS (bug #891952)
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux