From be4c4b951df582efe353257ac531f07415b9fbc5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 07 2019 12:55:12 +0000 Subject: import perl-Switch-2.17-10.el8 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c96baed --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Switch-2.17.tar.gz diff --git a/.perl-Switch.metadata b/.perl-Switch.metadata new file mode 100644 index 0000000..ee81591 --- /dev/null +++ b/.perl-Switch.metadata @@ -0,0 +1 @@ +410fc346dc96347bdb04dc7594a1ae19e0bda834 SOURCES/Switch-2.17.tar.gz diff --git a/SOURCES/Switch-2.17-Filter-1.50.patch b/SOURCES/Switch-2.17-Filter-1.50.patch new file mode 100644 index 0000000..8783e7a --- /dev/null +++ b/SOURCES/Switch-2.17-Filter-1.50.patch @@ -0,0 +1,16 @@ +diff -up Switch-2.17/Switch.pm.fixme Switch-2.17/Switch.pm +--- Switch-2.17/Switch.pm.fixme 2014-06-10 13:03:40.395988520 -0400 ++++ Switch-2.17/Switch.pm 2014-06-10 13:04:50.909488953 -0400 +@@ -25,9 +25,11 @@ my ($Perl5, $Perl6) = (0,0); + + sub import + { ++ my ($class) = @_; ++ my $self = bless {}, $class; + $fallthrough = grep /\bfallthrough\b/, @_; + $offset = (caller)[2]+1; +- filter_add({}) unless @_>1 && $_[1] eq 'noimport'; ++ filter_add($self) unless @_>1 && $_[1] eq 'noimport'; + my $pkg = caller; + no strict 'refs'; + for ( qw( on_defined on_exists ) ) diff --git a/SPECS/perl-Switch.spec b/SPECS/perl-Switch.spec new file mode 100644 index 0000000..bca65f3 --- /dev/null +++ b/SPECS/perl-Switch.spec @@ -0,0 +1,114 @@ +Name: perl-Switch +Version: 2.17 +Release: 10%{?dist} +Summary: A switch statement for Perl +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Switch/ +Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Switch-%{version}.tar.gz +Patch0: Switch-2.17-Filter-1.50.patch +BuildRequires: perl-interpreter +BuildRequires: perl-generators +%if 0%(perl -e 'print $] > 5.011') +BuildRequires: perl(deprecate) +%endif +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Filter::Util::Call) +BuildRequires: perl(if) +BuildRequires: perl(overload) +BuildRequires: perl(Text::Balanced) +BuildRequires: perl(vars) +BuildRequires: perl(strict) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(overload) +BuildArch: noarch + +%description +Switch.pm provides the syntax and semantics for an explicit case mechanism for +Perl. The syntax is minimal, introducing only the keywords C and +C and conforming to the general pattern of existing Perl control +structures. The semantics are particularly rich, allowing any one (or more) of +nearly 30 forms of matching to be used when comparing a switch value with its +various cases. + +%prep +%setup -q -n Switch-%{version} +%patch0 -p1 -b .fixme + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +chmod -R u+w %{buildroot}/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/Switch.pm +%{_mandir}/man3/*.3* + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 2.17-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 2.17-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 2.17-8 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 2.17-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 2.17-6 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 2.17-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 2.17-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 03 2015 Jitka Plesnikova - 2.17-3 +- Perl 5.22 rebuild + +* Wed Aug 27 2014 Jitka Plesnikova - 2.17-2 +- Perl 5.20 rebuild + +* Tue Jun 10 2014 Tom Callaway - 2.17-1 +- update to 2.17 + +* Sat Jun 07 2014 Fedora Release Engineering - 2.16-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 2.16-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Petr Pisar - 2.16-7 +- Perl 5.18 rebuild + +* Fri Jul 12 2013 Jitka Plesnikova - 2.16-6 +- Specify all dependencies +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Remove buildroot cleaning + +* Thu Feb 14 2013 Fedora Release Engineering - 2.16-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 2.16-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 2.16-3 +- Perl 5.16 rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 2.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Aug 10 2011 Tom Callaway - 2.16-1 +- initial package