Skip to content

Commit c69c0ce

Browse files
authored
Upgrade : perl-B-Keywords version to 1.27 (#11593)
1 parent 5134884 commit c69c0ce

3 files changed

Lines changed: 125 additions & 15 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"perl-B-Keywords-1.21.tar.gz": "5a25e89c7d251ba76fc4f7f60d079bd265561b2316ff1f2795d9dbf0c30f8888"
3+
"perl-B-Keywords-1.27.tar.gz": "ef10b9085e674eaa417ccb7d692fb6cd98f7bb67de2a127eba3457d8ae587cff"
44
}
55
}

SPECS-EXTENDED/perl-B-Keywords/perl-B-Keywords.spec

Lines changed: 122 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,22 @@
66
%endif
77

88
Name: perl-B-Keywords
9-
Version: 1.21
10-
Release: 4%{?dist}
9+
Version: 1.27
10+
Release: 3%{?dist}
1111
Summary: Lists of reserved barewords and symbol names
12-
License: GPL+ or Artistic
12+
License: GPL-1.0-or-later OR Artistic-1.0-Perl
1313
Vendor: Microsoft Corporation
1414
Distribution: Azure Linux
1515
URL: https://metacpan.org/release/B-Keywords
1616
Source0: https://cpan.metacpan.org/modules/by-module/B/B-Keywords-%{version}.tar.gz#/perl-B-Keywords-%{version}.tar.gz
1717
BuildArch: noarch
1818
# Module Build
1919
BuildRequires: coreutils
20-
BuildRequires: findutils
2120
BuildRequires: make
2221
BuildRequires: perl-generators
2322
BuildRequires: perl-interpreter
2423
BuildRequires: perl(Config)
25-
BuildRequires: perl(ExtUtils::MakeMaker)
24+
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
2625
# Module Runtime
2726
BuildRequires: perl(Exporter)
2827
BuildRequires: perl(strict)
@@ -33,19 +32,20 @@ BuildRequires: perl(File::Spec)
3332
BuildRequires: perl(lib)
3433
BuildRequires: perl(Test)
3534
BuildRequires: perl(Test::More)
35+
BuildRequires: perl(warnings)
3636
# Optional Tests
3737
BuildRequires: perl(Test::Pod) >= 1.0
3838
# Maintainer Tests
3939
%if 0%{!?perl_bootstrap:1} && %{with perl_B_Keywords_enables_extra_test}
4040
BuildRequires: perl(File::Copy)
41+
BuildRequires: perl(List::MoreUtils)
4142
BuildRequires: perl(Perl::MinimumVersion) >= 1.20
4243
BuildRequires: perl(Test::CPAN::Meta) >= 0.12
4344
BuildRequires: perl(Test::Kwalitee)
4445
BuildRequires: perl(Test::MinimumVersion) >= 0.008
4546
BuildRequires: perl(Test::More) >= 0.88
4647
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
4748
BuildRequires: perl(Text::CSV_XS)
48-
BuildRequires: perl(warnings)
4949
%endif
5050
# Runtime
5151
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@@ -61,19 +61,47 @@ The @Symbols array includes the contents of each of @Scalars, @Arrays, @Hashes,
6161
Similarly, @Barewords adds a few non-function keywords and operators to the
6262
@Functions array.
6363

64+
%package tests
65+
Summary: Tests for %{name}
66+
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
67+
Requires: perl-Test-Harness
68+
# Provided keywords.h required for 11keywords.t
69+
Requires: perl-devel
70+
71+
%description tests
72+
Tests from %{name}. Execute them
73+
with "%{_libexecdir}/%{name}/test".
74+
75+
6476
%prep
6577
%setup -q -n B-Keywords-%{version}
6678

