Compare commits

..

No commits in common. "rawhide" and "f29" have entirely different histories.
rawhide ... f29

3 changed files with 72 additions and 142 deletions

11
PPI-1.215-utf8.patch Normal file
View File

@ -0,0 +1,11 @@
--- Changes
+++ Changes
@@ -705,7 +705,7 @@ Revision history for Perl extension PPI
- Resolved Lexer bug CPAN #13425 ( $p{package} creates a PPI::Statement::Package )
Added smarts to resolve word-started statements as ::Expression in subscripts
- Resolved PDOM bug CPAN #13326 ( problems in index_locations )
- Patch and comprehensive additional tests provided by johanl[ÄT]DarSerMan.com
+ Patch and comprehensive additional tests provided by johanl[ÄT]DarSerMan.com
- Removed dependency on Class::Autouse. Just load Tokenizer and Lexer up front.
- Removed dependency on File::Slurp. Only use it 3 times and it's not worth it
when almost all the files we will read are under 50k.

View File

@ -5,20 +5,35 @@
%bcond_without XSAccessor
%endif
# Run extra test
%if 0%{?rhel}
%bcond_with perl_PPI_enables_extra_test
%else
%bcond_without perl_PPI_enables_extra_test
%endif
Name: perl-PPI
Version: 1.276
Release: 2%{?dist}
Version: 1.236
Release: 6%{?dist}
Summary: Parse, Analyze and Manipulate Perl
License: GPL+ or Artistic
URL: https://metacpan.org/release/PPI
Source0: https://cpan.metacpan.org/modules/by-module/PPI/PPI-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/M/MI/MITHALDU/PPI-%{version}.tar.gz
Patch0: PPI-1.215-utf8.patch
BuildArch: noarch
# =============== Module Build ======================
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker) > 6.75
BuildRequires: perl(ExtUtils::MM_Unix)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Find)
BuildRequires: perl(lib)
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(warnings)
BuildRequires: sed
@ -29,34 +44,51 @@ BuildRequires: perl(constant)
BuildRequires: perl(Digest::MD5) >= 2.35
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(if)
BuildRequires: perl(File::Spec) >= 0.84
BuildRequires: perl(IO::String) >= 1.07
BuildRequires: perl(List::MoreUtils) >= 0.16
BuildRequires: perl(List::Util) >= 1.33
BuildRequires: perl(overload)
BuildRequires: perl(Params::Util) >= 1.00
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Storable) >= 2.17
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# =============== Test Suite ========================
BuildRequires: perl(B)
BuildRequires: perl(base)
BuildRequires: perl(Class::Inspector) >= 1.22
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(Encode)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Remove) >= 0.39
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(if)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 0.86
BuildRequires: perl(Test::Object) >= 0.07
BuildRequires: perl(Test::SubCalls) >= 1.07
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(utf8)
%if %{with perl_PPI_enables_extra_test}
# =============== Release Tests =====================
# Circular dependencies in release tests, so don't do them when bootstrapping:
# Perl::MinimumVersion → PPI
%if 0%{!?perl_bootstrap:1}
BuildRequires: perl(File::Find::Rule) >= 0.32
BuildRequires: perl(File::Find::Rule::Perl) >= 1.09
BuildRequires: perl(Perl::MinimumVersion) >= 1.20
BuildRequires: perl(Pod::Simple) >= 3.14
BuildRequires: perl(Test::ClassAPI) >= 1.03
BuildRequires: perl(Test::CPAN::Meta) >= 0.17
BuildRequires: perl(Test::MinimumVersion) >= 0.101080
BuildRequires: perl(Test::Pod) >= 1.44
%endif
%endif
# =============== Module Runtime ====================
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if %{with XSAccessor}
BuildRequires: perl(Class::XSAccessor)
Requires: perl(Class::XSAccessor)
%endif
# Run-require Task::Weaken, see Changes for more details.
Requires: perl(Task::Weaken)
@ -70,155 +102,42 @@ Parse, analyze and manipulate Perl (without perl).
%prep
%setup -q -n PPI-%{version}
# Recode documentation as UTF-8
%patch0
%if %{without XSAccessor}
rm lib/PPI/XSAccessor.pm
sed -i '/^lib\/PPI\/XSAccessor\.pm$/d' MANIFEST
%endif
# Get rid of spurious exec permissions
find . -type f | xargs chmod -c -x
# Fix line endings
sed -i -e 's/\r$//' README.md
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
make %{?_smp_mflags}
%install
%{make_install}
make install DESTDIR=%{buildroot}
%{_fixperms} -c %{buildroot}
%check
make test
%if %{with perl_PPI_enables_extra_test} && 0%{!?perl_bootstrap:1}
make test TEST_FILES="xt/*.t" RELEASE_TESTING=1
%endif
%files
%license LICENSE
%doc Changes README
%doc Changes README README.md
%{perl_vendorlib}/PPI/
%{perl_vendorlib}/PPI.pm
%{_mandir}/man3/PPI*.3*
%changelog
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.276-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jul 20 2022 Paul Howarth <paul@city-fan.org> - 1.276-1
- Update to 1.276
- Implement replace method (GH#274)
* Tue Jul 19 2022 Paul Howarth <paul@city-fan.org> - 1.275-1
- Update to 1.275
- CHECK bareword handle was parsed as scheduled block (GH#247)
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.274-2
- Perl 5.36 rebuild
* Tue May 3 2022 Paul Howarth <paul@city-fan.org> - 1.274-1
- Update to 1.274
- Indentation in here-docs is now preserved (GH#252)
* Mon Apr 25 2022 Paul Howarth <paul@city-fan.org> - 1.273-1
- Update to 1.273
- Whitespace in signatures is now preserved (GH#257)
* Wed Feb 2 2022 Paul Howarth <paul@city-fan.org> - 1.272-1
- Update to 1.272
- Drop prerequisite for IO::String on perl 5.8+
* Wed Jan 26 2022 Paul Howarth <paul@city-fan.org> - 1.271-1
- Update to 1.271
- Return correct name for lexical subroutines
- Silence uninitialized warning in t/07_token.t
- Bump minimum Test::More version to 0.96
- Fix some typos in Pod
- Moved repository to Perl-Critic GitHub org:
https://github.com/Perl-Critic/PPI
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.270-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.270-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.270-7
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.270-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.270-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.270-4
- Perl 5.32 rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.270-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.270-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Jul 10 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.270-1
- Update to 1.270
- Attempt to handle new blead binary/hexadecimal parsing behavior in tests
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.269-2
- Perl 5.30 rebuild
* Sun May 19 2019 Paul Howarth <paul@city-fan.org> - 1.269-1
- Update to 1.269
- Many small documentation improvements
* Thu May 16 2019 Paul Howarth <paul@city-fan.org> - 1.268-1
- Update to 1.268
- Make PPI::Test::Run more OS-agnostic
- Fix a broken link in the pod
* Thu May 16 2019 Paul Howarth <paul@city-fan.org> - 1.266-1
- Update to 1.266
- Prevent heredoc terminator detection triggering regex errors
- Small clean-ups
- Work around test failures caused by DOS line endings in test data files
(https://github.com/adamkennedy/PPI/issues/243)
* Wed May 15 2019 Paul Howarth <paul@city-fan.org> - 1.265-1
- Update to 1.265
- Simplified a code construct
* Mon Apr 29 2019 Paul Howarth <paul@city-fan.org> - 1.264-1
- Update to 1.264
- Keep vstring processing from swallowing underscores
* Sun Apr 28 2019 Paul Howarth <paul@city-fan.org> - 1.262-1
- Update to 1.262
- Add support for the double diamond (<<>>) input operator
- Adjust position of a todo marker to not catch a passing test
- Recognize `for (;<$foo>;) {}` as containing a readline operator
- Remove accidentally included use of Test::InDistDir
- Allow all PPI::Document instances to have a filename attribute
- Allow underscores in vstrings
- Convert newlines in some raw test files from win32 to unix
* Fri Apr 26 2019 Paul Howarth <paul@city-fan.org> - 1.250-1
- Update to 1.250
- Support postfix dereference
- Add support for lexical subroutines from perl-5.26
- Support key-value and index-value slices in PPI::Token::Symbol symbol
method
- Support indented here-docs
- Parse list-embedded curlies as hash constructors
- Keep exponents of 2 or more zeroes from trapping PPI in an endless loop
- Remove dependencies on vars, base and List::MoreUtils
- Remove dependency on File::Remove
- Reduce globals and cross-package variables
- Move to Dist::Zilla
- Add some tests including a TODO test for misparse bug on '(1)-1'
- Allow tests to run without pre-determined module versions
- Make xt/api.t skip/run properly
- Fix some typos and formatting in Changes
- Add travis-perl helper to be run before install
- Update versions of Perl Travis tests on
- Modernize spec using %%{make_build} and %%{make_install}
- Don't try to run the release tests in the package build
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.236-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.236-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (PPI-1.276.tar.gz) = fb6ed20e7d36ac83757107a7d075bc7a387cb32a83e5927b47423b7705f7b7d2b05762bd21d480d75cda494fee9a40d789515c84efec5c2f2e4a1041524e3af0
SHA512 (PPI-1.236.tar.gz) = 93a7f4059b12156bdcba77958c17841ab43d85cb0045d0c58d087d6e637e09e253a559cfe465d9d8699329098582759cb8381978c121b9661a9a755e919dece1