import UBI perl-Getopt-Long-2.58-3.el10
This commit is contained in:
parent
f0c71a76fb
commit
8085e38806
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/Getopt-Long-2.51.tar.gz
|
Getopt-Long-2.58.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
c82316e543a3968ebc05635c6d6180bb9b1be382 SOURCES/Getopt-Long-2.51.tar.gz
|
|
@ -1,12 +1,13 @@
|
|||||||
Name: perl-Getopt-Long
|
Name: perl-Getopt-Long
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.51
|
Version: 2.58
|
||||||
Release: 1%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Extended processing of command line options
|
Summary: Extended processing of command line options
|
||||||
License: GPLv2+ or Artistic
|
License: GPL-2.0-or-later OR Artistic-1.0-Perl
|
||||||
URL: https://metacpan.org/release/Getopt-Long
|
URL: https://metacpan.org/release/Getopt-Long
|
||||||
Source0: https://cpan.metacpan.org/authors/id/J/JV/JV/Getopt-Long-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/J/JV/JV/Getopt-Long-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: coreutils
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
@ -14,15 +15,15 @@ BuildRequires: perl(Config)
|
|||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
BuildRequires: perl(lib)
|
BuildRequires: perl(lib)
|
||||||
# Run-time:
|
# Run-time:
|
||||||
|
BuildRequires: perl(base)
|
||||||
BuildRequires: perl(constant)
|
BuildRequires: perl(constant)
|
||||||
BuildRequires: perl(Exporter)
|
BuildRequires: perl(Exporter)
|
||||||
BuildRequires: perl(overload)
|
BuildRequires: perl(overload)
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(Text::ParseWords)
|
BuildRequires: perl(Text::ParseWords)
|
||||||
BuildRequires: perl(vars)
|
|
||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
# Tests
|
||||||
Requires: perl(overload)
|
BuildRequires: perl(Test::More)
|
||||||
Requires: perl(Text::ParseWords)
|
Requires: perl(Text::ParseWords)
|
||||||
# Recommended:
|
# Recommended:
|
||||||
Requires: perl(Pod::Usage) >= 1.14
|
Requires: perl(Pod::Usage) >= 1.14
|
||||||
@ -39,26 +40,128 @@ a double dash "--". Support for bundling of command line options, as was the
|
|||||||
case with the more traditional single-letter approach, is provided but not
|
case with the more traditional single-letter approach, is provided but not
|
||||||
enabled by default.
|
enabled by default.
|
||||||
|
|
||||||
|
%package tests
|
||||||
|
Summary: Tests for %{name}
|
||||||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Requires: perl-Test-Harness
|
||||||
|
Requires: perl(newgetopt.pl)
|
||||||
|
|
||||||
|
%description tests
|
||||||
|
Tests from %{name}. Execute them
|
||||||
|
with "%{_libexecdir}/%{name}/test".
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Getopt-Long-%{version}
|
%setup -q -n Getopt-Long-%{version}
|
||||||
|
|
||||||
|
# Help generators to recognize Perl scripts
|
||||||
|
for F in t/*.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_PACKLIST=1 NO_PERLLOCAL=1
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
%{make_build}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{make_install}
|
%{make_install}
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
%{_fixperms} %{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 . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||||
|
EOF
|
||||||
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc CHANGES examples README
|
%doc Changes examples README.md
|
||||||
%{perl_vendorlib}/*
|
%dir %{perl_vendorlib}/Getopt
|
||||||
%{_mandir}/man3/*
|
%{perl_vendorlib}/Getopt/Long*
|
||||||
|
%{perl_vendorlib}/newgetopt.pl*
|
||||||
|
%{_mandir}/man3/Getopt::Long*
|
||||||
|
|
||||||
|
%files tests
|
||||||
|
%{_libexecdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:2.58-3
|
||||||
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
|
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.58-2
|
||||||
|
- Perl 5.40 rebuild
|
||||||
|
|
||||||
|
* Wed Jul 17 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.58-1
|
||||||
|
- 2.58 bump
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:2.57-4
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.57-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.57-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 13 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.57-1
|
||||||
|
- 2.57 bump (rhbz#2249036)
|
||||||
|
|
||||||
|
* Thu Nov 09 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.55-1
|
||||||
|
- 2.55 bump (rhbz#2248884)
|
||||||
|
|
||||||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.54-500
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.54-499
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.54-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 21 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.54-1
|
||||||
|
- 2.54 bump
|
||||||
|
|
||||||
|
* Wed Nov 16 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.53-1
|
||||||
|
- 2.53 bump
|
||||||
|
- Package tests
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.52-489
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.52-488
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.52-479
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.52-478
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.52-477
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.52-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Aug 18 2020 Petr Pisar <ppisar@redhat.com> - 1:2.52-1
|
||||||
|
- 2.52 bump
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.51-457
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.51-456
|
||||||
|
- Increase release to favour standalone package
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.51-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
* Tue Aug 13 2019 Petr Pisar <ppisar@redhat.com> - 1:2.51-1
|
* Tue Aug 13 2019 Petr Pisar <ppisar@redhat.com> - 1:2.51-1
|
||||||
- 2.51 bump
|
- 2.51 bump
|
||||||
|
|
Loading…
Reference in New Issue
Block a user