#1 1.09 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
@@ -1,3 +1,4 @@

  File-Find-Rule-VCS-1.05.tar.gz

  /File-Find-Rule-VCS-1.07.tar.gz

  /File-Find-Rule-VCS-1.08.tar.gz

+ /File-Find-Rule-VCS-1.09.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
+49 -21
@@ -1,57 +1,85 @@

  Name:           perl-File-Find-Rule-VCS

- Version:        1.08

- Release:        35%{?dist}

+ Version:        1.09

+ Release:        1%{?dist}

  Summary:        Exclude files/directories for Version Control Systems

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

  URL:            https://metacpan.org/release/File-Find-Rule-VCS

- Source0:        https://cpan.metacpan.org/authors/id/A/AD/ADAMK/File-Find-Rule-VCS-%{version}.tar.gz

+ Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETHER/File-Find-Rule-VCS-%{version}.tar.gz

  BuildArch:      noarch

+ BuildRequires:  coreutils

  BuildRequires:  make

- BuildRequires:  perl-interpreter

  BuildRequires:  perl-generators

- BuildRequires:  perl(inc::Module::Install::DSL) >= 1.00

- BuildRequires:  perl(Module::Install::Metadata)

+ BuildRequires:  perl-interpreter

+ BuildRequires:  perl(:VERSION) >= 5.6

+ BuildRequires:  perl(Config)

+ BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76

+ BuildRequires:  perl(strict)

+ BuildRequires:  perl(warnings)

  # Run-time

  BuildRequires:  perl(Carp)

  BuildRequires:  perl(constant)

  BuildRequires:  perl(File::Find::Rule) >= 0.20

- BuildRequires:  perl(strict)

  BuildRequires:  perl(Text::Glob) >= 0.08

- BuildRequires:  perl(vars)

  # Tests

+ BuildRequires:  perl(File::Spec)

  BuildRequires:  perl(Test::More) >= 0.47

  

  %description

  Many tools need to be equally useful both on ordinary files, and on code

  that has been checked out from revision control systems.

  

+ %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 File-Find-Rule-VCS-%{version}

- 

- # Remove bundled libraries

- rm -r inc

- sed -i -e '/^inc\// d' MANIFEST

- find -type f -exec chmod -x {} +

+ # Help generators to recognize Perl scripts

+ for F in `find t -name *.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

- make %{?_smp_mflags}

+ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1

+ %{make_build}

  

  %install

- make pure_install DESTDIR=$RPM_BUILD_ROOT

- find $RPM_BUILD_ROOT -type f -name .packlist -delete

- %{_fixperms} $RPM_BUILD_ROOT/*

+ %{make_install}

+ %{_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/*

+ %doc Changes CONTRIBUTING README

+ %{perl_vendorlib}/File*

+ %{_mandir}/man3/File::Find::Rule::VCS*

+ 

+ %files tests

+ %{_libexecdir}/%{name}

  

  %changelog

+ * Tue May 02 2023 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-1

+ - 1.09 bump

+ - Package tests

+ 

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

  - 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 (File-Find-Rule-VCS-1.08.tar.gz) = e9ed73c4528022d49b71e5ccc1062e7a145d0fd30124fa3b009e244dd56404dd5415ba37ec4836d1f9ce6fabb22712727a8217a9714eb13b2a65249406368267

+ SHA512 (File-Find-Rule-VCS-1.09.tar.gz) = 1aef60b0ea7bb473b8ab266cddd0f5754703b61c2e98c5e387fb5fd4d0069068546bc4beefa139bb6e048988a4be8144648c50165d14358cb348bcf887b9973e

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

+ summary: Upstream tests

+ component: perl-File-Find-Rule-VCS

+ require: perl-File-Find-Rule-VCS-tests

+ test: /usr/libexec/perl-File-Find-Rule-VCS/test