#1 0.52 bump; Package tests
Merged a year ago by jplesnik. Opened a year ago by jplesnik.
Unknown source rawhide  into  rawhide

file added
+1
@@ -0,0 +1,1 @@

+ 1

file modified
+1
@@ -3,3 +3,4 @@

  /PAR-Dist-0.49.tar.gz

  /PAR-Dist-0.50.tar.gz

  /PAR-Dist-0.51.tar.gz

+ /PAR-Dist-0.52.tar.gz

file added
+7
@@ -0,0 +1,7 @@

+ --- !Policy

+ product_versions:

+   - fedora-*

+ decision_context: bodhi_update_push_stable

+ subject_type: koji_build

+ rules:

+   - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

file modified
+45 -7
@@ -1,6 +1,6 @@

  Name:           perl-PAR-Dist

- Version:        0.51

- Release:        8%{?dist}

+ Version:        0.52

+ Release:        1%{?dist}

  Summary:        Toolkit for creating and manipulating Perl PAR distributions

  License:        GPL-1.0-or-later OR Artistic-1.0-Perl

  URL:            https://metacpan.org/release/PAR-Dist
@@ -33,9 +33,6 @@

  # Tests:

  BuildRequires:  perl(Test)

  BuildRequires:  perl(Test::More)

- # Optional tests:

- BuildRequires:  perl(Test::Pod) >= 1.00

- BuildRequires:  perl(Test::Pod::Coverage) >= 1.00

  Requires:       perl(Archive::Zip)

  Requires:       perl(Cwd)

  Requires:       perl(ExtUtils::Install)
@@ -55,19 +52,53 @@

  original CPAN distribution, and a MANIFEST detailing all files within it.

  Digitally signed PAR distributions will also contain a SIGNATURE file.

  

+ %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 PAR-Dist-%{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}

+ rm %{buildroot}%{_libexecdir}/%{name}/t/00pod*

+ cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'

+ #!/bin/bash

+ set -e

+ # Some tests write into temporary files/directories. The easiest solution

+ # is to copy the tests into a writable directory and execute them from there.

+ DIR=$(mktemp -d)

+ pushd "$DIR"

+ cp -a %{_libexecdir}/%{name}/* ./

+ prove -I . -j "$(getconf _NPROCESSORS_ONLN)"

+ popd

+ rm -rf "$DIR"

+ EOF

+ chmod +x %{buildroot}%{_libexecdir}/%{name}/test

  

  %check

- make test PERL_TEST_POD=1

+ unset PERL_TEST_POD

+ make test

  

  %files

  %license LICENSE
@@ -75,7 +106,14 @@

  %{perl_vendorlib}/*

  %{_mandir}/man3/*

  

+ %files tests

+ %{_libexecdir}/%{name}

+ 

  %changelog

+ * Thu May 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 0.52-1

+ - 0.52 bump

+ - Package tests

+ 

  * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.51-8

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

  

file added
+5
@@ -0,0 +1,5 @@

+ summary: Sanity tests

+ discover:

+     how: fmf

+ execute:

+     how: tmt

file modified
+1 -1
@@ -1,1 +1,1 @@

- SHA512 (PAR-Dist-0.51.tar.gz) = 4c06ff54dfa8f3dc4766b60c45337b3cf80b32ec6bcc49d7e5a4786e0533e495f6215b257100fa5aae50f12e01a8b3d7144254d8706019c50ff115915f0fcb41

+ SHA512 (PAR-Dist-0.52.tar.gz) = 46c79a3156bb66bcb8a63dfb53d67de01624bf1c5ca72c81ebb26820485b8144c13c4a9c6a4ad6475c328d2fbd10fa2d7889a2c89590cab7405fbe688b789864

@@ -0,0 +1,4 @@

+ summary: Upstream tests

+ component: perl-PAR-Dist

+ require: perl-PAR-Dist-tests

+ test: /usr/libexec/perl-PAR-Dist/test