From b917559a5862e2efa6fae61b00c5b9c770d4c0525eef537de55bcc75d124b0b7 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 30 Jul 2013 05:43:52 +0000 Subject: [PATCH] initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Path-Tiny?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + Path-Tiny-0.027.tar.gz | 3 ++ perl-Path-Tiny.changes | 6 +++ perl-Path-Tiny.spec | 97 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Path-Tiny-0.027.tar.gz create mode 100644 perl-Path-Tiny.changes create mode 100644 perl-Path-Tiny.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Path-Tiny-0.027.tar.gz b/Path-Tiny-0.027.tar.gz new file mode 100644 index 0000000..e2e21c6 --- /dev/null +++ b/Path-Tiny-0.027.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d1d66d162346c2b0dbe1eb6cb472fb28e0b11b006f9b031c341112a3efada7e +size 40573 diff --git a/perl-Path-Tiny.changes b/perl-Path-Tiny.changes new file mode 100644 index 0000000..1e47de2 --- /dev/null +++ b/perl-Path-Tiny.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Tue Jul 30 05:43:48 UTC 2013 - coolo@suse.com + +- initial package 0.027 + * created by cpanspec 1.78.06 + diff --git a/perl-Path-Tiny.spec b/perl-Path-Tiny.spec new file mode 100644 index 0000000..3a1662a --- /dev/null +++ b/perl-Path-Tiny.spec @@ -0,0 +1,97 @@ +# +# 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 +Version: 0.027 +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(Devel::Hide) +BuildRequires: perl(Digest::SHA) >= 5.45 +BuildRequires: perl(File::Path) >= 2.07 +BuildRequires: perl(File::Spec) >= 3.40 +BuildRequires: perl(File::Temp) >= 0.18 +BuildRequires: perl(File::pushd) +BuildRequires: perl(Test::Deep) +BuildRequires: perl(Test::FailWarnings) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(autodie::exception) >= 2.14 +#BuildRequires: perl(Path::Class) +#BuildRequires: perl(Path::Tiny) +#BuildRequires: perl(Unicode::UTF8) >= 0.58 +Requires: perl(Digest::SHA) >= 5.45 +Requires: perl(File::Path) >= 2.07 +Requires: perl(File::Spec) >= 3.40 +Requires: perl(File::Temp) >= 0.18 +Requires: perl(autodie::exception) >= 2.14 +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. + +It uses the autodie manpage internally, so most failures will be thrown as +exceptions. + +%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) +%doc Changes CONTRIBUTING LICENSE perlcritic.rc README tidyall.ini + +%changelog