2013-07-30 07:43:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-Path-Tiny
|
|
|
|
#
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Path-Tiny
|
2013-12-09 14:37:46 +01:00
|
|
|
Version: 0.047
|
2013-07-30 07:43:52 +02:00
|
|
|
Release: 0
|
|
|
|
%define cpan_name Path-Tiny
|
|
|
|
Summary: File path utility
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Path-Tiny/
|
|
|
|
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Digest::SHA) >= 5.45
|
|
|
|
BuildRequires: perl(File::Path) >= 2.07
|
|
|
|
BuildRequires: perl(File::Spec) >= 3.40
|
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
|
2013-10-08 17:50:59 +02:00
|
|
|
#BuildRequires: perl(Path::Class)
|
|
|
|
#BuildRequires: perl(Path::Tiny)
|
|
|
|
#BuildRequires: perl(Pod::Wordlist)
|
|
|
|
#BuildRequires: perl(Test::FailWarnings)
|
|
|
|
#BuildRequires: perl(Test::Spelling) >= 0.12
|
|
|
|
#BuildRequires: perl(TestUtils)
|
|
|
|
#BuildRequires: perl(Unicode::UTF8) >= 0.58
|
2013-07-30 07:43:52 +02:00
|
|
|
Requires: perl(Digest::SHA) >= 5.45
|
|
|
|
Requires: perl(File::Path) >= 2.07
|
|
|
|
Requires: perl(File::Spec) >= 3.40
|
|
|
|
Requires: perl(File::Temp) >= 0.18
|
|
|
|
Recommends: perl(Unicode::UTF8) >= 0.58
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module attempts to provide a small, fast utility for working with file
|
|
|
|
paths. It is friendlier to use than the File::Spec manpage and provides
|
|
|
|
easy access to functions from several other core file handling modules.
|
|
|
|
|
|
|
|
It doesn't attempt to be as full-featured as the IO::All manpage or the
|
|
|
|
Path::Class manpage, nor does it 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.
|
|
|
|
|
|
|
|
The '*_utf8' methods ('slurp_utf8', 'lines_utf8', etc.) operate in raw mode
|
|
|
|
without CRLF translation. Installing the Unicode::UTF8 manpage 0.58 or
|
|
|
|
later will speed up several of them and is highly recommended.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2013-10-08 17:50:59 +02:00
|
|
|
%doc Changes CONTRIBUTING cpanfile LICENSE perlcritic.rc README tidyall.ini
|
2013-07-30 07:43:52 +02:00
|
|
|
|
|
|
|
%changelog
|