Skip to content

Commit 79d53ba

Browse files
authored
perl-Scope-Upper: Update Version from 0.32 -> 0.34 (#11502)
1 parent b3ef099 commit 79d53ba

3 files changed

Lines changed: 108 additions & 20 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"Signatures": {
3-
"Scope-Upper-0.32.tar.gz": "ccaff3251c092f2af8b5ad840b76655c4bc4ccf504ff7bde233811822a40abcf"
3+
"perl-Scope-Upper-0.34.tar.gz": "581d8bc510debd0c456a5fc7952cb7138ae667bf38f3a77e96d773dc3196a41e"
44
}
55
}
6+

SPECS-EXTENDED/perl-Scope-Upper/perl-Scope-Upper.spec

Lines changed: 104 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
Name: perl-Scope-Upper
2-
Summary: Act on upper scopes
3-
Version: 0.32
4-
Release: 4%{?dist}
5-
License: GPL+ or Artistic
61
Vendor: Microsoft Corporation
72
Distribution: Azure Linux
8-
Source0: https://cpan.metacpan.org/authors/id/V/VP/VPIT/Scope-Upper-%{version}.tar.gz
3+
Name: perl-Scope-Upper
4+
Summary: Act on upper scopes
5+
Version: 0.34
6+
Release: 8%{?dist}
7+
License: GPL-1.0-or-later OR Artistic-1.0-Perl
8+
Source0: https://cpan.metacpan.org/authors/id/V/VP/VPIT/Scope-Upper-%{version}.tar.gz#/perl-Scope-Upper-%{version}.tar.gz
99
URL: https://metacpan.org/release/Scope-Upper
1010
# Build
11+
BuildRequires: coreutils
1112
BuildRequires: findutils
1213
BuildRequires: gcc
1314
BuildRequires: make
14-
BuildRequires: perl-interpreter
1515
BuildRequires: perl-devel
1616
BuildRequires: perl-generators
17+
BuildRequires: perl-interpreter
1718
BuildRequires: perl(Config)
1819
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
1920
BuildRequires: perl(strict)
2021
BuildRequires: perl(warnings)
21-
BuildRequires: sed
2222
# Runtime
2323
BuildRequires: perl(base)
2424
BuildRequires: perl(Exporter)
@@ -36,44 +36,131 @@ BuildRequires: perl(threads::shared)
3636
# Optional tests only
3737
BuildRequires: perl(Time::HiRes)
3838
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
39-
Requires: perl(Exporter)
4039
Requires: perl(XSLoader)
4140

4241
%{?perl_default_filter}
4342

43+
# Filter modules bundled for tests
44+
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
45+
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Scope::Upper::TestGenerator\\)
46+
%global __requires_exclude %{__requires_exclude}|^perl\\(Test::Leaner\\)
47+
%global __requires_exclude %{__requires_exclude}|^perl\\(VPIT::TestHelpers\\)
48+
49+
4450
%description
4551
This module lets you defer actions that will take place when the control
4652
flow returns into an upper scope. Currently, you can hook an upper scope
4753
end, or localize variables, array/hash values or deletions of elements
4854
in higher contexts. You can also return to an upper level and know which
4955
context was in use then.
5056

57+
%package tests
58+
Summary: Tests for %{name}
59+
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
60+
Requires: perl-Test-Harness
61+
Requires: perl(Time::HiRes)
62+
63+
%description tests
64+
Tests from %{name}. Execute them
65+
with "%{_libexecdir}/%{name}/test".
66+
5167
%prep
5268
%setup -q -n Scope-Upper-%{version}
53-
sed -i -e '1s,^#!.*perl,%(perl -MConfig -e 'print $Config{startperl}'),' \
54-
samples/*
69+
perl -MConfig -pi -e 's|^#!.*perl|$Config{startperl}|' samples/*
70+
71+
# Help generators to recognize Perl scripts
72+
for F in t/*.t; do
73+
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
74+
chmod +x "$F"
75+
done
5576

5677
%build
57-
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
58-
make %{?_smp_mflags}
78+
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
79+
%{make_build}
5980

6081
%install
61-
make pure_install DESTDIR=%{buildroot}
82+
%{make_install}
6283
find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
6384
%{_fixperms} %{buildroot}/*
6485

86+
# Install tests
87+
mkdir -p %{buildroot}%{_libexecdir}/%{name}
88+
cp -a t %{buildroot}%{_libexecdir}/%{name}
89+
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
90+
#!/bin/sh
91+
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
92+
EOF
93+
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
94+
6595
%check
96+
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
6697
make test
6798

6899
%files
69-
%doc README Changes samples
100+
%doc README Changes CONTRIBUTING samples
70101
%{perl_vendorarch}/*
71102
%exclude %dir %{perl_vendorarch}/auto
72103
%{_mandir}/man3/*.3*
73104

105+
%files tests
106+
%{_libexecdir}/%{name}
107+
74108
%changelog
75-
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.32-4
76-
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
109+
* Tue Dec 17 2024 Sreenivasulu Malavathula <v-smalavathu@microsoft.com> - 0.34-8
110+
- Initial Azure Linux import from Fedora 41 (license: MIT)
111+
- License verified
112+
113+
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-7
114+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
115+
116+
* Mon Jun 10 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-6
117+
- Perl 5.40 rebuild
118+
119+
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-5
120+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
121+
122+
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-4
123+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
124+
125+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-3
126+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
127+
128+
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-2
129+
- Perl 5.38 rebuild
130+
131+
* Mon Mar 27 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-1
132+
- 0.34 bump
133+
134+
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-5
135+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
136+
137+
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-4
138+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
139+
140+
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-3
141+
- Perl 5.36 rebuild
142+
143+
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-2
144+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
145+
146+
* Tue Dec 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-1
147+
- 0.33 bump
148+
- Package tests
149+
150+
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-8
151+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
152+
153+
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.32-7
154+
- Perl 5.34 rebuild
155+
156+
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-6
157+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
158+
159+
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-5
160+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
161+
162+
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.32-4
163+
- Perl 5.32 rebuild
77164

78165
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-3
79166
- 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
@@ -19583,8 +19583,8 @@
1958319583
"type": "other",
1958419584
"other": {
1958519585
"name": "perl-Scope-Upper",
19586-
"version": "0.32",
19587-
"downloadUrl": "https://cpan.metacpan.org/authors/id/V/VP/VPIT/Scope-Upper-0.32.tar.gz"
19586+
"version": "0.34",
19587+
"downloadUrl": "https://cpan.metacpan.org/authors/id/V/VP/VPIT/Scope-Upper-0.34.tar.gz"
1958819588
}
1958919589
}
1959019590
},

0 commit comments

Comments
 (0)