f2f53a
%global cpan_version_major 0.42
f2f53a
%global cpan_version_minor 24
f2f53a
%global cpan_version %{cpan_version_major}%{?cpan_version_minor}
f2f53a
f2f53a
# Run optional tests
f2f53a
%if ! (0%{?rhel})
f2f53a
%bcond_without perl_Module_Build_enables_optional_test
f2f53a
%else
f2f53a
%bcond_with perl_Module_Build_enables_optional_test
f2f53a
%endif
f2f53a
f2f53a
Name:           perl-Module-Build
f2f53a
Epoch:          2
f2f53a
Version:        %{cpan_version_major}%{?cpan_version_minor:.%cpan_version_minor}
f2f53a
Release:        6%{?dist}
f2f53a
Summary:        Build and install Perl modules
f2f53a
License:        GPL+ or Artistic
f2f53a
URL:            http://search.cpan.org/dist/Module-Build/
f2f53a
Source0:        http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-%{cpan_version}.tar.gz
f2f53a
BuildArch:      noarch
f2f53a
BuildRequires:  coreutils
f2f53a
BuildRequires:  perl-interpreter
f2f53a
BuildRequires:  perl-devel
f2f53a
BuildRequires:  perl-generators
f2f53a
BuildRequires:  perl(Archive::Tar)
f2f53a
BuildRequires:  perl(AutoSplit)
f2f53a
BuildRequires:  perl(base)
f2f53a
BuildRequires:  perl(Carp)
f2f53a
BuildRequires:  perl(Config)
f2f53a
BuildRequires:  perl(CPAN::Meta) >= 2.142060
f2f53a
BuildRequires:  perl(CPAN::Meta::Converter) >= 2.141170
f2f53a
BuildRequires:  perl(CPAN::Meta::Merge)
f2f53a
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.003
f2f53a
BuildRequires:  perl(Cwd)
f2f53a
BuildRequires:  perl(Data::Dumper)
f2f53a
BuildRequires:  perl(DynaLoader)
f2f53a
BuildRequires:  perl(Exporter)
f2f53a
BuildRequires:  perl(ExtUtils::CBuilder) >= 0.27
f2f53a
BuildRequires:  perl(ExtUtils::Install) >= 0.3
f2f53a
BuildRequires:  perl(ExtUtils::Installed)
f2f53a
BuildRequires:  perl(ExtUtils::Manifest) >= 1.54
f2f53a
BuildRequires:  perl(ExtUtils::Mkbootstrap)
f2f53a
BuildRequires:  perl(ExtUtils::Packlist)
f2f53a
BuildRequires:  perl(ExtUtils::ParseXS) >= 2.21
f2f53a
BuildRequires:  perl(File::Basename)
f2f53a
BuildRequires:  perl(File::Compare)
f2f53a
BuildRequires:  perl(File::Copy)
f2f53a
BuildRequires:  perl(File::Find)
f2f53a
BuildRequires:  perl(File::Path)
f2f53a
BuildRequires:  perl(File::Spec) >= 0.82
f2f53a
BuildRequires:  perl(File::Spec::Functions)
f2f53a
BuildRequires:  perl(File::Temp) >= 0.15
f2f53a
BuildRequires:  perl(Getopt::Long)
f2f53a
BuildRequires:  perl(inc::latest)
f2f53a
BuildRequires:  perl(lib)
f2f53a
# perl(Module::Build) is loaded from ./lib
f2f53a
BuildRequires:  perl(Module::Metadata) >= 1.000002
f2f53a
BuildRequires:  perl(Parse::CPAN::Meta) >= 1.4401
f2f53a
BuildRequires:  perl(Perl::OSType) >= 1
f2f53a
BuildRequires:  perl(strict)
f2f53a
# Optional tests:
f2f53a
%if !%{defined perl_bootstrap}
f2f53a
%if %{with perl_Module_Build_enables_optional_test}
f2f53a
BuildRequires:  perl(Archive::Zip)
f2f53a
BuildRequires:  perl(File::ShareDir) >= 1.00
f2f53a
BuildRequires:  perl(PAR::Dist)
f2f53a
%if 0%{?fedora}  || 0%{?rhel} < 7
f2f53a
BuildRequires:  perl(Pod::Readme)
f2f53a
%endif
f2f53a
%endif
f2f53a
%endif
f2f53a
BuildRequires:  perl(TAP::Harness)
f2f53a
BuildRequires:  perl(TAP::Harness::Env)
f2f53a
BuildRequires:  perl(Test::Harness) >= 3.29
f2f53a
BuildRequires:  perl(Test::More) >= 0.49
f2f53a
BuildRequires:  perl(Text::ParseWords)
f2f53a
BuildRequires:  perl(utf8)
f2f53a
BuildRequires:  perl(vars)
f2f53a
BuildRequires:  perl(version) >= 0.87
f2f53a
BuildRequires:  perl(warnings)
f2f53a
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
f2f53a
Requires:       perl(CPAN::Meta) >= 2.142060
f2f53a
Requires:       perl(CPAN::Meta::Converter) >= 2.141170
f2f53a
Requires:       perl(CPAN::Meta::Merge)
f2f53a
Requires:       perl(ExtUtils::CBuilder) >= 0.27
f2f53a
Requires:       perl(ExtUtils::Install) >= 0.3
f2f53a
Requires:       perl(ExtUtils::Manifest) >= 1.54
f2f53a
Requires:       perl(ExtUtils::Mkbootstrap)
f2f53a
Requires:       perl(ExtUtils::ParseXS) >= 2.21
f2f53a
Requires:       perl(inc::latest)
f2f53a
Requires:       perl(Module::Metadata) >= 1.000002
f2f53a
# Keep PAR support optional (PAR::Dist)
f2f53a
Requires:       perl(Perl::OSType) >= 1
f2f53a
Requires:       perl(TAP::Harness::Env)
f2f53a
Requires:       perl(Test::Harness)
f2f53a
%if !%{defined perl_bootstrap}
f2f53a
# Optional run-time needed for Software::License license identifier,
f2f53a
# bug #1152319
f2f53a
Requires:       perl(Software::License)
f2f53a
%endif
f2f53a
# Optional run-time needed for generating documentation from POD:
f2f53a
Requires:       perl(Pod::Html)
f2f53a
Requires:       perl(Pod::Man) >= 2.17
f2f53a
Requires:       perl(Pod::Text)
f2f53a
# Run-time for generated Build scripts from Build.PLs:
f2f53a
# Those are already found by dependency generator. Just make sure they
f2f53a
# present.
f2f53a
# Cwd
f2f53a
# File::Basename
f2f53a
# File::Spec
f2f53a
# strict
f2f53a
f2f53a
%{?perl_default_filter}
f2f53a
# Remove under-specified dependencies
f2f53a
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((ExtUtils::Install|File::Spec|Module::Build|Module::Metadata|Perl::OSType)\\)$
f2f53a
%global __requires_exclude %__requires_exclude|^perl\\(CPAN::Meta::YAML\\) >= 0.002$
f2f53a
f2f53a
%description
f2f53a
Module::Build is a system for building, testing, and installing Perl
f2f53a
modules. It is meant to be an alternative to ExtUtils::MakeMaker.
f2f53a
Developers may alter the behavior of the module through sub-classing in a
f2f53a
much more straightforward way than with MakeMaker. It also does not require
f2f53a
a make on your system - most of the Module::Build code is pure-perl and
f2f53a
written in a very cross-platform way. In fact, you don't even need a shell,
f2f53a
so even platforms like MacOS (traditional) can use it fairly easily. Its
f2f53a
only prerequisites are modules that are included with perl 5.6.0, and it
f2f53a
works fine on perl 5.005 if you can install a few additional modules.
f2f53a
f2f53a
%prep
f2f53a
%setup -q -n Module-Build-%{cpan_version}
f2f53a
f2f53a
%build
f2f53a
perl Build.PL installdirs=vendor
f2f53a
./Build
f2f53a
f2f53a
%install
f2f53a
./Build install destdir=%{buildroot} create_packlist=0
f2f53a
%{_fixperms} %{buildroot}/*
f2f53a
f2f53a
%check
f2f53a
rm t/signature.t
f2f53a
LANG=C TEST_SIGNATURE=1 MB_TEST_EXPERIMENTAL=1 ./Build test
f2f53a
f2f53a
%files
f2f53a
%license LICENSE
f2f53a
%doc Changes contrib README
f2f53a
%{_bindir}/config_data
f2f53a
%{perl_vendorlib}/*
f2f53a
%{_mandir}/man1/*
f2f53a
%{_mandir}/man3/*
f2f53a
f2f53a
%changelog
f2f53a
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.24-6
f2f53a
- Rebuild with enable hardening (bug #1636329)
f2f53a
f2f53a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.24-5
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f2f53a
f2f53a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.24-4
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f2f53a
f2f53a
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.24-3
f2f53a
- Perl 5.26 re-rebuild of bootstrapped packages
f2f53a
f2f53a
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.24-2
f2f53a
- Perl 5.26 rebuild
f2f53a
f2f53a
* Wed May 31 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.24-1
f2f53a
- 0.4224 bump
f2f53a
f2f53a
* Fri Mar 31 2017 Petr Pisar <ppisar@redhat.com> - 2:0.42.22-1
f2f53a
- 0.4222 bump
f2f53a
f2f53a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.20-2
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f2f53a
f2f53a
* Mon Aug 29 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.20-1
f2f53a
- 0.4220 bump
f2f53a
f2f53a
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.18-3
f2f53a
- Perl 5.24 re-rebuild of bootstrapped packages
f2f53a
f2f53a
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.18-2
f2f53a
- Perl 5.24 rebuild
f2f53a
f2f53a
* Tue Apr 26 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.18-1
f2f53a
- 0.4218 bump
f2f53a
f2f53a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.16-2
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f2f53a
f2f53a
* Wed Jan 20 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.16-1
f2f53a
- 0.4216 bump
f2f53a
f2f53a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.42.14-2
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f2f53a
f2f53a
* Fri Jun 12 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.14-1
f2f53a
- 0.4214 bump
f2f53a
f2f53a
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.12-3
f2f53a
- Perl 5.22 re-rebuild of bootstrapped packages
f2f53a
f2f53a
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.12-2
f2f53a
- Perl 5.22 rebuild
f2f53a
f2f53a
* Mon May 18 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.12-1
f2f53a
- 0.4212 bump
f2f53a
f2f53a
* Fri Jan 30 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.11-1
f2f53a
- 0.4211 bump
f2f53a
f2f53a
* Fri Jan 30 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.10-4
f2f53a
- Sub-package perl-inc-latest
f2f53a
f2f53a
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 2:0.42.10-3
f2f53a
- Disable File::ShareDir optional tests when bootstrapping
f2f53a
f2f53a
* Wed Oct 15 2014 Petr Pisar <ppisar@redhat.com> - 2:0.42.10-2
f2f53a
- Require Software::License to recognize more license identifiers (bug #1152319)
f2f53a
f2f53a
* Wed Sep 10 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.10-1
f2f53a
- 0.4210 bump
f2f53a
f2f53a
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.08-3
f2f53a
- Perl 5.20 re-rebuild of bootstrapped packages
f2f53a
f2f53a
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.08-2
f2f53a
- Perl 5.20 rebuild
f2f53a
f2f53a
* Tue Aug 19 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.42.08-1
f2f53a
- 0.4208 bump
f2f53a
f2f53a
* Wed Jul 16 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.42.06-1
f2f53a
- 0.4206 bump
f2f53a
f2f53a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.42.05-2
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f2f53a
f2f53a
* Thu Feb 13 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.05-1
f2f53a
- 0.4205 bump
f2f53a
f2f53a
* Wed Jan 15 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.04-1
f2f53a
- 0.4204 bump
f2f53a
f2f53a
* Thu Nov 28 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.03-1
f2f53a
- 0.4203 bump
f2f53a
f2f53a
* Mon Nov 25 2013 Petr Pisar <ppisar@redhat.com> - 2:0.42.02-1
f2f53a
- 0.4202 bump
f2f53a
f2f53a
* Tue Nov 19 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.01-1
f2f53a
- 0.4201 bump
f2f53a
f2f53a
* Tue Nov 05 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.40.08-1
f2f53a
- 0.4008 bump
f2f53a
f2f53a
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.40.07-3
f2f53a
- Perl 5.18 re-rebuild of bootstrapped packages
f2f53a
f2f53a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.40.07-2
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f2f53a
f2f53a
* Fri Jul 26 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.40.05-1
f2f53a
- 0.4007 bump
f2f53a
f2f53a
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2:0.40.05-2
f2f53a
- Perl 5.18 rebuild
f2f53a
f2f53a
* Mon Apr 29 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.40.05-1
f2f53a
- 0.4005 bump
f2f53a
f2f53a
* Wed Apr 03 2013 Petr Šabata <contyk@redhat.com> - 2:0.40.04-1
f2f53a
- 0.4004 bump
f2f53a
f2f53a
* Tue Jan 29 2013 Petr Pisar <ppisar@redhat.com> - 2:0.40.03-5
f2f53a
- Run-require POD convertors to get manual pages when building other packages
f2f53a
f2f53a
* Mon Dec 10 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40.03-4
f2f53a
- YAML::Tiny is not needed at build time (bug #885146)
f2f53a
f2f53a
* Wed Nov 21 2012 Petr Šabata <contyk@redhat.com> - 2:0.40.03-3
f2f53a
- Add a few missing deps
f2f53a
- Drop command macros
f2f53a
f2f53a
* Mon Sep 03 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40.03-2
f2f53a
- Do not build-require Module::Build (bug #849328)
f2f53a
f2f53a
* Mon Aug 20 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40.03-1
f2f53a
- 0.4003 bump
f2f53a
f2f53a
* Mon Jul 30 2012 Jitka Plesnikova <jplesnik@redhat.com>  2:0.40.02-1
f2f53a
- 0.4002 bump
f2f53a
f2f53a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:0.40.01-4
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f2f53a
f2f53a
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40.01-3
f2f53a
- Perl 5.16 re-rebuild of bootstrapped packages
f2f53a
f2f53a
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40.01-2
f2f53a
- Perl 5.16 rebuild
f2f53a
f2f53a
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40.01-1
f2f53a
- 0.4001 bump
f2f53a
f2f53a
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40-3
f2f53a
- Perl 5.16 rebuild
f2f53a
f2f53a
* Mon Jun 04 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40-2
f2f53a
- Do not run PAR tests on bootstrap
f2f53a
f2f53a
* Thu May 31 2012 Petr Pisar <ppisar@redhat.com> - 2:0.40-1
f2f53a
- 0.40 bump
f2f53a
- All reverse dependecies must require use 2-digit Module::Build version now
f2f53a
f2f53a
* Wed May 30 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1:0.3800-5
f2f53a
- conditionalize some test
f2f53a
f2f53a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.3800-4
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f2f53a
f2f53a
* Mon Jun 27 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:0.3800-3
f2f53a
- BR on perl-devel because this package contains macros used by rpmbuild
f2f53a
  for Perl packages
f2f53a
f2f53a
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:0.3800-2
f2f53a
- rebuild with Perl 5.14.1, remove defatter
f2f53a
f2f53a
* Wed Mar 16 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:0.3800-1
f2f53a
- update to 0.3800
f2f53a
f2f53a
* Wed Mar 02 2011 Petr Pisar <ppisar@redhat.com> - 1:0.3624-2
f2f53a
- Raise epoch to  Core level
f2f53a
- Remove BuildRoot stuff
f2f53a
f2f53a
* Mon Feb 28 2011 Marcela Mašláňová <mmaslano@redhat.com> 0.3624-1
f2f53a
- update to new version
f2f53a
- fix BR, R
f2f53a
f2f53a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3607-4
f2f53a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f2f53a
f2f53a
* Mon Aug 30 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.3607-3
f2f53a
- switch off experimental test
f2f53a
f2f53a
* Tue Jun  8 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.3607-2
f2f53a
- copy check part&upload key from Paul Howarth
f2f53a
- fix macro
f2f53a
f2f53a
* Mon May 31 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.3607-1
f2f53a
- add BR, update, switch on some other tests
f2f53a
f2f53a
* Tue Mar 09 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.3603-1
f2f53a
- Specfile autogenerated by cpanspec 1.78.