diff --git a/.perl-B-Debug.metadata b/.perl-B-Debug.metadata index 1a430e0..8b1b7c5 100644 --- a/.perl-B-Debug.metadata +++ b/.perl-B-Debug.metadata @@ -1 +1 @@ -5d86e033d2fd6d5763334311b18a186092bd9aac SOURCES/B-Debug-1.26.tar.gz +5d86e033d2fd6d5763334311b18a186092bd9aac SOURCES/B-Debug-1.26.tar.gz diff --git a/SPECS/perl-B-Debug.spec b/SPECS/perl-B-Debug.spec index 6cc011b..0e997aa 100644 --- a/SPECS/perl-B-Debug.spec +++ b/SPECS/perl-B-Debug.spec @@ -1,17 +1,22 @@ # Run optional test %if !%{defined perl_bootstrap} +%if ! (0%{?rhel}) %bcond_without perl_B_Debug_enables_optional_test %else %bcond_with perl_B_Debug_enables_optional_test %endif +%else +%global _without_perl_B_Debug_enables_optional_test 1 +%global _with_perl_B_Debug_enables_optional_test 0 +%endif Name: perl-B-Debug Version: 1.26 -Release: 2%{?dist} +Release: 437%{?dist} Summary: Walk Perl syntax tree, print debug information about op-codes -License: GPL+ or Artistic -URL: http://search.cpan.org/dist/B-Debug/ -Source0: http://www.cpan.org/authors/id/R/RU/RURBAN/B-Debug-%{version}.tar.gz +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/B-Debug +Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/B-Debug-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-generators @@ -21,7 +26,7 @@ BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(B) # B::Asmdata not used BuildRequires: perl(Config) -# deprecate since perl 5.27.1 +BuildRequires: perl(deprecate) BuildRequires: perl(strict) # Optional run-time: # B::Flags 0.04 not packaged @@ -33,23 +38,45 @@ BuildRequires: perl(warnings) # Optional test: BuildRequires: perl(Test::Pod) >= 1.00 %endif -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) -# deprecate since perl 5.27.1 +Requires: perl(deprecate) %description Walk Perl syntax tree and print debug information about op-codes. See B::Concise and B::Terse for other details. +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + %prep %setup -q -n B-Debug-%{version} +# Help generators to recognize Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" + chmod +x "$F" +done %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -%{_fixperms} $RPM_BUILD_ROOT/* +%{make_install} +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +rm -f %{buildroot}%{_libexecdir}/%{name}/t/pod* +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 +%{_fixperms} %{buildroot}/* %check make test @@ -60,7 +87,81 @@ make test %{perl_vendorlib}/* %{_mandir}/man3/* +%files tests +%{_libexecdir}/%{name} + %changelog +* Wed Sep 20 2023 Arkady L. Shane - 1.26-437 +- Rebuilt for MSVSphere 9.2 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.26-437 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Dec 20 2022 Michal Josef Špaček - 1.26-436 +- Package tests +- Update license to SPDX format +- Use %{buildroot} macro + +* Fri Jul 22 2022 Fedora Release Engineering - 1.26-435 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jun 03 2022 Jitka Plesnikova - 1.26-434 +- Perl 5.36 re-rebuild of bootstrapped packages + +* Mon May 30 2022 Jitka Plesnikova - 1.26-433 +- Perl 5.36 rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 1.26-432 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.26-431 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 24 2021 Jitka Plesnikova - 1.26-430 +- Perl 5.34 re-rebuild of bootstrapped packages + +* Fri May 21 2021 Jitka Plesnikova - 1.26-429 +- Perl 5.34 rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.26-428 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.26-427 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 26 2020 Jitka Plesnikova - 1.26-426 +- Perl 5.32 re-rebuild of bootstrapped packages + +* Mon Jun 22 2020 Jitka Plesnikova - 1.26-425 +- Perl 5.32 rebuild + +* Tue Mar 10 2020 Petr Pisar - 1.26-424 +- Specify all dependencies + +* Wed Jan 29 2020 Fedora Release Engineering - 1.26-423 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.26-422 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 02 2019 Jitka Plesnikova - 1.26-421 +- Perl 5.30 re-rebuild of bootstrapped packages + +* Thu May 30 2019 Jitka Plesnikova - 1.26-420 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.26-419 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.26-418 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat Jun 30 2018 Jitka Plesnikova - 1.26-417 +- Perl 5.28 re-rebuild of bootstrapped packages + +* Tue Jun 26 2018 Jitka Plesnikova - 1.26-416 +- Increase release to favour standalone package + * Thu Feb 08 2018 Fedora Release Engineering - 1.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild