[perl-Encode] Sub-package encode module
Petr Pisar
ppisar at fedoraproject.org
Wed Nov 19 08:30:12 UTC 2014
commit 23e85a81d2251f759aed1f16b892efc227150716
Author: Petr Písař <ppisar at redhat.com>
Date: Tue Nov 18 17:42:57 2014 +0100
Sub-package encode module
.rpmlint | 2 +-
perl-Encode.spec | 38 ++++++++++++++++++++++++++++++++++----
2 files changed, 35 insertions(+), 5 deletions(-)
---
diff --git a/.rpmlint b/.rpmlint
index 537b7bc..f69dc43 100644
--- a/.rpmlint
+++ b/.rpmlint
@@ -1,2 +1,2 @@
from Config import *
-addFilter("spelling-error .* (encodings|ucm)");
+addFilter("spelling-error .* (encodings|pragma|ucm)");
diff --git a/perl-Encode.spec b/perl-Encode.spec
index 008fcae..0e50726 100644
--- a/perl-Encode.spec
+++ b/perl-Encode.spec
@@ -49,8 +49,6 @@ BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(Tie::Scalar)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-# Consider Filter::Util::Call as mandatory, bug #1165183, CPAN RT#100427
-Requires: perl(Filter::Util::Call)
Requires: perl(parent) >= 0.221
%{?perl_default_filter}
@@ -63,6 +61,32 @@ Requires: perl(parent) >= 0.221
The Encode module provides the interface between Perl strings and the rest
of the system. Perl strings are sequences of characters.
+%package -n perl-encoding
+Summary: Write your Perl script in non-ASCII or non-UTF-8
+Group: Development/Libraries
+# Keeping this sub-package arch-specific because it installs files into
+# arch-specific directories.
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(Carp)
+# Config not needed on perl ≥ 5.008
+# Consider Filter::Util::Call as mandatory, bug #1165183, CPAN RT#100427
+Requires: perl(Filter::Util::Call)
+# I18N::Langinfo is optional
+# PerlIO::encoding is optional
+Requires: perl(utf8)
+Conflicts: perl-Encode < 2:2.64-2
+
+%description -n perl-encoding
+With the encoding pragma, you can write your Perl script in any encoding you
+like (so long as the Encode module supports it) and still enjoy Unicode
+support.
+
+However, this encoding module is deprecated under perl 5.18. It uses
+a mechanism provided by perl that is deprecated under 5.18 and higher, and may
+be removed in a future version.
+
+The easiest and the best alternative is to write your script in UTF-8.
+
# To mirror files from perl-devel (bug #456534)
# Keep architecture specific because files go into vendorarch
%package devel
@@ -104,9 +128,14 @@ make test
%{perl_vendorarch}/Encode*
%exclude %{perl_vendorarch}/Encode/*.e2x
%exclude %{perl_vendorarch}/Encode/encode.h
-%{perl_vendorarch}/encoding.pm
%{_mandir}/man1/piconv.*
-%{_mandir}/man3/*
+%{_mandir}/man3/Encode.*
+%{_mandir}/man3/Encode::*
+
+%files -n perl-encoding
+%doc AUTHORS Changes README
+%{perl_vendorarch}/encoding.pm
+%{_mandir}/man3/encoding.*
%files devel
%{_bindir}/enc2xs
@@ -117,6 +146,7 @@ make test
%changelog
* Tue Nov 18 2014 Petr Pisar <ppisar at redhat.com> - 2:2.64-2
- Consider Filter::Util::Call dependency as mandatory (bug #1165183)
+- Sub-package encode module
* Mon Nov 03 2014 Petr Pisar <ppisar at redhat.com> - 2:2.64-1
- 2.64 bump
More information about the perl-devel
mailing list