Sub-package encode module
This commit is contained in:
parent
ae6ab5a0f9
commit
23e85a81d2
2
.rpmlint
2
.rpmlint
@ -1,2 +1,2 @@
|
||||
from Config import *
|
||||
addFilter("spelling-error .* (encodings|ucm)");
|
||||
addFilter("spelling-error .* (encodings|pragma|ucm)");
|
||||
|
@ -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@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@redhat.com> - 2:2.64-1
|
||||
- 2.64 bump
|
||||
|
Loading…
Reference in New Issue
Block a user