perl-Path-Tiny/perl-Path-Tiny.spec
Stephan Kulow 6ffa2604bf Accepting request 1037660 from devel:languages:perl:autoupdate
- updated to 0.142
   see /usr/share/doc/packages/perl-Path-Tiny/Changes
  0.142     2022-11-09 07:06:36-05:00 America/New_York
      No changes from 0.141; all changes since last stable release are summarized below.
      [*** 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.
  0.141     2022-11-07 12:47:25-05:00 America/New_York (TRIAL RELEASE)
      [Testing]
      - Add additional tilde expansion tests
  0.139     2022-11-03 15:44:46-04:00 America/New_York (TRIAL RELEASE)
      [Testing]
      - Skip a problematic test case on cygwin
  0.137     2022-11-02 09:50:26-04:00 America/New_York (TRIAL RELEASE)
      [Testing]
      - Add additional tilde stringification testing.
  0.135     2022-11-01 22:27:21-04:00 America/New_York (TRIAL RELEASE)
      [Testing]
      - Fixed additional issues with tilde expansion tests on Windows for testers
        with lowercase drive letters in their userprofile.
  0.133     2022-10-31 23:55:01-04:00 America/New_York (TRIAL RELEASE)
      [Bug fixes]
      - 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.
      [Changes]
      - `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.
      [Testing]
      - Fixed tilde expansion tests on Windows.
  0.131     2022-10-31 10:42:46-04:00 America/New_York (TRIAL RELEASE)
      [*** DEPRECATIONS ***]
      - Tilde expansion is deprecated due to inconsistent and bug-prone behavior.
      [Bug fixes]
      - 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.
      - 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.
      [Changes]
      - 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.

OBS-URL: https://build.opensuse.org/request/show/1037660
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Path-Tiny?expand=0&rev=56
2022-11-24 16:40:46 +00:00

89 lines
3.1 KiB
RPMSpec

#
# spec file for package perl-Path-Tiny
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Path-Tiny
Name: perl-Path-Tiny
Version: 0.142
Release: 0
License: Apache-2.0
Summary: File path utility
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Digest::SHA) >= 5.45
BuildRequires: perl(File::Path) >= 2.070000
BuildRequires: perl(File::Temp) >= 0.19
BuildRequires: perl(Test::More) >= 0.96
Requires: perl(Digest::SHA) >= 5.45
Requires: perl(File::Path) >= 2.070000
Requires: perl(File::Temp) >= 0.19
Recommends: perl(Unicode::UTF8) >= 0.58
%{perl_requires}
%description
This module provides a small, fast utility for working with file paths. It
is friendlier to use than File::Spec and provides easy access to functions
from several other core file handling modules. It aims to be smaller and
faster than many alternatives on CPAN, while helping people do many common
things in consistent and less error-prone ways.
Path::Tiny does not try to work for anything except Unix-like and Win32
platforms. Even then, it might break if you try something particularly
obscure or tortuous. (Quick! What does this mean:
'///../../..//./././a//b/.././c/././'? And how does it differ on Win32?)
All paths are forced to have Unix-style forward slashes. Stringifying the
object gives you back the path (after some clean up).
File input/output methods 'flock' handles before reading or writing, as
appropriate (if supported by the platform and/or filesystem).
The '*_utf8' methods ('slurp_utf8', 'lines_utf8', etc.) operate in raw
mode. On Windows, that means they will not have CRLF translation from the
':crlf' IO layer. Installing Unicode::UTF8 0.58 or later will speed up
'*_utf8' situations in many cases and is highly recommended. Alternatively,
installing PerlIO::utf8_strict 0.003 or later will be used in place of the
default ':encoding(UTF-8)'.
This module depends heavily on PerlIO layers for correct operation and thus
requires Perl 5.008001 or later.
%prep
%autosetup -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTING.mkdn README
%license LICENSE
%changelog