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