|
|
|
@ -1,22 +1,23 @@
|
|
|
|
|
# Run optional test
|
|
|
|
|
%bcond_with perl_PPIx_Regexp_enables_option_test
|
|
|
|
|
|
|
|
|
|
Name: perl-PPIx-Regexp
|
|
|
|
|
Version: 0.051
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 0.052
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Represent a regular expression of some sort
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/PPIx-Regexp/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/W/WY/WYANT/PPIx-Regexp-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.6
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
BuildRequires: sed
|
|
|
|
@ -34,14 +35,16 @@ BuildRequires: perl(Encode)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
|
# YAML not used
|
|
|
|
|
%if %{with perl_PPIx_Regexp_enables_option_test}
|
|
|
|
|
# Optional tests:
|
|
|
|
|
BuildRequires: perl(charnames)
|
|
|
|
|
# Data::Dumper not used
|
|
|
|
|
# Text::CSV is not used
|
|
|
|
|
BuildRequires: perl(Time::HiRes)
|
|
|
|
|
# YAML not used
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
# Encode is optional.
|
|
|
|
|
Recommends: perl(Encode)
|
|
|
|
|
Requires: perl(Exporter)
|
|
|
|
|
Requires: perl(PPI::Document) >= 1.117
|
|
|
|
|
Requires: perl(Task::Weaken)
|
|
|
|
@ -62,12 +65,11 @@ sed -i \
|
|
|
|
|
eg/*
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -80,6 +82,9 @@ make test
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Sep 08 2017 Petr Pisar <ppisar@redhat.com> - 0.052-1
|
|
|
|
|
- 0.052 bump
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.051-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|