2017-05-11 07:05:05 +00:00
|
|
|
%global cpan_version 0.27
|
2015-07-10 09:20:22 +00:00
|
|
|
Name: perl-Config-Perl-V
|
2017-05-11 07:05:05 +00:00
|
|
|
Version: 0.28
|
|
|
|
Release: 1%{?dist}
|
2015-07-10 09:20:22 +00:00
|
|
|
Summary: Structured data retrieval of perl -V output
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: http://search.cpan.org/dist/Config-Perl-V/
|
2017-05-11 07:05:05 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/H/HM/HMBRAND/Config-Perl-V-%{cpan_version}.tgz
|
|
|
|
# Unbundled from perl-5.25.12
|
|
|
|
Patch0: Config-Perl-V-0.27-Upgrade-to-0.28.patch
|
2015-07-10 09:20:22 +00:00
|
|
|
# Correct example
|
2017-05-11 07:05:05 +00:00
|
|
|
Patch1: Config-Perl-V-0.24-Remove-invalid-shellbang.patch
|
2015-07-10 09:20:22 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl
|
2016-05-11 08:40:44 +00:00
|
|
|
BuildRequires: perl-generators
|
2017-05-11 07:05:05 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
2015-07-10 09:20:22 +00:00
|
|
|
BuildRequires: perl(strict)
|
|
|
|
# Run-time:
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Optional run-time:
|
|
|
|
# Digest::MD5 not used at tests
|
|
|
|
# Tests:
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
2017-05-11 07:05:05 +00:00
|
|
|
Suggests: perl(Digest::MD5)
|
2015-07-10 09:20:22 +00:00
|
|
|
Conflicts: perl < 4:5.22.0-347
|
|
|
|
|
|
|
|
%description
|
|
|
|
The command "perl -V" will return you an excerpt from the %%Config::Config
|
|
|
|
hash combined with the output of "perl -V" that is not stored inside the hash,
|
|
|
|
but only available to the perl binary itself. This package provides Perl
|
|
|
|
module that will return you the output of "perl -V" in a structure.
|
|
|
|
|
|
|
|
%prep
|
2017-05-11 07:05:05 +00:00
|
|
|
%setup -q -n Config-Perl-V-%{cpan_version}
|
2015-07-10 09:20:22 +00:00
|
|
|
%patch0 -p1
|
2017-05-11 07:05:05 +00:00
|
|
|
%patch1 -p1
|
2015-07-10 09:20:22 +00:00
|
|
|
chmod -x examples/*
|
|
|
|
|
|
|
|
%build
|
2017-05-11 07:05:05 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
2015-07-10 09:20:22 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
2015-11-18 15:28:29 +00:00
|
|
|
%doc Changelog CONTRIBUTING.md examples README
|
2015-07-10 09:20:22 +00:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2017-05-11 07:05:05 +00:00
|
|
|
* Thu May 11 2017 Petr Pisar <ppisar@redhat.com> - 0.28-1
|
|
|
|
- Upgrade to 0.28 as provided in perl-5.25.12
|
|
|
|
|
2017-02-11 02:14:29 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-08-12 11:47:11 +00:00
|
|
|
* Fri Aug 12 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-1
|
|
|
|
- 0.27 bump
|
|
|
|
|
2016-05-14 12:08:19 +00:00
|
|
|
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-2
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-05-11 08:40:44 +00:00
|
|
|
* Wed May 11 2016 Petr Pisar <ppisar@redhat.com> - 0.26-1
|
|
|
|
- 0.26 bump
|
|
|
|
|
2016-02-04 12:52:05 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-18 15:28:29 +00:00
|
|
|
* Wed Nov 18 2015 Petr Pisar <ppisar@redhat.com> - 0.25-1
|
|
|
|
- 0.25 bump
|
|
|
|
|
2015-07-10 09:24:27 +00:00
|
|
|
* Wed Jul 01 2015 Petr Pisar <ppisar@redhat.com> 0.24-348
|
2015-07-10 09:20:22 +00:00
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|