|
|
@ -1,24 +1,25 @@
|
|
|
|
Name: perl-Params-Util
|
|
|
|
Name: perl-Params-Util
|
|
|
|
Version: 1.102
|
|
|
|
Version: 1.102
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 19%{?dist}
|
|
|
|
Summary: Simple standalone parameter-checking functions
|
|
|
|
Summary: Simple standalone parameter-checking functions
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
|
|
URL: https://metacpan.org/release/Params-Util
|
|
|
|
URL: https://metacpan.org/release/Params-Util
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/Params-Util-%{version}.tar.gz
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/Params-Util-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
Requires: perl(Scalar::Util) >= 1.18
|
|
|
|
Requires: perl(Scalar::Util) >= 1.18
|
|
|
|
Requires: perl(XSLoader) >= 0.22
|
|
|
|
Requires: perl(XSLoader) >= 0.22
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: %{__perl}
|
|
|
|
BuildRequires: %{__perl}
|
|
|
|
BuildRequires: %{__make}
|
|
|
|
BuildRequires: %{__make}
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl(Capture::Tiny)
|
|
|
|
BuildRequires: perl(Capture::Tiny)
|
|
|
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
BuildRequires: perl(Config::AutoConf)
|
|
|
|
BuildRequires: perl(Config::AutoConf)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
|
|
|
|
BuildRequires: perl(File::Spec) >= 0.82
|
|
|
|
BuildRequires: perl(File::Spec) >= 0.82
|
|
|
@ -41,23 +42,48 @@ BuildRequires: perl(File::Spec::Functions)
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Scalar::Util\\)$
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Scalar::Util\\)$
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XSLoader\\)$
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(XSLoader\\)$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove private test modules
|
|
|
|
|
|
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(A\\)$
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Params::Util provides a basic set of importable functions that
|
|
|
|
Params::Util provides a basic set of importable functions that
|
|
|
|
makes checking parameters a hell of a lot easier.
|
|
|
|
makes checking parameters a hell of a lot easier.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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 Params-Util-%{version}
|
|
|
|
%setup -q -n Params-Util-%{version}
|
|
|
|
rm -rf inc/latest* inc/inc_*
|
|
|
|
rm -rf inc/latest* inc/inc_*
|
|
|
|
|
|
|
|
# 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 OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%{make_build}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%{make_install}
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
# 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 AUTOMATED_TESTING=1
|
|
|
|
%{__make} test AUTOMATED_TESTING=1
|
|
|
@ -70,13 +96,59 @@ chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.102-5
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.102-19
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Related: rhbz#1991688
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.102-18
|
|
|
|
|
|
|
|
- Fix filters of dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 1.102-17
|
|
|
|
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 11 2024 Michal Josef Špaček <mspacek@redhat.com> - 1.102-16
|
|
|
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.102-15
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.102-14
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.102-13
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.102-12
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.102-11
|
|
|
|
|
|
|
|
- Perl 5.38 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.102-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 29 2022 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.102-9
|
|
|
|
|
|
|
|
- Modernize spec.
|
|
|
|
|
|
|
|
- Convert license to SPDX.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.102-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.102-7
|
|
|
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.102-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.102-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.102-4
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.102-4
|
|
|
|
- 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> - 1.102-3
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.102-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|