Compare commits

...

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

9 changed files with 159 additions and 14 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

10
.gitignore vendored
View File

@ -1 +1,9 @@
SOURCES/File-Path-2.16.tar.gz /File-Path-2.09.tar.gz
/File-Path-2.11.tar.gz
/File-Path-2.12.tar.gz
/File-Path-2.13.tar.gz
/File-Path-2.14.tar.gz
/File-Path-2.15.tar.gz
/File-Path-2.16.tar.gz
/File-Path-2.17.tar.gz
/File-Path-2.18.tar.gz

View File

@ -1 +0,0 @@
7fc30660422cb0452297df85345f00d74da3f844 SOURCES/File-Path-2.16.tar.gz

18
gating.yaml Normal file
View File

@ -0,0 +1,18 @@
--- !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}

2
perl-File-Path.rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
from Config import *
addFilter("spelling-error .* subtree");

View File

@ -1,16 +1,16 @@
Name: perl-File-Path Name: perl-File-Path
Version: 2.16 Version: 2.18
Release: 439%{?dist} Release: 512%{?dist}
Summary: Create or remove directory trees Summary: Create or remove directory trees
License: GPL+ or Artistic License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/File-Path URL: https://metacpan.org/release/File-Path
Source0: https://cpan.metacpan.org/authors/id/J/JK/JKEENAN/File-Path-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/J/JK/JKEENAN/File-Path-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict) BuildRequires: perl(strict)
# Run-time: # Run-time:
@ -23,7 +23,6 @@ BuildRequires: perl(File::Spec)
BuildRequires: perl(vars) BuildRequires: perl(vars)
# Tests: # Tests:
BuildRequires: perl(base) BuildRequires: perl(base)
BuildRequires: perl(Config)
BuildRequires: perl(Errno) BuildRequires: perl(Errno)
BuildRequires: perl(Fcntl) BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(File::Spec::Functions)
@ -32,33 +31,134 @@ BuildRequires: perl(SelectSaver)
# Test::More version from Test::Simple in META # Test::More version from Test::Simple in META
BuildRequires: perl(Test::More) >= 0.44 BuildRequires: perl(Test::More) >= 0.44
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp) Requires: perl(Carp)
# Filter modules bundled for tests
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(FilePathTest\\)
%description %description
This module provides a convenient way to create directories of arbitrary This module provides a convenient way to create directories of arbitrary
depth and to delete an entire directory subtree from the file system. depth and to delete an entire directory subtree from the file system.
%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 File-Path-%{version} %setup -q -n File-Path-%{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 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT %{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/bash
set -e
# Some tests write into temporary files/directories.
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 %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
%doc Changes README %doc Changes README
%{perl_vendorlib}/* %{perl_vendorlib}/File*
%{_mandir}/man3/* %{_mandir}/man3/File::Path*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Mon Dec 08 2025 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-512
- Resolves: RHEL-132702 - Update tests for Image Mode
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.18-511
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-510
- Increase release to favour standalone package
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.18-504
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-503
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-502
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Nov 16 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-501
- Package tests
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-500
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-499
- Increase release to favour standalone package
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-489
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-488
- Increase release to favour standalone package
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-479
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-477
- Increase release to favour standalone package
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Nov 05 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.18-1
- 2.18 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 20 2020 Petr Pisar <ppisar@redhat.com> - 2.17-1
- 2.17 bump
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.16-456
- Increase release to favour standalone package
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.16-440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.16-439 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.16-439
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

5
plans/sanity.fmf Normal file
View File

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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (File-Path-2.18.tar.gz) = ca89ee13de6186555a747e21ba7556511e2eefa19d5bb12faddf1653015f5140cfc0d93355ef8c852769a9d51754fd80ad7978173bdea7fbc28b91d933f19c17

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

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