2013-07-30 07:43:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-Path-Tiny
|
|
|
|
#
|
2022-01-20 11:23:45 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-07-30 07:43:52 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-01-14 13:44:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-30 07:43:52 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-27 17:13:26 +01:00
|
|
|
%define cpan_name Path-Tiny
|
2013-07-30 07:43:52 +02:00
|
|
|
Name: perl-Path-Tiny
|
2022-01-20 11:23:45 +01:00
|
|
|
Version: 0.122
|
2013-07-30 07:43:52 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: File path utility
|
|
|
|
License: Apache-2.0
|
2020-07-28 15:48:48 +02:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-02-13 19:38:55 +01:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
2015-06-29 06:54:17 +02:00
|
|
|
Source1: cpanspec.yml
|
2013-07-30 07:43:52 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Digest::SHA) >= 5.45
|
2020-08-03 14:23:47 +02:00
|
|
|
BuildRequires: perl(File::Path) >= 2.070000
|
2013-10-08 17:50:59 +02:00
|
|
|
BuildRequires: perl(File::Temp) >= 0.19
|
2013-07-30 07:43:52 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
Requires: perl(Digest::SHA) >= 5.45
|
2020-08-03 14:23:47 +02:00
|
|
|
Requires: perl(File::Path) >= 2.070000
|
2015-04-14 07:41:40 +02:00
|
|
|
Requires: perl(File::Temp) >= 0.19
|
2013-07-30 07:43:52 +02:00
|
|
|
Recommends: perl(Unicode::UTF8) >= 0.58
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2015-11-19 19:06:47 +01:00
|
|
|
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.
|
2013-07-30 07:43:52 +02:00
|
|
|
|
2015-04-14 07:41:40 +02:00
|
|
|
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:
|
2013-07-30 07:43:52 +02:00
|
|
|
'///../../..//./././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
|
2018-07-16 08:43:27 +02:00
|
|
|
appropriate (if supported by the platform and/or filesystem).
|
2013-07-30 07:43:52 +02:00
|
|
|
|
2015-04-14 07:41:40 +02:00
|
|
|
The '*_utf8' methods ('slurp_utf8', 'lines_utf8', etc.) operate in raw
|
|
|
|
mode. On Windows, that means they will not have CRLF translation from the
|
2015-11-19 19:06:47 +01:00
|
|
|
':crlf' IO layer. Installing Unicode::UTF8 0.58 or later will speed up
|
2016-05-28 15:07:41 +02:00
|
|
|
'*_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)'.
|
2015-11-19 19:06:47 +01:00
|
|
|
|
|
|
|
This module depends heavily on PerlIO layers for correct operation and thus
|
|
|
|
requires Perl 5.008001 or later.
|
2013-07-30 07:43:52 +02:00
|
|
|
|
|
|
|
%prep
|
2021-01-27 17:13:26 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2013-07-30 07:43:52 +02:00
|
|
|
|
|
|
|
%build
|
2020-01-14 13:44:31 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-01-27 17:13:26 +01:00
|
|
|
%make_build
|
2013-07-30 07:43:52 +02:00
|
|
|
|
|
|
|
%check
|
2020-01-14 13:44:31 +01:00
|
|
|
make test
|
2013-07-30 07:43:52 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2017-02-13 19:38:55 +01:00
|
|
|
%doc Changes CONTRIBUTING.mkdn README
|
|
|
|
%license LICENSE
|
2013-07-30 07:43:52 +02:00
|
|
|
|
|
|
|
%changelog
|