|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
%global cpan_version_major 0.42
|
|
|
|
|
%global cpan_version_minor 31
|
|
|
|
|
%global cpan_version_minor 34
|
|
|
|
|
%global cpan_version %{cpan_version_major}%{?cpan_version_minor}
|
|
|
|
|
|
|
|
|
|
# Run optional tests
|
|
|
|
@ -12,20 +12,18 @@
|
|
|
|
|
Name: perl-Module-Build
|
|
|
|
|
Epoch: 2
|
|
|
|
|
Version: %{cpan_version_major}%{?cpan_version_minor:.%cpan_version_minor}
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Summary: Build and install Perl modules
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
URL: https://metacpan.org/release/Module-Build
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-%{cpan_version}.tar.gz
|
|
|
|
|
# Do not require a compiler if c_source is an empty list, bug #1547165,
|
|
|
|
|
# CPAN RT#124625,
|
|
|
|
|
# <https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org/message/UWQ6SDRKNTX6SM6RBJ35CDBGRCV3ZSKP/>
|
|
|
|
|
Patch0: Module-Build-0.4224-Do-not-need-a-compiler-if-c_source-is-an-empty-list.patch
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Module/Module-Build-%{cpan_version}.tar.gz
|
|
|
|
|
# Handle missing ExtUtils::CBuilder as a missing compiler, bug #1547165.
|
|
|
|
|
Patch1: Module-Build-0.4231-Do-not-die-on-missing-ExtUtils-CBuilder-in-have_c_co.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Archive::Tar)
|
|
|
|
|
BuildRequires: perl(AutoSplit)
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
@ -83,7 +81,6 @@ BuildRequires: perl(utf8)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
BuildRequires: perl(version) >= 0.87
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(CPAN::Meta) >= 2.142060
|
|
|
|
|
Requires: perl(CPAN::Meta::Converter) >= 2.141170
|
|
|
|
|
Requires: perl(CPAN::Meta::Merge)
|
|
|
|
@ -124,6 +121,14 @@ Requires: perl(Pod::Text)
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((ExtUtils::Install|File::Spec|Module::Build|Module::Metadata|Perl::OSType)\\)$
|
|
|
|
|
%global __requires_exclude %__requires_exclude|^perl\\(CPAN::Meta::YAML\\) >= 0.002$
|
|
|
|
|
|
|
|
|
|
# Filter modules bundled for tests
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|^perl\\(DistGen\\)
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|^perl\\(MBTest\\)
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|^perl\\(Simple\\)
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|^perl\\(Software::License.*\\)
|
|
|
|
|
%global __requires_exclude %{__requires_exclude}|^perl\\(Tie::CPHash\\)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Module::Build is a system for building, testing, and installing Perl
|
|
|
|
|
modules. It is meant to be an alternative to ExtUtils::MakeMaker.
|
|
|
|
@ -135,17 +140,73 @@ so even platforms like MacOS (traditional) can use it fairly easily. Its
|
|
|
|
|
only prerequisites are modules that are included with perl 5.6.0, and it
|
|
|
|
|
works fine on perl 5.005 if you can install a few additional modules.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
# Optional tests:
|
|
|
|
|
%if !%{defined perl_bootstrap}
|
|
|
|
|
%if %{with perl_Module_Build_enables_optional_test}
|
|
|
|
|
Requires: perl(Archive::Zip)
|
|
|
|
|
Requires: perl(File::ShareDir) >= 1.00
|
|
|
|
|
Requires: perl(PAR::Dist)
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(TAP::Harness)
|
|
|
|
|
Requires: perl(TAP::Harness::Env)
|
|
|
|
|
Requires: perl(Text::ParseWords)
|
|
|
|
|
Requires: perl(version) >= 0.87
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Module-Build-%{cpan_version}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%autosetup -p1 -n Module-Build-%{cpan_version}
|
|
|
|
|
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in `find t -name *.t -o -name *.pl`; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Build.PL installdirs=vendor
|
|
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
|
./Build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t _build %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
perl -pi -e 's#%{buildroot}##' %{buildroot}%{_libexecdir}/%{name}/_build/runtime_params
|
|
|
|
|
rm %{buildroot}%{_libexecdir}/%{name}/_build/magicnum
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}/bin
|
|
|
|
|
ln -s %{_bindir}/config_data %{buildroot}%{_libexecdir}/%{name}/bin
|
|
|
|
|
# Requires copy of modules in test directory
|
|
|
|
|
rm %{buildroot}%{_libexecdir}/%{name}/t/00-compile.t
|
|
|
|
|
# Remove using of blib
|
|
|
|
|
for F in `find %{buildroot}%{_libexecdir}/%{name}/t -name *.t -o -name *.pm`; do
|
|
|
|
|
perl -pi -e "s/^\s*blib_load\('([^']+)'\);/use \1;/" $F
|
|
|
|
|
perl -pi -e "s/^blib_load '([^']+)';/use \1;/" $F
|
|
|
|
|
done
|
|
|
|
|
perl -pi -e "s{'-Mblib', }{'-I'.\\N{U+0024}tmp.'/Simple/blib/lib', '-I'.\\N{U+0024}tmp.'/Simple/blib/arch', }x" \
|
|
|
|
|
%{buildroot}%{_libexecdir}/%{name}/t/xs.t
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
|
|
|
|
# Some tests write into temporary files/directories. The easiest solution
|
|
|
|
|
# is to copy the tests into a writable directory and execute them from there.
|
|
|
|
|
DIR=$(mktemp -d)
|
|
|
|
|
pushd "$DIR"
|
|
|
|
|
cp -a %{_libexecdir}/%{name}/* ./
|
|
|
|
|
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
popd
|
|
|
|
|
rm -rf "$DIR"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
rm t/signature.t
|
|
|
|
@ -153,19 +214,70 @@ LANG=C TEST_SIGNATURE=1 MB_TEST_EXPERIMENTAL=1 ./Build test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes contrib README
|
|
|
|
|
%doc Changes contrib/ README
|
|
|
|
|
%{_bindir}/config_data
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%{perl_vendorlib}/Module/
|
|
|
|
|
%{_mandir}/man1/config_data.1*
|
|
|
|
|
%{_mandir}/man3/Module::Build*.3*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2:0.42.31-9
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2:0.42.34-7
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.34-6
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2:0.42.34-5
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.34-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.34-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.34-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 28 2023 Paul Howarth <paul@city-fan.org> - 2:0.42.34-1
|
|
|
|
|
- 0.4234 bump
|
|
|
|
|
- Use author-independent source URL
|
|
|
|
|
- Fix permissions verbosely
|
|
|
|
|
- Make %%files list more explicit
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.32-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Dec 16 2022 Jitka Plesnikova <jplesnik@redhat.com> -2:0.42.32-1
|
|
|
|
|
- 0.4232 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.31-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.31-14
|
|
|
|
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.31-13
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Mar 28 2022 Petr Pisar <ppisar@redhat.com> - 2:0.42.31-12
|
|
|
|
|
- Handle missing ExtUtils::CBuilder as a missing compiler (bug #1547165)
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.31-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.31-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.31-9
|
|
|
|
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2:0.42.31-8
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.31-8
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2:0.42.31-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|