From 205234ed1bedd2018be3c7552470588f07ade875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 6 Dec 2019 14:19:10 +0100 Subject: [PATCH] Subpackage NDBM_File --- gendep.macros | 8 +++++++- perl.rpmlintrc | 2 +- perl.spec | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/gendep.macros b/gendep.macros index ea7b60b..31e10d1 100644 --- a/gendep.macros +++ b/gendep.macros @@ -1055,6 +1055,13 @@ Requires: perl(version) >= 0.87 \ Requires: perl(warnings) \ Provides: perl(Module::Metadata) = 1.000036 \ %{nil} +%global gendep_perl_NDBM_File \ +Requires: perl(strict) \ +Requires: perl(Tie::Hash) \ +Requires: perl(warnings) \ +Requires: perl(XSLoader) \ +Provides: perl(NDBM_File) = 1.15 \ +%{nil} %global gendep_perl_Net_Ping \ Requires: perl(:VERSION) >= 5.2.0 \ Requires: perl(Carp) \ @@ -1944,7 +1951,6 @@ Provides: perl(Hash::Util::FieldHash) = 1.20 \ Provides: perl(I18N::Langinfo) = 0.18 \ Provides: perl(IPC::Open2) = 1.04 \ Provides: perl(IPC::Open3) = 1.20 \ -Provides: perl(NDBM_File) = 1.15 \ Provides: perl(Net::hostent) = 1.02 \ Provides: perl(Net::netent) = 1.01 \ Provides: perl(Net::protoent) = 1.01 \ diff --git a/perl.rpmlintrc b/perl.rpmlintrc index 5c6c569..65ddd1d 100644 --- a/perl.rpmlintrc +++ b/perl.rpmlintrc @@ -1,5 +1,5 @@ from Config import * -addFilter("spelling-error .* (autoloaded|awk|decrement|gdbm|gmtime|groff|libnet|localtime|Memoizing|metapackage|Nestable|perlbug|perldoc|perlfunc|perllocale|perlmain|perlpod|perlsub|reachability|redispatch|rpmbuild|sed|splain|truncations|usr|writemain)"); +addFilter("spelling-error .* (autoloaded|awk|decrement|gdbm|gmtime|groff|libnet|localtime|Memoizing|metapackage|ndbm|Nestable|perlbug|perldoc|perlfunc|perllocale|perlmain|perlpod|perlsub|reachability|redispatch|rpmbuild|sed|splain|truncations|usr|writemain)"); addFilter("unexpanded-macro %description .* %INC"); # Applied with "git am" addFilter("patch-not-applied Patch58: perl-5.30.0-PATCH-perl-134329-Use-after-free-in-regcomp.c.patch"); diff --git a/perl.spec b/perl.spec index 376cabc..76e34ee 100644 --- a/perl.spec +++ b/perl.spec @@ -403,6 +403,9 @@ Requires: perl-Math-Complex, perl-Memoize, perl-MIME-Base64, Requires: perl-Module-CoreList, perl-Module-CoreList-tools, Requires: perl-Module-Load, perl-Module-Load-Conditional, Requires: perl-Module-Loaded, perl-Module-Metadata, +%if %{with gdbm} +Requires: perl-NDBM_File, +%endif Requires: perl-Net-Ping, perl-NEXT, Requires: perl-open, Requires: perl-parent, perl-PathTools, perl-Params-Check, perl-perlfaq, @@ -2306,6 +2309,25 @@ Requires: %perl_compat Gather package and POD information from perl module files %endif +%if %{with gdbm} +%package NDBM_File +Summary: Tied access to ndbm files +License: GPL+ or Artistic +Epoch: 0 +Version: 1.15 +Requires: %perl_compat +%if %{defined perl_bootstrap} +%gendep_perl_NDBM_File +%endif +Conflicts: perl-interpreter < 4:5.30.1-451 + +%description NDBM_File +NDBM_File establishes a connection between a Perl hash variable and a file in +ndbm format. You can manipulate the data in the file just as if it were in +a Perl hash, but when your program exits, the data will remain in the file, to +be used the next time your program runs. +%endif + %package Net-Ping Summary: Check a remote host for reachability License: GPL+ or Artistic @@ -4341,6 +4363,13 @@ popd %exclude %{privlib}/Module/Metadata.pm %exclude %{_mandir}/man3/Module::Metadata.3pm* +%if %{with gdbm} +# NDBM_File +%exclude %{archlib}/NDBM_File.pm +%exclude %{archlib}/auto/NDBM_File +%exclude %{_mandir}/man3/NDBM_File.3* +%endif + # Net-Ping %exclude %{privlib}/Net/Ping.pm %exclude %{_mandir}/man3/Net::Ping.* @@ -5436,6 +5465,13 @@ popd %{_mandir}/man3/Module::Metadata.3pm* %endif +%if %{with gdbm} +%files NDBM_File +%{archlib}/NDBM_File.pm +%{archlib}/auto/NDBM_File +%{_mandir}/man3/NDBM_File.3* +%endif + %files Net-Ping %dir %{privlib}/Net %{privlib}/Net/Ping.pm @@ -5841,6 +5877,7 @@ popd - Subpackage Tie-File - Move attributes module into perl-libs - Subpackage GDBM_File +- Subpackage NDBM_File * Wed Jan 29 2020 Fedora Release Engineering - 4:5.30.1-450 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild