@ -1,13 +1,13 @@
# PPI::XSAccessor is experimental
%if 0%{?rhel} >= 7
%if 0%{?rhel:1 }
%bcond_with XSAccessor
%else
%bcond_without XSAccessor
%endif
Name: perl-PPI
Version: 1.220
Release: 8 %{?dist}
Version: 1.224
Release: 1 %{?dist}
Summary: Parse, Analyze and Manipulate Perl
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/PPI/
@ -15,18 +15,21 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MITHALDU/PPI-%{versi
Patch0: PPI-1.215-utf8.patch
BuildArch: noarch
# =============== Module Build ======================
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) > 6.75
BuildRequires: perl(ExtUtils::MM_Unix)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Find)
BuildRequires: perl(IO::Al l)
BuildRequires: perl(lib )
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(warnings)
BuildRequires: sed
# =============== Module Runtime ====================
BuildRequires: perl(Carp)
BuildRequires: perl(Clone) >= 0.30
@ -37,7 +40,7 @@ BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.84
BuildRequires: perl(IO::String) >= 1.07
BuildRequires: perl(List::MoreUtils) >= 0.16
BuildRequires: perl(List::Util) >= 1.20
BuildRequires: perl(List::Util) >= 1.33
BuildRequires: perl(overload)
BuildRequires: perl(Params::Util) >= 1.00
BuildRequires: perl(Scalar::Util)
@ -45,13 +48,16 @@ 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(File::Copy)
BuildRequires: perl(File::Remove) >= 0.39
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(if)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 0.86
BuildRequires: perl(Test::NoWarnings) >= 0.084
BuildRequires: perl(Test::Object) >= 0.07
BuildRequires: perl(Test::SubCalls) >= 1.07
BuildRequires: perl(Time::HiRes)
@ -72,6 +78,7 @@ BuildRequires: perl(Test::Pod) >= 1.44
# =============== 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.
@ -101,13 +108,12 @@ find . -type f | xargs chmod -c -x
sed -i -e 's/\r$//' README.md
%build
perl Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} %{buildroot}
make install DESTDIR=%{buildroot}
%{_fixperms} -c %{buildroot}
%check
make test
@ -116,17 +122,26 @@ make test TEST_FILES="xt/*.t" RELEASE_TESTING=1
%endif
%files
%if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes README README.md
%{perl_vendorlib}/PPI/
%{perl_vendorlib}/PPI.pm
%{_mandir}/man3/PPI*.3pm *
%{_mandir}/man3/PPI*.3*
%changelog
* 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