Compare commits

...

No commits in common. 'c9' and 'i10c-beta' have entirely different histories.

@ -1,8 +1,10 @@
Name: perl-List-MoreUtils Name: perl-List-MoreUtils
Version: 0.430 Version: 0.430
Release: 4%{?dist} Release: 14%{?dist}
Summary: Provide the stuff missing in List::Util Summary: Provide the stuff missing in List::Util
License: (GPL+ or Artistic) and ASL 2.0 # All code present in version 0.416: GPL-1.0-or-later OR Artistic-1.0-Perl
# All new code from version 0.417 onwards: Apache-2.0
License: (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Apache-2.0
URL: https://metacpan.org/release/List-MoreUtils URL: https://metacpan.org/release/List-MoreUtils
Source0: https://cpan.metacpan.org/modules/by-module/List/List-MoreUtils-%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/List/List-MoreUtils-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
@ -47,17 +49,34 @@ BuildRequires: perl(Tie::Array)
%if ! ( 0%{?rhel} ) %if ! ( 0%{?rhel} )
BuildRequires: perl(Test::LeakTrace) BuildRequires: perl(Test::LeakTrace)
%endif %endif
# Runtime # Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp) Requires: perl(Carp)
Requires: perl(List::MoreUtils::XS) >= 0.430 Requires: perl(List::MoreUtils::XS) >= 0.430
# 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 %description
List::MoreUtils provides some trivial but commonly needed functionality List::MoreUtils provides some trivial but commonly needed functionality
on lists that is not going to go into List::Util. on lists that is not going to go into List::Util.
%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 %prep
%setup -q -n List-MoreUtils-%{version} %setup -q -n List-MoreUtils-%{version}
# Help generators to recognize Perl scripts
for F in $(find t/ -name '*.t'); do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
@ -66,29 +85,68 @@ make %{?_smp_mflags}
%install %install
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
%{_fixperms} -c %{buildroot} %{_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 %check
make test make test
%files %files
%if 0%{?_licensedir:1}
%license ARTISTIC-1.0 GPL-1 LICENSE %license ARTISTIC-1.0 GPL-1 LICENSE
%else
%doc ARTISTIC-1.0 GPL-1 LICENSE
%endif
%doc Changes README.md %doc Changes README.md
%{perl_vendorlib}/List/ %{perl_vendorlib}/List/
%{_mandir}/man3/List::MoreUtils.3* %{_mandir}/man3/List::MoreUtils.3*
%{_mandir}/man3/List::MoreUtils::Contributing.3* %{_mandir}/man3/List::MoreUtils::Contributing.3*
%{_mandir}/man3/List::MoreUtils::PP.3* %{_mandir}/man3/List::MoreUtils::PP.3*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.430-4 * Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.430-14
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for MSVSphere 10
Related: rhbz#1991688
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.430-14
- Fix filters of dependencies
* Tue Jul 30 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.430-13
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.430-12
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* 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
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.430-3 * Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.430-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-2 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.430-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save