Sub-package Attribute-Handlers

This commit is contained in:
Petr Písař 2015-08-31 13:31:18 +02:00
parent 19f039c9fc
commit adcf36932f

View File

@ -30,7 +30,7 @@
Name: perl Name: perl
Version: %{perl_version} Version: %{perl_version}
# release number must be even higher, because dual-lived modules will be broken otherwise # release number must be even higher, because dual-lived modules will be broken otherwise
Release: 350%{?dist} Release: 351%{?dist}
Epoch: %{perl_epoch} Epoch: %{perl_epoch}
Summary: Practical Extraction and Report Language Summary: Practical Extraction and Report Language
Group: Development/Languages Group: Development/Languages
@ -244,7 +244,8 @@ Requires: perl-libs = %{perl_epoch}:%{perl_version}-%{release}
Requires: perl-devel = %{perl_epoch}:%{perl_version}-%{release} Requires: perl-devel = %{perl_epoch}:%{perl_version}-%{release}
Requires: perl-macros Requires: perl-macros
Requires: perl-Archive-Tar, perl-autodie, perl-B-Debug, perl-bignum Requires: perl-Archive-Tar, perl-Attribute-Handlers, perl-autodie,
Requires: perl-B-Debug, perl-bignum
Requires: perl-Compress-Raw-Bzip2, Requires: perl-Compress-Raw-Bzip2,
Requires: perl-Carp, perl-Compress-Raw-Zlib, perl-Config-Perl-V, Requires: perl-Carp, perl-Compress-Raw-Zlib, perl-Config-Perl-V,
Requires: perl-constant, Requires: perl-constant,
@ -321,6 +322,24 @@ IO::Zlib module installed, Archive::Tar will also support compressed or
gzipped tar files. gzipped tar files.
%endif %endif
%package Attribute-Handlers
Summary: Simpler definition of attribute handlers
Group: Development/Libraries
License: GPL+ or Artistic
Epoch: 0
Version: 0.97
BuildArch: noarch
Requires: %perl_compat
Conflicts: perl < 4:5.22.0-351
%description Attribute-Handlers
This Perl module, when inherited by a package, allows that package's class to
define attribute handler subroutines for specific attributes. Variables and
subroutines subsequently defined in that package, or in packages derived from
that package may be given attributes with the same names as the attribute
handler subroutines, which will then be called in one of the compilation
phases (i.e. in a "BEGIN", "CHECK", "INIT", or "END" block).
%if %{dual_life} || %{rebuild_from_scratch} %if %{dual_life} || %{rebuild_from_scratch}
%package autodie %package autodie
Summary: Replace functions with ones that succeed or die Summary: Replace functions with ones that succeed or die
@ -2512,6 +2531,10 @@ popd
%exclude %{_mandir}/man1/ptargrep.1* %exclude %{_mandir}/man1/ptargrep.1*
%exclude %{_mandir}/man3/Archive::Tar* %exclude %{_mandir}/man3/Archive::Tar*
# Attribute-Handlers
%exclude %{privlib}/Attribute
%exclude %{_mandir}/man3/Attribute::Handlers.*
# autodie # autodie
%exclude %{privlib}/autodie/ %exclude %{privlib}/autodie/
%exclude %{privlib}/autodie.pm %exclude %{privlib}/autodie.pm
@ -3295,6 +3318,10 @@ popd
%{_mandir}/man3/Archive::Tar* %{_mandir}/man3/Archive::Tar*
%endif %endif
%files Attribute-Handlers
%{privlib}/Attribute
%{_mandir}/man3/Attribute::Handlers.*
%if %{dual_life} || %{rebuild_from_scratch} %if %{dual_life} || %{rebuild_from_scratch}
%files autodie %files autodie
%{privlib}/autodie/ %{privlib}/autodie/
@ -4246,6 +4273,9 @@ popd
# Old changelog entries are preserved in CVS. # Old changelog entries are preserved in CVS.
%changelog %changelog
* Mon Aug 31 2015 Petr Pisar <ppisar@redhat.com> - 4:5.22.0-351
- Sub-package Attribute-Handlers
* Fri Aug 07 2015 Petr Pisar <ppisar@redhat.com> - 4:5.22.0-350 * Fri Aug 07 2015 Petr Pisar <ppisar@redhat.com> - 4:5.22.0-350
- Sub-package Memoize - Sub-package Memoize
- Sub-package Net-Ping - Sub-package Net-Ping