[perl-Path-Tiny] Initial import (perl-Path-Tiny-0.031-2)

Paul Howarth pghmcfc at fedoraproject.org
Tue Sep 3 15:42:43 UTC 2013


commit 8628d0c22b71fee7070cea36bcd7d0df43d4414b
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Sep 3 16:36:32 2013 +0100

    Initial import (perl-Path-Tiny-0.031-2)
    
    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
    functions from several other core file handling modules.
    
    It doesn't attempt to be as full-featured as IO::All or Path::Class, 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.
    
    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.
    
    It uses autodie internally, so most failures will be thrown as exceptions.

 .gitignore          |    1 +
 perl-Path-Tiny.spec |  107 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..42075dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Path-Tiny-[0-9.]*.tar.gz
diff --git a/perl-Path-Tiny.spec b/perl-Path-Tiny.spec
new file mode 100644
index 0000000..b0e25fc
--- /dev/null
+++ b/perl-Path-Tiny.spec
@@ -0,0 +1,107 @@
+Name:		perl-Path-Tiny
+Version:	0.031
+Release:	2%{?dist}
+Summary:	File path utility
+Group:		Development/Libraries
+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
+BuildArch:	noarch
+# Module Build
+BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.30
+# Module Runtime
+BuildRequires:	perl(autodie::exception) >= 2.14
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(constant)
+BuildRequires:	perl(Cwd)
+BuildRequires:	perl(Digest) >= 1.03
+BuildRequires:	perl(Digest::MD5)
+BuildRequires:	perl(Digest::SHA) >= 5.45
+BuildRequires:	perl(Exporter) >= 5.57
+BuildRequires:	perl(Fcntl)
+BuildRequires:	perl(File::Copy)
+BuildRequires:	perl(File::Path) >= 2.07
+BuildRequires:	perl(File::Spec) >= 3.40
+BuildRequires:	perl(File::stat)
+BuildRequires:	perl(File::Temp) >= 0.18
+BuildRequires:	perl(overload)
+BuildRequires:	perl(strict)
+BuildRequires:	perl(threads)
+BuildRequires:	perl(warnings)
+# Test Suite
+BuildRequires:	perl(blib)
+BuildRequires:	perl(Capture::Tiny)
+BuildRequires:	perl(Devel::Hide)
+BuildRequires:	perl(File::Basename)
+BuildRequires:	perl(File::pushd)
+BuildRequires:	perl(File::Spec::Functions)
+BuildRequires:	perl(File::Spec::Unix)
+BuildRequires:	perl(List::Util)
+BuildRequires:	perl(open)
+BuildRequires:	perl(Test::Deep)
+BuildRequires:	perl(Test::FailWarnings)
+BuildRequires:	perl(Test::Fatal)
+BuildRequires:	perl(Test::More) >= 0.96
+# 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(Fcntl)
+Requires:	perl(File::Copy)
+Requires:	perl(File::Path) >= 2.07
+Requires:	perl(File::stat)
+Requires:	perl(File::Temp) >= 0.18
+Requires:	perl(threads)
+
+# For performance and consistency
+BuildRequires:	perl(Unicode::UTF8) >= 0.58
+Requires:	perl(Unicode::UTF8) >= 0.58
+
+%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
+functions from several other core file handling modules.
+
+It doesn't attempt to be as full-featured as IO::All or Path::Class, 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.
+
+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.
+
+It uses autodie internally, so most failures will be thrown as exceptions.
+
+%prep
+%setup -q -n Path-Tiny-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%files
+%doc Changes CONTRIBUTING LICENSE README
+%{perl_vendorlib}/Path/
+%{_mandir}/man3/Path::Tiny.3pm*
+
+%changelog
+* Mon Sep  2 2013 Paul Howarth <paul at city-fan.org> - 0.031-2
+- Sanitize for Fedora submission
+
+* Mon Sep  2 2013 Paul Howarth <paul at city-fan.org> - 0.031-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..2e242ac 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+520141e371439d4467232f87f2f1681b  Path-Tiny-0.031.tar.gz


More information about the scm-commits mailing list