import CS perl-perlfaq-5.20210520-1.el9

This commit is contained in:
eabdullin 2025-03-11 07:58:22 +00:00
parent 3aa66eddc0
commit 71f2b04a61
3 changed files with 42 additions and 8 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/perlfaq-5.20201107.tar.gz SOURCES/perlfaq-5.20210520.tar.gz

View File

@ -1 +1 @@
7ee7ddf809175caa1e23c4585957c43713bca0fa SOURCES/perlfaq-5.20201107.tar.gz 01ece949f4d9769a7239012fce45b7d04068d012 SOURCES/perlfaq-5.20210520.tar.gz

View File

@ -1,6 +1,6 @@
Name: perl-perlfaq Name: perl-perlfaq
Version: 5.20201107 Version: 5.20210520
Release: 4%{?dist} Release: 1%{?dist}
Summary: Frequently asked questions about Perl Summary: Frequently asked questions about Perl
# Code examples are Public Domain # Code examples are Public Domain
License: (GPL+ or Artistic) and Public Domain License: (GPL+ or Artistic) and Public Domain
@ -12,6 +12,7 @@ BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(:VERSION) >= 5.6
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
@ -21,34 +22,67 @@ BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle) BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3) BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Conflicts: perl < 4:5.22.0-347 Conflicts: perl < 4:5.22.0-347
%description %description
The perlfaq comprises several documents that answer the most commonly asked The perlfaq comprises several documents that answer the most commonly asked
questions about Perl and Perl programming. questions about Perl and Perl programming.
%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 perlfaq-%{version} %setup -q -n perlfaq-%{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
%license LICENSE %license LICENSE
%doc Changes README %doc Changes README
%{perl_vendorlib}/* %{perl_vendorlib}/perlfaq*
%{_mandir}/man3/* %{perl_vendorlib}/perlglossary*
%{_mandir}/man3/perlfaq*
%{_mandir}/man3/perlglossary*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Thu Nov 14 2024 Jitka Plesnikova <jplesnik@redhat.com> - 5.20210520-1
- Resolves: RHEL-5538 - 5.20210520 bump
- Package tests
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.20201107-4 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.20201107-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688