Resolves: RHEL-5538 - 5.20210520 bump

5.20210520 2021-05-20 04:16:03Z

    faq5: remove suggestion to use read() for slurping (PR#96, Dan Book)

5.20210411 2021-04-11 00:45:30Z

    Add entry to faq4 for equivalent to ruby #{}, python fstring
    (PR#93, John Karr)

Package tests and update gating
This commit is contained in:
Jitka Plesnikova 2024-11-14 13:11:14 +01:00
parent 143172031f
commit f8ab0c8ece
7 changed files with 78 additions and 7 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

@ -8,3 +8,4 @@
/perlfaq-5.20200125.tar.gz /perlfaq-5.20200125.tar.gz
/perlfaq-5.20200523.tar.gz /perlfaq-5.20200523.tar.gz
/perlfaq-5.20201107.tar.gz /perlfaq-5.20201107.tar.gz
/perlfaq-5.20210520.tar.gz

19
gating.yaml Normal file
View File

@ -0,0 +1,19 @@
# Fedora
--- !Policy
id: fedora_policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_testing
- bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
# RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

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

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

View File

@ -1 +1 @@
SHA512 (perlfaq-5.20201107.tar.gz) = 05cb71fd81fb88ea7f04c36d9d9f19759947e47141be729e24633e2a799256686aa1be276227965b988511b2f384bb03f5c489e9000e6880100c2cd6d08ffb38 SHA512 (perlfaq-5.20210520.tar.gz) = cbd97e8bfcd30d7dd15d70ec85397953c546435aeb9ca34bcaa9e96f580282acded8c77aa91fe04c2fed66bd43214caf7df96568fad6daac9303db1e990acefb

11
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,11 @@
summary: Upstream tests
component: perl-perlfaq
require: perl-perlfaq-tests
test: /usr/libexec/perl-perlfaq/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-9 or distro < centos-stream-9
continue: false