[12120] | 1 | # Enable PPIx::Regexp optional feature |
---|
| 2 | %bcond_without perl_PPIx_QuoteLike_enables_PPIx_Regexp |
---|
| 3 | |
---|
| 4 | Name: perl-PPIx-QuoteLike |
---|
| 5 | Version: 0.006 |
---|
| 6 | Release: 4%{?_dist_release} |
---|
| 7 | Summary: Parse Perl string literals and string-literal-like things |
---|
| 8 | License: GPL+ or Artistic |
---|
| 9 | URL: https://metacpan.org/release/PPIx-QuoteLike |
---|
| 10 | Source0: https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-QuoteLike-%{version}.tar.gz |
---|
| 11 | |
---|
| 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | |
---|
| 15 | BuildArch: noarch |
---|
| 16 | BuildRequires: make |
---|
| 17 | BuildRequires: perl >= 2:5.26.2 |
---|
| 18 | # Build.PL and inc/My/Module/Build.pm not used |
---|
| 19 | BuildRequires: perl(Carp) |
---|
| 20 | BuildRequires: perl(Config) |
---|
| 21 | BuildRequires: perl(constant) |
---|
| 22 | BuildRequires: perl(Exporter) |
---|
| 23 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 24 | BuildRequires: perl(lib) |
---|
| 25 | BuildRequires: perl(strict) |
---|
| 26 | # Test::Without::Module not helpful |
---|
| 27 | BuildRequires: perl(warnings) |
---|
| 28 | # Run-time: |
---|
| 29 | BuildRequires: perl(base) |
---|
| 30 | BuildRequires: perl(Encode) |
---|
| 31 | BuildRequires: perl(List::Util) |
---|
| 32 | BuildRequires: perl(PPI::Document) |
---|
| 33 | BuildRequires: perl(PPI::Dumper) |
---|
| 34 | BuildRequires: perl(re) |
---|
| 35 | BuildRequires: perl(Scalar::Util) |
---|
| 36 | %if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp} |
---|
| 37 | # Optional run-time: |
---|
| 38 | # Author states there is a build-cycle with PPIx::Regexp, but I cannot see |
---|
| 39 | # any. |
---|
| 40 | BuildRequires: perl(PPIx::Regexp) |
---|
| 41 | %endif |
---|
| 42 | # Tests: |
---|
| 43 | BuildRequires: perl(charnames) |
---|
| 44 | BuildRequires: perl(open) |
---|
| 45 | BuildRequires: perl(Test::More) |
---|
| 46 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 47 | Requires: perl(PPI::Document) |
---|
| 48 | Requires: perl(PPI::Dumper) |
---|
| 49 | %if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp} |
---|
| 50 | Recommends: perl(PPIx::Regexp) |
---|
| 51 | %endif |
---|
| 52 | |
---|
| 53 | # Remove under-specified dependencies |
---|
| 54 | %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((PPI::Document|PPI::Dumper)\\)$ |
---|
| 55 | |
---|
| 56 | %description |
---|
| 57 | This Perl class parses Perl string literals and things that are reasonably |
---|
| 58 | like string literals. Its real reason for being is to find interpolated |
---|
| 59 | variables for Perl::Critic policies and similar code. |
---|
| 60 | |
---|
| 61 | %prep |
---|
| 62 | %setup -q -n PPIx-QuoteLike-%{version} |
---|
| 63 | # Fix shell bang |
---|
| 64 | perl -MConfig -p -i -e 's{\A#!/usr/bin/env perl\b}{$Config{startperl}}' \ |
---|
| 65 | eg/pqldump |
---|
| 66 | chmod -x eg/pqldump |
---|
| 67 | |
---|
| 68 | %build |
---|
| 69 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 |
---|
| 70 | make %{?_smp_mflags} |
---|
| 71 | |
---|
| 72 | %install |
---|
| 73 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
| 74 | %{_fixperms} $RPM_BUILD_ROOT/* |
---|
| 75 | |
---|
| 76 | %check |
---|
| 77 | make test |
---|
| 78 | |
---|
| 79 | %files |
---|
| 80 | %license LICENSES/* |
---|
| 81 | %doc Changes eg README |
---|
| 82 | %{perl_vendorlib}/* |
---|
| 83 | %{_mandir}/man3/* |
---|
| 84 | |
---|
| 85 | %changelog |
---|
| 86 | * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.006-4 |
---|
| 87 | - initial build for Vine Linux. |
---|
| 88 | |
---|
| 89 | * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-3 |
---|
| 90 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
| 91 | |
---|
| 92 | * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-2 |
---|
| 93 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
| 94 | |
---|
| 95 | * Tue Jul 10 2018 Petr Pisar <ppisar@redhat.com> - 0.006-1 |
---|
| 96 | - 0.006 bump |
---|
| 97 | |
---|
| 98 | * Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-2 |
---|
| 99 | - Perl 5.28 rebuild |
---|
| 100 | |
---|
| 101 | * Mon Jun 04 2018 Petr Pisar <ppisar@redhat.com> 0.005-1 |
---|
| 102 | - Specfile autogenerated by cpanspec 1.78. |
---|