Compare commits

..

No commits in common. "rawhide" and "perl-PPI-1.215-1.fc15" have entirely different histories.

3 changed files with 58 additions and 354 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/PPI-[0-9.]*.tar.gz
/PPI-1.215.tar.gz

View File

@ -1,380 +1,84 @@
# PPI::XSAccessor is experimental
%if 0%{?rhel:1}
%bcond_with XSAccessor
%else
%bcond_without XSAccessor
%endif
Name: perl-PPI
Version: 1.276
Release: 2%{?dist}
Version: 1.215
Release: 1%{?dist}
Summary: Parse, Analyze and Manipulate Perl
Group: Development/Libraries
License: GPL+ or Artistic
URL: https://metacpan.org/release/PPI
Source0: https://cpan.metacpan.org/modules/by-module/PPI/PPI-%{version}.tar.gz
URL: http://search.cpan.org/dist/PPI/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/PPI-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# =============== Module Build ======================
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) > 6.75
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(warnings)
BuildRequires: sed
# =============== Module Runtime ====================
BuildRequires: perl(Carp)
BuildRequires: perl(Clone) >= 0.30
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(List::Util) >= 1.33
BuildRequires: perl(overload)
BuildRequires: perl(Params::Util) >= 1.00
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(ExtUtils::MakeMaker)
# Perl core modules
BuildRequires: perl(List::Util) >= 1.20
BuildRequires: perl(Storable) >= 2.17
BuildRequires: perl(strict)
# =============== Test Suite ========================
BuildRequires: perl(B)
BuildRequires: perl(Class::Inspector) >= 1.22
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(Encode)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::More) >= 0.86
BuildRequires: perl(Digest::MD5) >= 2.35
# CPAN modules
BuildRequires: perl(Clone) >= 0.30
BuildRequires: perl(File::Find::Rule) >= 0.32
BuildRequires: perl(File::Find::Rule::Perl) >= 1.09
BuildRequires: perl(File::Remove) >= 1.42
BuildRequires: perl(IO::String) >= 1.07
BuildRequires: perl(List::MoreUtils) >= 0.16
BuildRequires: perl(Params::Util) >= 1.00
BuildRequires: perl(Perl::MinimumVersion) >= 1.25
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Test::ClassAPI) >= 1.04
BuildRequires: perl(Test::CPAN::Meta) >= 0.17
BuildRequires: perl(Test::MinimumVersion) >= 0.101080
BuildRequires: perl(Test::NoWarnings) >= 0.084
BuildRequires: perl(Test::Object) >= 0.07
BuildRequires: perl(Test::Pod) >= 1.44
BuildRequires: perl(Test::SubCalls) >= 1.07
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(utf8)
# =============== Module Runtime ====================
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if %{with XSAccessor}
BuildRequires: perl(Class::XSAccessor)
%endif
# Run-require Task::Weaken, see Changes for more details.
Requires: perl(Task::Weaken)
# Filter out redundant unversioned provides
%global __provides_exclude ^perl\\(PPI::.+\\)$
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Parse, analyze and manipulate Perl (without perl).
%prep
%setup -q -n PPI-%{version}
%{?filter_setup:
%filter_from_provides /^perl(PPI::.*)$/d
%?perl_default_filter
}
iconv -f iso8859-1 -t utf-8 < Changes > Changes.1
mv Changes.1 Changes
chmod -c 644 lib/PPI/Document/File.pm
%if %{without XSAccessor}
rm lib/PPI/XSAccessor.pm
sed -i '/^lib\/PPI\/XSAccessor\.pm$/d' MANIFEST
%endif
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
%{make_install}
%{_fixperms} -c %{buildroot}
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} $RPM_BUILD_ROOT
%check
make test
make test TEST_FILES="xt/*.t" RELEASE_TESTING=1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%license LICENSE
%doc Changes README
%defattr(-,root,root,-)
%doc Changes LICENSE README inline2test.conf inline2test.tpl
%{perl_vendorlib}/PPI/
%{perl_vendorlib}/PPI.pm
%{_mandir}/man3/PPI*.3*
%{_mandir}/man3/PPI*.3pm*
%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
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.236-5
- Perl 5.28 re-rebuild of bootstrapped packages
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.236-4
- Perl 5.28 rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.236-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.236-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Jun 22 2017 Paul Howarth <paul@city-fan.org> - 1.236-1
- Update to 1.236
- Prevent Node->child from proceeding without a valid argument
- Make test pragma warning code enable -w to match warnings policy
* Wed Jun 21 2017 Paul Howarth <paul@city-fan.org> - 1.234-1
- Update to 1.234
- Prevent sub names like v10 from being version strings (GH#65)
- Add Changes entries forgotten in 1.230
- Remove temporary fix introduced in 1.226
- Prevent possible regex on undefined scalar in
__current_token_is_forced_word
* Wed Jun 21 2017 Paul Howarth <paul@city-fan.org> - 1.228-1
- Update to 1.228
- Fix test reliance on '.' in @INC
- Temporary fix to keep an untested combination from blocking Perl::Critic
- Keep PPI::Dumper from breaking Perl::Critic under cperl 5.27
- Fix upstream's temporary fix (GH#206, GH#212)
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.224-3
- Perl 5.26 re-rebuild of bootstrapped packages
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.224-2
- Perl 5.26 rebuild
* Tue May 16 2017 Paul Howarth <paul@city-fan.org> - 1.224-1
- Update to 1.224
- Unit tests for many parts, both passing and TODO
- Many documentation fixes
- Add ->version method to PPI::Statement::Package
- Remove unused PPI::Document->new timeout feature
- Do not expect '.' in @INC
- Many parsing fixes
- Various fixes to the behaviors of methods
- Removal of problematic dependencies
- Simplify find command using -delete
- Drop support for EL6/EL7 as they don't have List::Util 1.33
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.220-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.220-7
- Perl 5.24 re-rebuild of bootstrapped packages
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.220-6
- Perl 5.24 rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.220-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.220-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.220-3
- Perl 5.22 re-rebuild of bootstrapped packages
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.220-2
- Perl 5.22 rebuild
* Wed Nov 12 2014 Paul Howarth <paul@city-fan.org> - 1.220-1
- Update to 1.220
- Incompatible behavior fixes on PPI::Statement::Sub->prototype
- Improved parsing of various syntax elements
- Code quality improvements
- Various small documentation fixes
- BR: perl(IO::All) and perl(Capture::Tiny) to quieten warnings for author
code during module build
- Fix line endings of new README.md file
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.218-3
- Perl 5.20 re-rebuild of bootstrapped packages
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.218-2
- Perl 5.20 rebuild
* Mon Aug 25 2014 Paul Howarth <paul@city-fan.org> - 1.218-1
- Update to 1.218
- Fixes for various parsing and documentation bugs
- 1MB limit on input document size removed
- Moved repository to GitHub: https://github.com/adamkennedy/PPI
- This release by MITHALDU update source URL
- Use %%license where possible
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.215-14
- Perl 5.18 re-rebuild of bootstrapped packages
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 1.215-12
- Specify all dependencies
* Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 1.215-11
- Perl 5.18 rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Aug 25 2012 Paul Howarth <paul@city-fan.org> - 1.215-9
- classify buildreqs by usage
- BR: perl(Time::HiRes) for the test suite
- BR: perl(Pod::Simple) 3.14 for the release tests
- BR: at least version 0.17 of perl(Test::CPAN::Meta)
- bump perl(Test::Pod) version requirement to 1.44
- don't need to remove empty directories from the buildroot
* Thu Aug 16 2012 Petr Pisar <ppisar@redhat.com> - 1.215-8
- specify all dependencies
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-7
- rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.215-6
- perl 5.16 re-rebuild of bootstrapped packages
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 1.215-5
- perl 5.16 rebuild
- build-require Class::Inspector for tests
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.215-4
- rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Jul 21 2011 Paul Howarth <paul@city-fan.org> - 1.215-3
- always run test suite but don't run release tests when bootstrapping
- nobody else likes macros for commands
- clean up for modern rpm:
- drop explicit buildroot tag
- drop buildroot cleaning
- drop %%defattr
- use native provides filtering
- use a patch rather than scripting iconv to fix character encoding
- upstream file permissions no longer need fixing
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.215-2
- rebuild with Perl 5.14.1
- use perl_bootstrap macro
* Sun Mar 27 2011 Paul Howarth <paul@city-fan.org> - 1.215-1
- update to 1.215 (general fix release):
- index_locations on an empty document no longer warns
@ -416,8 +120,8 @@ make test
- Fixed CPAN RT#44862: PPI cannot parse "package Foo::100;" correctly
- Fixed CPAN RT#54208: PPI::Token::Quote::Literal::literal missing
- run release tests as well as regular test suite
- BR: perl(File::Find::Rule) >= 0.32, perl(File::Find::Rule::Perl) >= 1.09,
perl(Perl::MinimumVersion) >= 1.24 and perl(Test::MinimumVersion) >= 0.101080
- BR: perl(File::Find::Rule) >= 0.32, perl(File::Find::Rule::Perl) >= 1.09,
perl(Perl::MinimumVersion) >= 1.24 and perl(Test::MinimumVersion) >= 0.101080
for release tests
* Sat Jul 31 2010 Paul Howarth <paul@city-fan.org> - 1.210-1

View File

@ -1 +1 @@
SHA512 (PPI-1.276.tar.gz) = fb6ed20e7d36ac83757107a7d075bc7a387cb32a83e5927b47423b7705f7b7d2b05762bd21d480d75cda494fee9a40d789515c84efec5c2f2e4a1041524e3af0
7b58542e39e8a162d2f6866d7c059bae PPI-1.215.tar.gz