123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- # Enable PPIx::Regexp optional feature
- %bcond_without perl_PPIx_QuoteLike_enables_PPIx_Regexp
- Name: perl-PPIx-QuoteLike
- Version: 0.006
- Release: 4%{?_dist_release}
- Summary: Parse Perl string literals and string-literal-like things
- License: GPL+ or Artistic
- URL: https://metacpan.org/release/PPIx-QuoteLike
- Source0: https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-QuoteLike-%{version}.tar.gz
- Vendor: Project Vine
- Distribution: Vine Linux
- BuildArch: noarch
- BuildRequires: make
- BuildRequires: perl >= 2:5.26.2
- # Build.PL and inc/My/Module/Build.pm not used
- BuildRequires: perl(Carp)
- BuildRequires: perl(Config)
- BuildRequires: perl(constant)
- BuildRequires: perl(Exporter)
- BuildRequires: perl(ExtUtils::MakeMaker)
- BuildRequires: perl(lib)
- BuildRequires: perl(strict)
- # Test::Without::Module not helpful
- BuildRequires: perl(warnings)
- # Run-time:
- BuildRequires: perl(base)
- BuildRequires: perl(Encode)
- BuildRequires: perl(List::Util)
- BuildRequires: perl(PPI::Document)
- BuildRequires: perl(PPI::Dumper)
- BuildRequires: perl(re)
- BuildRequires: perl(Scalar::Util)
- %if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp}
- # Optional run-time:
- # Author states there is a build-cycle with PPIx::Regexp, but I cannot see
- # any.
- BuildRequires: perl(PPIx::Regexp)
- %endif
- # Tests:
- BuildRequires: perl(charnames)
- BuildRequires: perl(open)
- BuildRequires: perl(Test::More)
- Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
- Requires: perl(PPI::Document)
- Requires: perl(PPI::Dumper)
- %if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp}
- Recommends: perl(PPIx::Regexp)
- %endif
- # Remove under-specified dependencies
- %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((PPI::Document|PPI::Dumper)\\)$
- %description
- This Perl class parses Perl string literals and things that are reasonably
- like string literals. Its real reason for being is to find interpolated
- variables for Perl::Critic policies and similar code.
- %prep
- %setup -q -n PPIx-QuoteLike-%{version}
- # Fix shell bang
- perl -MConfig -p -i -e 's{\A#!/usr/bin/env perl\b}{$Config{startperl}}' \
- eg/pqldump
- chmod -x eg/pqldump
- %build
- perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
- make %{?_smp_mflags}
- %install
- make pure_install DESTDIR=$RPM_BUILD_ROOT
- %{_fixperms} $RPM_BUILD_ROOT/*
- %check
- make test
- %files
- %license LICENSES/*
- %doc Changes eg README
- %{perl_vendorlib}/*
- %{_mandir}/man3/*
- %changelog
- * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.006-4
- - initial build for Vine Linux.
- * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
- * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
- * Tue Jul 10 2018 Petr Pisar <ppisar@redhat.com> - 0.006-1
- - 0.006 bump
- * Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-2
- - Perl 5.28 rebuild
- * Mon Jun 04 2018 Petr Pisar <ppisar@redhat.com> 0.005-1
- - Specfile autogenerated by cpanspec 1.78.
|