79+
# Help generators to recognize Perl scripts
80+
for F in t/*.t; do
81+
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
82+
chmod +x "$F"
83+
done
84+
6785
%build
68-
perl Makefile.PL INSTALLDIRS=vendor
69-
make %{?_smp_mflags}
86+
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
87+
%{make_build}
7088

7189
%install
72-
make pure_install DESTDIR=%{buildroot}
73-
find %{buildroot} -type f -name .packlist -delete
90+
%{make_install}
7491
%{_fixperms} -c %{buildroot}
7592

93+
# Install tests
94+
mkdir -p %{buildroot}%{_libexecdir}/%{name}
95+
cp -a t %{buildroot}%{_libexecdir}/%{name}
96+
rm %{buildroot}%{_libexecdir}/%{name}/t/z_*
97+
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
98+
#!/bin/sh
99+
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
100+
EOF
101+
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
102+
76103
%check
104+
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
77105
%if 0%{!?perl_bootstrap:1} && %{with perl_B_Keywords_enables_extra_test}
78106
make test IS_MAINTAINER=1 AUTHOR_TESTING=1
79107
%else
@@ -86,9 +114,91 @@ make test
86114
%{perl_vendorlib}/B/
87115
%{_mandir}/man3/B::Keywords.3*
88116

117+
%files tests
118+
%{_libexecdir}/%{name}
119+
89120
%changelog
90-
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.21-4
91-
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
121+
* Thu Dec 19 2024 Jyoti kanase <v-jykanase@microsoft.com> - 1.27-3
122+
- Initial Azure Linux import from Fedora 41 (license: MIT).
123+
- License verified.
124+
125+
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.27-2
126+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
127+
128+
* Mon May 27 2024 Paul Howarth <paul@city-fan.org> - 1.27-1
129+
- Update to 1.27 (rhbz#2283492)
130+
- Add bareword __CLASS__ since 5.39.2
131+
132+
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-5
133+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
134+
135+
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-4
136+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
137+
138+
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.26-3
139+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
140+
141+
* Tue Jun 20 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-2
142+
- Add run-require perl-devel for tests
143+
144+
* Tue Jun 20 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.26-1
145+
- Update to 1.26
146+
- Add Corinna keywords, new with Perl 5.38.0 (PR #8)
147+
ADJUST class field method
148+
- Package tests
149+
150+
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.24-5
151+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
152+
153+
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.24-4
154+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
155+
156+
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.24-3
157+
- Perl 5.36 re-rebuild of bootstrapped packages
158+
159+
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.24-2
160+
- Perl 5.36 rebuild
161+
162+
* Wed Feb 23 2022 Paul Howarth <paul@city-fan.org> - 1.24-1
163+
- Update to 1.24
164+
- Fix for broken <archlibexp>/CORE/keywords.h test on system macOS (GH#5)
165+
- 'finally' added with 5.35.8 (CPAN RT#141406)
166+
167+
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.23-2
168+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
169+
170+
* Sun Oct 31 2021 Paul Howarth <paul@city-fan.org> - 1.23-1
171+
- Update to 1.23
172+
- Relax bogus blead test failures
173+
- Add reverse test: if @Barewords are covered on keywords.h
174+
- Move some @Barewords not in keywords.h to @BarewordsExtra
175+
- Add %%main, %%CORE, %%CORE::GLOBAL:: to @Hashes
176+
- Fixed versions for EQ, CORE, state, break, given, when, default, UNITCHECK
177+
178+
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.22-4
179+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
180+
181+
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.22-3
182+
- Perl 5.34 re-rebuild of bootstrapped packages
183+
184+
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.22-2
185+
- Perl 5.34 rebuild
186+
187+
* Mon Feb 22 2021 Paul Howarth <paul@city-fan.org> - 1.22-1
188+
- Update to 1.22
189+
- try/catch was added with 5.33.7
190+
191+
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.21-7
192+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
193+
194+
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.21-6
195+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
196+
197+
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.21-5
198+
- Perl 5.32 re-rebuild of bootstrapped packages
199+
200+
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.21-4
201+
- Perl 5.32 rebuild
92202

93203
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.21-3
94204
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16063,8 +16063,8 @@
1606316063
"type": "other",
1606416064
"other": {
1606516065
"name": "perl-B-Keywords",
16066-
"version": "1.21",
16067-
"downloadUrl": "https://cpan.metacpan.org/modules/by-module/B/B-Keywords-1.21.tar.gz"
16066+
"version": "1.27",
16067+
"downloadUrl": "https://cpan.metacpan.org/modules/by-module/B/B-Keywords-1.27.tar.gz"
1606816068
}
1606916069
}
1607016070
},

0 commit comments

Comments
 (0)