Declare encoding of POD

This commit is contained in:
Petr Písař 2012-08-09 17:34:02 +02:00
parent 2faa7adb25
commit e4fe6fbbb1
3 changed files with 50 additions and 23 deletions

View File

@ -1,20 +0,0 @@
--- Lite/Lite.pm
+++ Lite/Lite.pm
@@ -1561,7 +1561,7 @@
=head1 AUTHORS
-Luis E. Muñoz E<lt>luismunoz@cpan.orgE<gt>,
+Luis E. Muñoz E<lt>luismunoz@cpan.orgE<gt>,
Michael Robinton E<lt>michael@bizsystems.comE<gt>
=head1 WARRANTY
@@ -1571,7 +1571,7 @@
=head1 COPYRIGHT
- This software is (c) Luis E. Muñoz, 1999 - 2005
+ This software is (c) Luis E. Muñoz, 1999 - 2005
and (c) Michael Robinton, 2006 - 2011.
All rights reserved.

View File

@ -0,0 +1,43 @@
From 74a488d6d53ea888eb81f099611e0cd0f81cbb06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Thu, 9 Aug 2012 17:14:37 +0200
Subject: [PATCH] Recode NetAddr::IP::Lite POD to UTF-8
---
Lite/Lite.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Lite/Lite.pm b/Lite/Lite.pm
index b6d29b2..17c80f4 100644
--- a/Lite/Lite.pm
+++ b/Lite/Lite.pm
@@ -48,6 +48,8 @@ $Accept_Binary_IP = 0;
$Old_nth = 0;
*Zero = \&Zeros;
+=encoding utf8
+
=head1 NAME
NetAddr::IP::Lite - Manages IPv4 and IPv6 addresses and subnets
@@ -1569,7 +1571,7 @@ sub import {
=head1 AUTHORS
-Luis E. Muñoz E<lt>luismunoz@cpan.orgE<gt>,
+Luis E. Muñoz E<lt>luismunoz@cpan.orgE<gt>,
Michael Robinton E<lt>michael@bizsystems.comE<gt>
=head1 WARRANTY
@@ -1579,7 +1581,7 @@ so by using it you accept any and all the liability.
=head1 COPYRIGHT
- This software is (c) Luis E. Muñoz, 1999 - 2005
+ This software is (c) Luis E. Muñoz, 1999 - 2005
and (c) Michael Robinton, 2006 - 2011.
All rights reserved.
--
1.7.11.2

View File

@ -1,12 +1,13 @@
Name: perl-NetAddr-IP
Version: 4.062
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Manages IPv4 and IPv6 addresses and subnets
License: GPLv2+
Group: Development/Libraries
URL: http://search.cpan.org/dist/NetAddr-IP/
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-%{version}.tar.gz
Patch0: NetAddr-IP-4.059-UTF8.patch
# Recode documentation to UTF-8
Patch0: NetAddr-IP-4.062-Recode-NetAddr-IP-Lite-POD-to-UTF-8.patch
BuildRequires: perl(AutoLoader)
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
@ -32,7 +33,7 @@ or IP subnets, that allows for easy manipulations.
%setup -q -n NetAddr-IP-%{version}
# Recode NetAddr::IP::Lite module and manpage as UTF-8
%patch0
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@ -58,6 +59,9 @@ make test
%{_mandir}/man3/NetAddr::IP::UtilPP.3pm*
%changelog
* Thu Aug 09 2012 Petr Pisar <ppisar@redhat.com> - 4.062-5
- Declare encoding of POD
* Thu Aug 09 2012 Petr Pisar <ppisar@redhat.com> - 4.062-4
- Specify all dependencies