source: projects/specs/trunk/p/perl-PPIx-QuoteLike/perl-PPIx-QuoteLike-vl.spec @ 12120

Revision 12120, 3.1 KB checked in by tomop, 5 years ago (diff)

perl-5.26 and friends

Line 
1# Enable PPIx::Regexp optional feature
2%bcond_without perl_PPIx_QuoteLike_enables_PPIx_Regexp
3
4Name:           perl-PPIx-QuoteLike
5Version:        0.006
6Release:        4%{?_dist_release}
7Summary:        Parse Perl string literals and string-literal-like things
8License:        GPL+ or Artistic
9URL:            https://metacpan.org/release/PPIx-QuoteLike
10Source0:        https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-QuoteLike-%{version}.tar.gz
11
12Vendor:        Project Vine
13Distribution:  Vine Linux
14
15BuildArch:      noarch
16BuildRequires:  make
17BuildRequires:  perl >= 2:5.26.2
18# Build.PL and inc/My/Module/Build.pm not used
19BuildRequires:  perl(Carp)
20BuildRequires:  perl(Config)
21BuildRequires:  perl(constant)
22BuildRequires:  perl(Exporter)
23BuildRequires:  perl(ExtUtils::MakeMaker)
24BuildRequires:  perl(lib)
25BuildRequires:  perl(strict)
26# Test::Without::Module not helpful
27BuildRequires:  perl(warnings)
28# Run-time:
29BuildRequires:  perl(base)
30BuildRequires:  perl(Encode)
31BuildRequires:  perl(List::Util)
32BuildRequires:  perl(PPI::Document)
33BuildRequires:  perl(PPI::Dumper)
34BuildRequires:  perl(re)
35BuildRequires:  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.
40BuildRequires:  perl(PPIx::Regexp)
41%endif
42# Tests:
43BuildRequires:  perl(charnames)
44BuildRequires:  perl(open)
45BuildRequires:  perl(Test::More)
46Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
47Requires:       perl(PPI::Document)
48Requires:       perl(PPI::Dumper)
49%if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp}
50Recommends:     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
57This Perl class parses Perl string literals and things that are reasonably
58like string literals. Its real reason for being is to find interpolated
59variables for Perl::Critic policies and similar code.
60
61%prep
62%setup -q -n PPIx-QuoteLike-%{version}
63# Fix shell bang
64perl -MConfig -p -i -e 's{\A#!/usr/bin/env perl\b}{$Config{startperl}}' \
65    eg/pqldump
66chmod -x eg/pqldump
67
68%build
69perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
70make %{?_smp_mflags}
71
72%install
73make pure_install DESTDIR=$RPM_BUILD_ROOT
74%{_fixperms} $RPM_BUILD_ROOT/*
75
76%check
77make 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.
Note: See TracBrowser for help on using the repository browser.