diff --git a/Path-Class-0.16.tar.gz b/Path-Class-0.16.tar.gz deleted file mode 100644 index 497c0e6..0000000 --- a/Path-Class-0.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec9903c18a782e2d4245421e58f618fa0c6b1ec2ad6acdb823a84a54e4ec3a7e -size 17340 diff --git a/Path-Class-0.19.tar.bz2 b/Path-Class-0.19.tar.bz2 new file mode 100644 index 0000000..bb48e96 --- /dev/null +++ b/Path-Class-0.19.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f39641177c9a0a6245e2e9115eee37c70db820521e7c092d3179b68bdaee6de3 +size 18659 diff --git a/perl-Path-Class.changes b/perl-Path-Class.changes index 93aa227..5fd69b2 100644 --- a/perl-Path-Class.changes +++ b/perl-Path-Class.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Mon Aug 9 09:34:47 UTC 2010 - chris@computersalat.de + +- update to 0.19 + - slurp() now accepts an 'iolayers' option to control how the file is + opened. [Graham Barr] + - In the openr() and openw() file methods, we now croak() instead of + die() so that the error messages are more useful. [Ian Sillitoe] + - Allow subclassing, by adding dir_class() and file_class() static + methods, allowing them to be overridden. [Matt Trout & John LoVerso + & Michael Schwern] + - Fixed a testing failure that could occur whenever testing in a + directory path that contains symlinks (e.g. /tmp on Mac OS X). + - Added a 'no_hidden' parameter for children() [EDENC ] + - Fixed the heading for the is_relative() POD section. [CUB ] +- 0.18 - Sun Dec 20 10:11:02 CST 2009 + - Similar to the next() bug for files/directories named "0" or "0.0" + in the previous release, the children() and recurse() methods have + now been fixed in the same way. [spotted by ARTHAS, MSISK] +- 0.17 - Sun Jun 14 21:42:16 2009 + - dir(undef) now returns undef rather than the rootdir, because undef + was probably a mistake by the caller, and the rootdir is too scary + a default. [Suggested by John Goulah] + - Temporary files during testing are now created in the system temp + directory, rather than somewhere in t/ . See RT #31382. [Suggested + by Alex Page] + - Added is_relative() as the obvious complement to the existing + is_absolute() method. + - Added a resolve() method to clean up paths much more thoroughly + than cleanup(), e.g. resolving symlinks, collapsing foo/../bar + sections, etc. [Suggested by David Garamond] + - Fixed a problem in which a file/directory called "0" or "0.0" would + end a loop prematurely when using the idiom 'while($x = + $dir->next) {...}'. See http://rt.cpan.org/Ticket/Display.html?id=29374 + [Spotted by Daniel Lo] + - Fixed an exists($array[$i]) that prevented compatibility with perl + 5.005. + - Moved the repository from my personal CVS repo to Google Code. +- recreated by cpanspec 1.78 +- noarch pkg + ------------------------------------------------------------------- Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de diff --git a/perl-Path-Class.spec b/perl-Path-Class.spec index 43c2f81..6fb926e 100644 --- a/perl-Path-Class.spec +++ b/perl-Path-Class.spec @@ -1,5 +1,5 @@ # -# spec file for package perl-Path-Class (Version 0.16) +# spec file for package perl-Path-Class (Version 0.19) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -15,24 +15,46 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - +# norootforbuild Name: perl-Path-Class -Version: 0.16 -Release: 72 -%define modname Path-Class -# -License: Artistic ; GPLv2 +%define cpan_name Path-Class +Summary: Cross-platform path specification manipulation +Version: 0.19 +Release: 1 +License: GPL+ or Artistic Group: Development/Libraries/Perl -# +Url: http://search.cpan.org/dist/Path-Class/ +#Source: http://www.cpan.org/modules/by-module/Path/Path-Class-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl +BuildRequires: perl(Module::Build) +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +BuildRequires: perl(File::Temp) +BuildRequires: perl(Test::More) +# +BuildRequires: perl(Cwd) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec) >= 0.87 +BuildRequires: perl(File::Spec::Mac) >= 1.3 +BuildRequires: perl(File::stat) +BuildRequires: perl(IO::Dir) +BuildRequires: perl(IO::File) +BuildRequires: perl(overload) +# Requires: perl = %{perl_version} -# -Url: http://search.cpan.org/~kwilliams/ -Source: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Path-Class-0.16.tar.gz -# -Summary: Cross-platform path specification manipulation +Requires: perl(Cwd) +Requires: perl(File::Path) +Requires: perl(File::Spec) >= 0.87 +Requires: perl(File::Spec::Mac) >= 1.3 +Requires: perl(File::stat) +Requires: perl(IO::Dir) +Requires: perl(IO::File) +Requires: perl(overload) %description `Path::Class' is a module for manipulation of file and directory @@ -47,52 +69,39 @@ a way that won't actually work properly on platforms significantly different than the ones they've tested their code on. In fact, `Path::Class' uses `File::Spec' internally, wrapping all the -unsightly details so you can concentrate on your application code. +unsightly details so you can concentrate on your application code. Whereas `File::Spec' provides functions for some common path manipulations, `Path::Class' provides an object-oriented model of the -world of path specifications and their underlying semantics. +world of path specifications and their underlying semantics. `File::Spec' doesn't create any objects, and its classes represent the different ways in which paths must be manipulated on various platforms (not a very intuitive concept). `Path::Class' creates objects representing files and directories, and provides methods that relate them to each other. - - Authors: -------- Ken Williams %prep -%setup -q -n %{modname}-%{version} +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make %{?_smp_mflags} +%{__perl} Build.PL installdirs=vendor +./Build %check -make test +./Build test %install -%perl_make_install -%perl_process_packlist +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%perl_gen_filelist %clean -rm -rf %{buildroot} +%{__rm} -rf $RPM_BUILD_ROOT -%files -%defattr(-, root, root) -/var/adm/perl-modules/%{name} -%dir %{perl_vendorlib}/Path/ -%dir %{perl_vendorlib}/Path/Class/ -%{perl_vendorlib}/Path/Class.pm -%{perl_vendorlib}/Path/Class/Dir.pm -%{perl_vendorlib}/Path/Class/Entity.pm -%{perl_vendorlib}/Path/Class/File.pm -%dir %{perl_vendorarch}/auto/Path/ -%{perl_vendorarch}/auto/Path/Class/ -%{_mandir}/man3/Path::Class.3pm* -%{_mandir}/man3/Path::Class::Dir.3pm* -%{_mandir}/man3/Path::Class::File.3pm* +%files -f %{name}.files +%defattr(-,root,root,-) +%doc Changes README SIGNATURE %changelog