|
|
@ -1,34 +1,56 @@
|
|
|
|
Name: perl-PPIx-Utils
|
|
|
|
Name: perl-PPIx-Utils
|
|
|
|
Version: 0.003
|
|
|
|
Version: 0.003
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Utility functions for PPI
|
|
|
|
Summary: Utility functions for PPI
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
|
|
|
URL: https://metacpan.org/release/PPIx-Utils
|
|
|
|
URL: https://metacpan.org/release/PPIx-Utils/
|
|
|
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/PPIx-Utils-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/PPIx-Utils-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
# Module Build
|
|
|
|
BuildRequires: %{__make}
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: perl-interpreter >= 0:5.008005
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl >= 0:5.006
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
|
|
|
# Module Runtime
|
|
|
|
BuildRequires: perl(B::Keywords) >= 1.09
|
|
|
|
BuildRequires: perl(B::Keywords) >= 1.09
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI) >= 1.250
|
|
|
|
BuildRequires: perl(PPI) >= 1.250
|
|
|
|
BuildRequires: perl(PPI::Dumper)
|
|
|
|
BuildRequires: perl(PPI::Document::Fragment)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Token::Quote::Single)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
|
|
|
# Test Suite
|
|
|
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Document)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Dumper)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Break)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Compound)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Data)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::End)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Expression)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Include)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Null)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Package)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Scheduled)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Sub)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Unknown)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::UnmatchedBrace)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Statement::Variable)
|
|
|
|
|
|
|
|
BuildRequires: perl(PPI::Token::Word)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
|
|
|
|
# Optional Tests
|
|
|
|
|
|
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
|
|
|
|
|
|
BuildRequires: perl(CPAN::Meta::Prereqs)
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
Requires: perl(B::Keywords) >= 1.09
|
|
|
|
Requires: perl(B::Keywords) >= 1.09
|
|
|
|
Requires: perl(PPI) >= 1.250
|
|
|
|
Requires: perl(PPI) >= 1.250
|
|
|
|
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Filter duplicate unversioned requires
|
|
|
|
# Filter duplicate unversioned requires
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(B::Keywords\\)$
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(B::Keywords\\)$
|
|
|
|
|
|
|
|
|
|
|
@ -37,29 +59,39 @@ PPIx::Utils is a collection of utility functions for working with PPI
|
|
|
|
documents. The functions are organized into submodules, and may be imported
|
|
|
|
documents. The functions are organized into submodules, and may be imported
|
|
|
|
from the appropriate submodule or via this module.
|
|
|
|
from the appropriate submodule or via this module.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These functions were originally from Perl::Critic::Utils and related modules,
|
|
|
|
|
|
|
|
and have been split off to this distribution for use outside of Perl::Critic.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n PPIx-Utils-%{version}
|
|
|
|
%setup -q -n PPIx-Utils-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{make_build}
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{make_install}
|
|
|
|
%{make_install}
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc Changes README
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{perl_vendorlib}/PPIx/
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man3/PPIx::Utils.3*
|
|
|
|
|
|
|
|
%{_mandir}/man3/PPIx::Utils::Classification.3*
|
|
|
|
|
|
|
|
%{_mandir}/man3/PPIx::Utils::Language.3*
|
|
|
|
|
|
|
|
%{_mandir}/man3/PPIx::Utils::Traversal.3*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue May 04 2021 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.003-1
|
|
|
|
* Mon Dec 20 2021 Paul Howarth <paul@city-fan.org> - 0.003-3
|
|
|
|
- Reflect review.
|
|
|
|
- Classify buildreqs by usage
|
|
|
|
|
|
|
|
- Make %%files list more explicit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 04 2021 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.003-2
|
|
|
|
|
|
|
|
- Reflect review
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 27 2021 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.003-1
|
|
|
|
* Tue Apr 27 2021 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.003-1
|
|
|
|
- Initial Fedora package.
|
|
|
|
- Initial Fedora package
|
|
|
|