Compare commits

...

No commits in common. "c8-stream-5.3" and "c9-beta" have entirely different histories.

3 changed files with 70 additions and 7 deletions

2
.gitignore vendored
View File

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

View File

@ -1 +1 @@
0c5021ad4a71737ab5deda9684df3aa3d5435a26 SOURCES/perlfaq-5.20191102.tar.gz
01ece949f4d9769a7239012fce45b7d04068d012 SOURCES/perlfaq-5.20210520.tar.gz

View File

@ -1,5 +1,5 @@
Name: perl-perlfaq
Version: 5.20191102
Version: 5.20210520
Release: 1%{?dist}
Summary: Frequently asked questions about Perl
# Code examples are Public Domain
@ -7,10 +7,12 @@ License: (GPL+ or Artistic) and Public Domain
URL: https://metacpan.org/release/perlfaq
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/perlfaq-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.6
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
@ -20,34 +22,95 @@ BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Conflicts: perl < 4:5.22.0-347
%description
The perlfaq comprises several documents that answer the most commonly asked
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
%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
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%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
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{perl_vendorlib}/perlfaq*
%{perl_vendorlib}/perlglossary*
%{_mandir}/man3/perlfaq*
%{_mandir}/man3/perlglossary*
%files tests
%{_libexecdir}/%{name}
%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
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.20201107-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.20201107-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 09 2020 Jitka Plesnikova <jplesnik@redhat.com> - 5.20201107-1
- 5.20201107 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.20200523-457
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 5.20200523-456
- Increase release to favour standalone package
* Fri May 22 2020 Petr Pisar <ppisar@redhat.com> - 5.20200523-1
- 5.20200523 bump
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.20200125-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Jan 27 2020 Petr Pisar <ppisar@redhat.com> - 5.20200125-1
- 5.20200125 bump
* Mon Nov 04 2019 Petr Pisar <ppisar@redhat.com> - 5.20191102-1
- 5.20191102 bump