forked from pool/perl-File-Path-Tiny
Accepting request 104640 from devel:languages:perl
- regenerate with cpanspec OBS-URL: https://build.opensuse.org/request/show/104640 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-File-Path-Tiny?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 13 10:51:59 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
|
- regenerate with cpanspec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 30 07:21:44 CET 2011 - pascal.bleser@opensuse.org
|
Fri Sep 30 07:21:44 CET 2011 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-File-Path-Tiny
|
# spec file for package perl-File-Path-Tiny
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,57 +16,86 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-File-Path-Tiny
|
Name: perl-File-Path-Tiny
|
||||||
Version: 0.1
|
Version: 0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Recursive mkdir and rmdir
|
%define cpan_name File-Path-Tiny
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/File-Path-Tiny-%{version}.tar.gz
|
Summary: recursive versions of mkdir() and rmdir() without as much overhead as Fi[cut]
|
||||||
Url: http://search.cpan.org/dist/File-Path-Tiny
|
License: GPL-1.0+ or Artistic-1.0
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
Url: http://search.cpan.org/dist/File-Path-Tiny/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: http://www.cpan.org/authors/id/D/DM/DMUEY/%{cpan_name}-%{version}.tar.gz
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl-macros
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
||||||
BuildRequires: perl(Test::More)
|
|
||||||
%if 0%{?suse_version} >= 1120
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The goal here is simply to provide recursive versions of mkdir() and
|
The goal here is simply to provide recursive versions of the mkdir
|
||||||
rmdir() with as little code and overhead as possible.
|
manpage() and the rmdir manpage() with as little code and overhead as
|
||||||
This module is in no way meant to derogate File::Path and is in no way an
|
possible.
|
||||||
endorsement to go out and replace all use of File::Path with
|
|
||||||
File::Path::Tiny.
|
This module is in no way meant to derogate the File::Path manpage and is in
|
||||||
|
no way an endorsement to go out and replace all use of the File::Path
|
||||||
|
manpage with the File::Path::Tiny manpage.
|
||||||
|
|
||||||
|
the File::Path manpage is very good at what it does but there's simply a
|
||||||
|
lot happening that we can do without much of the time.
|
||||||
|
|
||||||
|
Here are some things the File::Path manpage has/does that this module
|
||||||
|
attempts to do without:
|
||||||
|
|
||||||
|
* * multiple interfaces
|
||||||
|
|
||||||
|
Backwards compatibility brings in a lot of code and logic that we don't
|
||||||
|
need from here on out.
|
||||||
|
|
||||||
|
* * chdir's
|
||||||
|
|
||||||
|
It does a ton of chdir's which could leave you somewhere you're not
|
||||||
|
planning on being and requires much more overhead to do.
|
||||||
|
|
||||||
|
* * can croak not allowing you to detect and handle failure
|
||||||
|
|
||||||
|
Just let me handle errors how I want. Don't make my entire app die or
|
||||||
|
have to wrap it in an eval
|
||||||
|
|
||||||
|
* * A well intentioned output system
|
||||||
|
|
||||||
|
Just let me do the output how I want. (Nothing, As HTML, print to a
|
||||||
|
filehandle, etc...)
|
||||||
|
|
||||||
|
* * A well intentioned and experimental (IE subject to change) error
|
||||||
|
handling system.
|
||||||
|
|
||||||
|
Just keep it simple and detect failure via a boolean check and do what I
|
||||||
|
want with the error. See the /"How can I make/remove multiple paths?"
|
||||||
|
manpage
|
||||||
|
|
||||||
|
* * According to its POD, removing a tree is apparently not safe unless you
|
||||||
|
tell it to be with the 'safe' or 'keep_root' attributes.
|
||||||
|
|
||||||
|
Seems like that should just happen, I don't want to worry about
|
||||||
|
accidentally removing / when I pass it /tmp
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "File-Path-Tiny-%{version}"
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%__make %{?_smp_flags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%check
|
%files -f %{name}.files
|
||||||
%__make test
|
%defattr(-,root,root,755)
|
||||||
|
|
||||||
%clean
|
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%dir %{perl_vendorlib}/File
|
|
||||||
%dir %{perl_vendorlib}/File/Path
|
|
||||||
%{perl_vendorlib}/File/Path/Tiny.pm
|
|
||||||
%doc %{perl_vendorlib}/File/Path/Tiny.pod
|
|
||||||
%doc %{perl_man3dir}/File::Path::Tiny.%{perl_man3ext}%{ext_man}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user