b5f53c
%global cpan_version 0.30
b5f53c
Name:           perl-Config-Perl-V
b5f53c
Version:        0.30
b5f53c
Release:        1%{?dist}
b5f53c
Summary:        Structured data retrieval of perl -V output
b5f53c
License:        GPL+ or Artistic
b5f53c
URL:            https://metacpan.org/release/Config-Perl-V
b5f53c
Source0:        https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/Config-Perl-V-%{cpan_version}.tgz
b5f53c
# Correct example
b5f53c
Patch0:         Config-Perl-V-0.24-Remove-invalid-shellbang.patch
b5f53c
BuildArch:      noarch
b5f53c
BuildRequires:  coreutils
b5f53c
BuildRequires:  make
b5f53c
BuildRequires:  perl-generators
b5f53c
BuildRequires:  perl-interpreter
b5f53c
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
b5f53c
BuildRequires:  perl(strict)
b5f53c
# Run-time:
b5f53c
BuildRequires:  perl(Config)
b5f53c
BuildRequires:  perl(Exporter)
b5f53c
BuildRequires:  perl(vars)
b5f53c
BuildRequires:  perl(warnings)
b5f53c
# Optional run-time:
b5f53c
BuildRequires:  perl(Digest::MD5)
b5f53c
# Tests:
b5f53c
BuildRequires:  perl(Test::More)
b5f53c
%if !%{defined perl_bootstrap}
b5f53c
# Building core modules must not require non-core modules when bootstrapping
b5f53c
BuildRequires:  perl(Test::NoWarnings)
b5f53c
%endif
b5f53c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b5f53c
Suggests:       perl(Digest::MD5)
b5f53c
Conflicts:      perl < 4:5.22.0-347
b5f53c
b5f53c
%description
b5f53c
The command "perl -V" will return you an excerpt from the %%Config::Config
b5f53c
hash combined with the output of "perl -V" that is not stored inside the hash,
b5f53c
but only available to the perl binary itself. This package provides Perl
b5f53c
module that will return you the output of "perl -V" in a structure.
b5f53c
b5f53c
%prep
b5f53c
%setup -q -n Config-Perl-V-%{cpan_version}
b5f53c
%patch0 -p1
b5f53c
chmod -x examples/*
b5f53c
b5f53c
%build
b5f53c
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
b5f53c
make %{?_smp_mflags}
b5f53c
b5f53c
%install
b5f53c
make pure_install DESTDIR=$RPM_BUILD_ROOT
b5f53c
%{_fixperms} $RPM_BUILD_ROOT/*
b5f53c
b5f53c
%check
b5f53c
# Building core modules must not require non-core modules when bootstrapping
b5f53c
make test PERL_CORE=%{defined perl_bootstrap}
b5f53c
b5f53c
%files
b5f53c
%doc Changelog CONTRIBUTING.md examples README
b5f53c
%{perl_vendorlib}/*
b5f53c
%{_mandir}/man3/*
b5f53c
b5f53c
%changelog
b5f53c
* Mon Jul 09 2018 Petr Pisar <ppisar@redhat.com> - 0.30-1
b5f53c
- 0.30 bump
b5f53c
b5f53c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.29-2
b5f53c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b5f53c
b5f53c
* Mon Oct 16 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.29-1
b5f53c
- 0.29 bump
b5f53c
b5f53c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-395
b5f53c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b5f53c
b5f53c
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-394
b5f53c
- Perl 5.26 re-rebuild of bootstrapped packages
b5f53c
b5f53c
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-393
b5f53c
- Perl 5.26 rebuild
b5f53c
b5f53c
* Fri May 12 2017 Petr Pisar <ppisar@redhat.com> - 0.28-2
b5f53c
- Building core modules must not require non-core modules when bootstrapping
b5f53c
b5f53c
* Thu May 11 2017 Petr Pisar <ppisar@redhat.com> - 0.28-1
b5f53c
- Upgrade to 0.28 as provided in perl-5.25.12
b5f53c
b5f53c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-2
b5f53c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b5f53c
b5f53c
* Fri Aug 12 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-1
b5f53c
- 0.27 bump
b5f53c
b5f53c
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-2
b5f53c
- Perl 5.24 rebuild
b5f53c
b5f53c
* Wed May 11 2016 Petr Pisar <ppisar@redhat.com> - 0.26-1
b5f53c
- 0.26 bump
b5f53c
b5f53c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-2
b5f53c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b5f53c
b5f53c
* Wed Nov 18 2015 Petr Pisar <ppisar@redhat.com> - 0.25-1
b5f53c
- 0.25 bump
b5f53c
b5f53c
* Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> 0.24-348
b5f53c
- Specfile autogenerated by cpanspec 1.78.