Subpackage "open" module in order to keep deprecated "encoding" module optional

This commit is contained in:
Petr Písař 2015-06-05 09:53:04 +02:00
parent 9ad5b7e8d4
commit 0be6137aa8

View File

@ -30,7 +30,7 @@
Name: perl
Version: %{perl_version}
# release number must be even higher, because dual-lived modules will be broken otherwise
Release: 345%{?dist}
Release: 346%{?dist}
Epoch: %{perl_epoch}
Summary: Practical Extraction and Report Language
Group: Development/Languages
@ -256,7 +256,7 @@ Requires: perl-Locale-Maketext-Simple
Requires: perl-Module-CoreList,
Requires: perl-Module-CoreList-tools, perl-Module-Load
Requires: perl-Module-Load-Conditional, perl-Module-Loaded, perl-Module-Metadata
Requires: perl-PathTools
Requires: perl-open, perl-PathTools
Requires: perl-Params-Check, perl-Parse-CPAN-Meta, perl-Perl-OSType
Requires: perl-Pod-Checker, perl-Pod-Escapes
Requires: perl-Pod-Parser, perl-Pod-Perldoc, perl-Pod-Usage
@ -1315,6 +1315,23 @@ Requires: %perl_compat
Gather package and POD information from perl module files
%endif
%package open
Summary: Perl pragma to set default PerlIO layers for input and output
Group: Development/Libraries
License: GPL+ or Artistic
Epoch: 0
Version: 1.10
Requires: %perl_compat
Requires: perl(Carp)
Requires: perl(Encode)
Requires: perl(encoding)
Conflicts: perl < 4:5.20.2-326
BuildArch: noarch
%description open
The "open" pragma serves as one of the interfaces to declare default "layers"
(also known as "disciplines") for all I/O.
%if %{dual_life} || %{rebuild_from_scratch}
%package parent
Summary: Establish an ISA relationship with base classes at compile time
@ -2596,6 +2613,10 @@ popd
%exclude %{privlib}/Perl/OSType.pm
%exclude %{_mandir}/man3/Perl::OSType.3pm*
# open
%exclude %{privlib}/open.pm
%exclude %{_mandir}/man3/open.3*
# parent
%exclude %{privlib}/parent.pm
%exclude %{_mandir}/man3/parent.3*
@ -3363,6 +3384,10 @@ popd
%{_mandir}/man3/Parse::CPAN::Meta.3*
%endif
%files open
%{privlib}/open.pm
%{_mandir}/man3/open.3*
%if %{dual_life} || %{rebuild_from_scratch}
%files parent
%{privlib}/parent.pm
@ -3610,6 +3635,10 @@ popd
# Old changelog entries are preserved in CVS.
%changelog
* Thu Jun 18 2015 Petr Pisar <ppisar@redhat.com> - 4:5.22.0-346
- Subpackage "open" module in order to keep deprecated "encoding" module
optional (bug #1228378)
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4:5.22.0-345
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
@ -3629,7 +3658,6 @@ popd
- Clean patches, not needed with new version
- Update patches to work with new version
* Wed Apr 15 2015 Jitka Plesnikova <jplesnik@redhat.com> - 4:5.20.2-328
- Sub-package perl-CGI-Fast and perl-Module-Build-Deprecated
- Add missing dual-life modules to perl-core