Compare commits

...

No commits in common. "c8s" and "c10s" have entirely different histories.
c8s ... c10s

7 changed files with 243 additions and 14 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

3
.gitignore vendored
View File

@ -1,2 +1 @@
SOURCES/Path-Tiny-0.104.tar.gz
/Path-Tiny-0.104.tar.gz
/Path-Tiny-[0-9.]*.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
# RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -6,43 +6,45 @@
%endif
Name: perl-Path-Tiny
Version: 0.104
Release: 5%{?dist}
Version: 0.144
Release: 9%{?dist}
Summary: File path utility
License: ASL 2.0
URL: http://search.cpan.org/dist/Path-Tiny/
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Path-Tiny-%{version}.tar.gz
License: Apache-2.0
URL: https://metacpan.org/release/Path-Tiny
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Path-Tiny-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(constant)
BuildRequires: perl(Cwd)
BuildRequires: perl(Digest) >= 1.03
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Digest::SHA) >= 5.45
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Compare)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Glob)
BuildRequires: perl(File::Path) >= 2.07
BuildRequires: perl(File::Spec) >= 0.86
BuildRequires: perl(File::stat)
BuildRequires: perl(File::Temp) >= 0.19
BuildRequires: perl(if)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(threads)
BuildRequires: perl(warnings)
BuildRequires: perl(warnings::register)
# Test Suite
BuildRequires: perl(blib)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Spec::Unix)
@ -58,23 +60,32 @@ BuildRequires: perl(Test::FailWarnings)
BuildRequires: perl(Test::MockRandom)
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Cwd)
Requires: perl(Digest) >= 1.03
Requires: perl(Digest::MD5)
Requires: perl(Digest::SHA) >= 5.45
Requires: perl(Encode)
Requires: perl(Fcntl)
Requires: perl(File::Compare)
Requires: perl(File::Copy)
Requires: perl(File::Glob)
Requires: perl(File::Path) >= 2.07
Requires: perl(File::stat)
Requires: perl(File::Temp) >= 0.18
Requires: perl(threads)
Requires: perl(warnings::register)
# For performance and consistency
%if !(0%{?rhel})
BuildRequires: perl(PerlIO::utf8_strict) >= 0.003
Requires: perl(PerlIO::utf8_strict) >= 0.003
%endif
BuildRequires: perl(Unicode::UTF8) >= 0.58
Requires: perl(Unicode::UTF8) >= 0.58
# Remove private test modules
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(TestUtils\\)$
%description
This module attempts to provide a small, fast utility for working with file
paths. It is friendlier to use than File::Spec and provides easy access to
@ -93,8 +104,22 @@ appropriate.
The *_utf8 methods (slurp_utf8, lines_utf8, etc.) operate in raw mode without
CRLF translation.
%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 Path-Tiny-%{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
@ -104,6 +129,14 @@ make %{?_smp_mflags}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{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
make test
@ -114,7 +147,179 @@ make test
%{perl_vendorlib}/Path/
%{_mandir}/man3/Path::Tiny.3*
%files tests
%{_libexecdir}/%{name}
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.144-9
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 0.144-8
- Fix filters of dependencies
* Wed Jul 17 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.144-7
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.144-6
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.144-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.144-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.144-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.144-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Dec 2 2022 Paul Howarth <paul@city-fan.org> - 0.144-1
- Update to 0.144
- Fixed tilde expansion tests where ~root expands to '/'
* Wed Nov 9 2022 Paul Howarth <paul@city-fan.org> - 0.142-1
- Update to 0.142
Deprecations
- Tilde expansion is deprecated due to inconsistent and bug-prone behavior
Bug fixes
- Prevent expansion of tildes that are not the very first character (e.g.
"./~foo")
- Prevent unintentional tilde expansion during internal path processing
- Escape non-tilde glob characters before tilde expansion
- Fixed spew/edit to a long filename approaching the filesystem length limit
- Internal calls to 'print' are checked for possible errors
- Internal read calls are checked for errors
Changes
- Path stringification now adds "./" in front of paths starting with literal
tilde so they will round-trip; FREEZE updated to use this stringification
rule as well
- 'move' now uses File::Copy::move internally instead of the built-in
'rename', allowing it to work across filesystems; it also returns an object
for the moved location, allowing chaining
- edit_lines_raw now uses a buffered raw I/O layer
- edit_lines_utf8 now prefers PerlIO::utf8_strict, if available
- lines_utf8 now consistently uses a buffered I/O layer
- open*_utf8 now prefers PerlIO::utf8_strict, if available
- slurp_utf8 now consistently uses an unbuffered I/O layer
Documented
- Changed all raw/UTF-8 layer descriptions in method documentation to match
the code
- Fixed SYNOPSIS syntax
- Documented how to disable TMPDIR when making temp files/dirs
Testing
- Add additional tilde stringification testing
- Fixed tilde expansion tests on Windows
- Skip a problematic test case on Cygwin
* Thu Oct 20 2022 Paul Howarth <paul@city-fan.org> - 0.130-1
- Update to 0.130
- The 'mkdir' method no longer fails when applied to an existing directory
* Thu Oct 20 2022 Paul Howarth <paul@city-fan.org> - 0.128-1
- Update to 0.128
- Added 'mkdir' to replace 'mkpath', but returning the path object for
chaining
- The 'mkpath' method is deprecated in favor of 'mkdir'
- Added 'has_same_bytes' to efficiently compare the contents of two files
- Edited SYNOPSIS in the POD
* Fri Sep 2 2022 Paul Howarth <paul@city-fan.org> - 0.124-1
- Update to 0.124
- Added link to 'touchpath' in the 'mkpath' docs
- Fixed example in `tempfile' docs
- Use SPDX-format license tag
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.122-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.122-3
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.122-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Jan 17 2022 Paul Howarth <paul@city-fan.org> - 0.122-1
- Update to 0.122
- Adds 'size' and 'size_human' methods; the latter gives 'ls -lh' style
output, with options to choose base2 or base10 forms
* Mon Oct 25 2021 Paul Howarth <paul@city-fan.org> - 0.120-1
- Update to 0.120
- The 'tempdir' and 'tempfile' methods may be called on a Path::Tiny object
representing a directory, in which case the directory will be used as the
container for the temporary object (as if the 'DIR' argument were used)
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.118-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jun 23 2021 Michal Josef Spacek <mspacek@redhat.com> - 0.118-3
- Remove runtime dependency for Digest::MD5
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.118-2
- Perl 5.34 rebuild
* Fri Feb 5 2021 Paul Howarth <paul@city-fan.org> - 0.118-1
- Update to 0.118
- Skip symlink tests on Windows by actually testing symlinks, as Perl 5.33.5
adds notional support but it's not possible without elevated privileges
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.116-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Jan 23 2021 Paul Howarth <paul@city-fan.org> - 0.116-1
- Update to 0.116
- Fix tests on MSYS without symlinks enabled
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.114-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.114-2
- Perl 5.32 rebuild
* Sun Apr 26 2020 Paul Howarth <paul@city-fan.org> - 0.114-1
- Update to 0.114
- Use \z instead of $ in regular expressions
* Wed Jan 29 2020 Paul Howarth <paul@city-fan.org> - 0.112-1
- Update to 0.112
- Another test fix on Windows, possibly due to a behavior change in
Cwd::getdcwd
* Tue Jan 14 2020 Paul Howarth <paul@city-fan.org> - 0.110-1
- Update to 0.110
- Fixes tests on Windows, particularly with newer File::Spec
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.108-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.108-3
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.108-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Aug 1 2018 Paul Howarth <paul@city-fan.org> - 0.108-1
- Update to 0.108
- Fixed a bug where failure to load optional modules would trigger an
external $SIG{__DIE__} handler
* Mon Jul 16 2018 Paul Howarth <paul@city-fan.org> - 0.106-1
- Update to 0.106
- The PERL_PATH_TINY_NO_FLOCK environment variable has been added to allow
users to disable file locking (and any associated warnings)
- Detection of unsupported 'flock' is no longer BSD-specific; this allows
detecting and warning, for example, with the Luster filesystem on Linux
- Improve reliability and diagnostics of tests run via 'do'
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.104-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.104-6
- Perl 5.28 rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.104-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

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 (Path-Tiny-0.104.tar.gz) = 6574e48645ebb4f61d45c1365e8b63cfaac6423394ba08363cfd62d3d98d163bd333d997bf5f7fd0e37ff94fcb3a3e19871eb7499b295399f048fd6a4bd3c78c
SHA512 (Path-Tiny-0.144.tar.gz) = a6360ff3c81dac6026a7610b4934a415db04060a7792e37d38eec6f7b46970eeb42840da25fc0b4eab21eaa7b5f011c6d92ba5382dcea49e57e4fc693c4620d5

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

@ -0,0 +1,12 @@
summary: Upstream tests
contact: Michal Josef Spacek <mspacek@redhat.com>
component: perl-Path-Tiny
require: perl-Path-Tiny-tests
test: /usr/libexec/perl-Path-Tiny/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-10 or distro < centos-stream-10
continue: false