|
|
|
@ -1,19 +1,19 @@
|
|
|
|
|
# Run optional test
|
|
|
|
|
# Run extra tests
|
|
|
|
|
%if ! (0%{?rhel})
|
|
|
|
|
%bcond_without perl_List_MoreUtils_XS_enables_optional_test
|
|
|
|
|
%bcond_without perl_List_MoreUtils_XS_enables_extra_test
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with perl_List_MoreUtils_XS_enables_optional_test
|
|
|
|
|
%bcond_with perl_List_MoreUtils_XS_enables_extra_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: perl-List-MoreUtils-XS
|
|
|
|
|
Version: 0.430
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Release: 18%{?dist}
|
|
|
|
|
Summary: Provide compiled List::MoreUtils functions
|
|
|
|
|
# Code from List-MoreUtils < 0.417 is GPL+ or Artistic
|
|
|
|
|
# Anything after that is ASL 2.0
|
|
|
|
|
# Code from List-MoreUtils < 0.417 is GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
|
# Anything after that is Apache-2.0
|
|
|
|
|
# "git blame" on the upstream repo will probably be needed to
|
|
|
|
|
# determine the license of any particular chunk of code
|
|
|
|
|
License: (GPL+ or Artistic) and ASL 2.0
|
|
|
|
|
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Apache-2.0
|
|
|
|
|
URL: https://metacpan.org/release/List-MoreUtils-XS
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/List/List-MoreUtils-XS-%{version}.tar.gz
|
|
|
|
|
Patch0: List-MoreUtils-XS-0.430-unbundle.patch
|
|
|
|
@ -26,6 +26,7 @@ BuildRequires: perl-devel
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(Capture::Tiny)
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(Config::AutoConf) >= 0.315
|
|
|
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
|
|
|
|
# Module Runtime
|
|
|
|
@ -43,26 +44,46 @@ BuildRequires: perl(overload)
|
|
|
|
|
BuildRequires: perl(POSIX)
|
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
BuildRequires: perl(Test::Builder::Module)
|
|
|
|
|
%if %{with perl_List_MoreUtils_XS_enables_optional_test}
|
|
|
|
|
%if %{with perl_List_MoreUtils_XS_enables_extra_test}
|
|
|
|
|
BuildRequires: perl(Test::LeakTrace)
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
|
BuildRequires: perl(Tie::Array)
|
|
|
|
|
# Runtime
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
# Dependencies
|
|
|
|
|
# (none)
|
|
|
|
|
|
|
|
|
|
# Don't "provide" private Perl libs
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
|
# Remove private test modules
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Test::LMU\\)$
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module provides accelerated versions of functions in List::MoreUtils.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n List-MoreUtils-XS-%{version}
|
|
|
|
|
|
|
|
|
|
# Unbundle bundled modules except private inc::Config::AutoConf::LMU
|
|
|
|
|
%patch0
|
|
|
|
|
%patch -P 0
|
|
|
|
|
find inc/ -type f ! -name LMU.pm -print -delete
|
|
|
|
|
perl -i -ne 'print $_ unless m{^inc/} and not m{LMU\.pm}' MANIFEST
|
|
|
|
|
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/xs/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL \
|
|
|
|
@ -76,6 +97,14 @@ make %{?_smp_mflags}
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -empty -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
@ -87,16 +116,60 @@ make test
|
|
|
|
|
%{perl_vendorarch}/List/
|
|
|
|
|
%{_mandir}/man3/List::MoreUtils::XS.3*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.430-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.430-18
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.430-17
|
|
|
|
|
- Fix filters of dependencies
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 0.430-16
|
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 11 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.430-15
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.430-14
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.430-10
|
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Paul Howarth <paul@city-fan.org> - 0.430-9
|
|
|
|
|
- Disable extra test in RHEL builds (based on
|
|
|
|
|
https://src.fedoraproject.org/rpms/perl-List-MoreUtils-XS/pull-request/1)
|
|
|
|
|
- Silence build-time warnings about missing bundled modules
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.430-6
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.430-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 08 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.430-3
|
|
|
|
|
- Do not run optional test on RHEL (bug #1947387)
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.430-3
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|