From e3f51813ad3fd73096546663ee7b6d2a6408c4a8 Mon Sep 17 00:00:00 2001 From: tigro Date: Sat, 4 Jan 2025 10:10:24 +0300 Subject: [PATCH] import perl-DB_File-1.859-512.el10 --- .gitignore | 2 +- .perl-DB_File.metadata | 2 +- SPECS/perl-DB_File.spec | 112 +++++++++++++++++++++++++++++++++++----- 3 files changed, 102 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 683940f..3e6ac25 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/DB_File-1.855.tar.gz +SOURCES/DB_File-1.859.tar.gz diff --git a/.perl-DB_File.metadata b/.perl-DB_File.metadata index b17e087..568f2e3 100644 --- a/.perl-DB_File.metadata +++ b/.perl-DB_File.metadata @@ -1 +1 @@ -d7b6157418fdd14029917b1b8b7dd52d227170ee SOURCES/DB_File-1.855.tar.gz +dd7f612cffe0043393b96844f7fbcdc05213762e SOURCES/DB_File-1.859.tar.gz diff --git a/SPECS/perl-DB_File.spec b/SPECS/perl-DB_File.spec index 003b6a9..86597d7 100644 --- a/SPECS/perl-DB_File.spec +++ b/SPECS/perl-DB_File.spec @@ -6,10 +6,10 @@ %endif Name: perl-DB_File -Version: 1.855 -Release: 4%{?dist} +Version: 1.859 +Release: 512%{?dist} Summary: Perl5 access to Berkeley DB version 1.x -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/DB_File Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz BuildRequires: coreutils @@ -47,7 +47,6 @@ BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::CPAN::Meta) BuildRequires: perl(Test::CPAN::Meta::JSON) %endif -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Fcntl) Requires: perl(XSLoader) @@ -59,22 +58,51 @@ provided by Berkeley DB version 1.x (if you have a newer version of DB, you will be limited to functionality provided by interface of version 1.x). The interface defined here mirrors the Berkeley DB interface closely. +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness +Requires: perl(threads) + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep %setup -q -n DB_File-%{version} find -type f -exec chmod -x {} + perl -MConfig -pi -e 's|^#!.*perl|$Config{startperl}|' dbinfo +# Help file to recognise the Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done + %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}" %{make_build} %install %{make_install} -find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete -%{_fixperms} $RPM_BUILD_ROOT/* +find %{buildroot} -type f -name '*.bs' -size 0 -delete +%{_fixperms} %{buildroot}/* + +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +# Remove author tests +rm %{buildroot}%{_libexecdir}/%{name}/t/pod.t +rm %{buildroot}%{_libexecdir}/%{name}/t/meta-*.t +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check unset PERL_CORE +export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files @@ -83,13 +111,73 @@ make test %{perl_vendorarch}/DB_File* %{_mandir}/man3/* +%files tests +%{_libexecdir}/%{name} + %changelog -* Mon Aug 09 2021 Mohan Boddu - 1.855-4 -- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Related: rhbz#1991688 +* Sat Jan 04 2025 Arkady L. Shane - 1.859-512 +- Rebuilt for MSVSphere 10 + +* Thu Jul 18 2024 Fedora Release Engineering - 1.859-512 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jun 12 2024 Jitka Plesnikova - 1.859-511 +- Perl 5.40 re-rebuild of bootstrapped packages + +* Mon Jun 10 2024 Jitka Plesnikova - 1.859-510 +- Increase release to favour standalone package + +* Thu Jan 25 2024 Fedora Release Engineering - 1.859-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.859-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Aug 23 2023 Jitka Plesnikova - 1.859-1 +- 1.859 bump (rhbz#2233072) + +* Thu Jul 20 2023 Fedora Release Engineering - 1.858-501 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Jitka Plesnikova - 1.858-500 +- Perl 5.38 re-rebuild of bootstrapped packages -* Fri Apr 16 2021 Mohan Boddu - 1.855-3 -- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 +* Tue Jul 11 2023 Jitka Plesnikova - 1.858-499 +- Increase release to favour standalone package + +* Fri Jan 20 2023 Fedora Release Engineering - 1.858-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.858-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 03 2022 Jitka Plesnikova - 1.858-3 +- Perl 5.36 re-rebuild of bootstrapped packages + +* Mon May 30 2022 Jitka Plesnikova - 1.858-2 +- Perl 5.36 rebuild + +* Fri May 13 2022 Jitka Plesnikova - 1.858-1 +- 1.858 bump + +* Mon Feb 28 2022 Jitka Plesnikova - 1.857-1 +- 1.857 bump + +* Fri Jan 21 2022 Fedora Release Engineering - 1.856-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.856-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jun 22 2021 Jitka Plesnikova - 1.856-1 +- 1.856 bump +- Package tests + +* Mon May 24 2021 Jitka Plesnikova - 1.855-478 +- Perl 5.34 re-rebuild of bootstrapped packages + +* Fri May 21 2021 Jitka Plesnikova - 1.855-477 +- Increase release to favour standalone package * Wed Jan 27 2021 Fedora Release Engineering - 1.855-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild