From a1abf40bec0329322ea0c09f0e0d72eeea8cacabb080c969ee0e1cd546a3cc3f Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 31 Mar 2011 12:22:01 +0000 Subject: [PATCH] Accepting request 65644 from devel:languages:perl Accepted submit request 65644 from user coolo OBS-URL: https://build.opensuse.org/request/show/65644 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-File-Listing?expand=0&rev=3 --- File-Listing-6.01.tar.gz | 3 --- File-Listing-6.02.tar.gz | 3 +++ perl-File-Listing.changes | 7 +++++++ perl-File-Listing.spec | 40 +++++++++++++++++++++++++++++++-------- 4 files changed, 42 insertions(+), 11 deletions(-) delete mode 100644 File-Listing-6.01.tar.gz create mode 100644 File-Listing-6.02.tar.gz diff --git a/File-Listing-6.01.tar.gz b/File-Listing-6.01.tar.gz deleted file mode 100644 index 54f5ff0..0000000 --- a/File-Listing-6.01.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc6d797be0b008f53fd8b02b930dd6edaca73b013358a2460d320d8516ec893f -size 6419 diff --git a/File-Listing-6.02.tar.gz b/File-Listing-6.02.tar.gz new file mode 100644 index 0000000..fc1361a --- /dev/null +++ b/File-Listing-6.02.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10d74be7373c1719363876c146f1f1730264585e74b6ddb7b7cb36cbc7b1ed19 +size 24234 diff --git a/perl-File-Listing.changes b/perl-File-Listing.changes index b144af7..b08cc45 100644 --- a/perl-File-Listing.changes +++ b/perl-File-Listing.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Mar 31 09:38:19 UTC 2011 - coolo@novell.com + +- update to 6.02 + Avoid running live test. Embed the expected test data in the test file. + Update the test data inline by invoking 'perl t/apache.t --update'. + ------------------------------------------------------------------- Mon Mar 14 13:01:01 UTC 2011 - vcizek@novell.com diff --git a/perl-File-Listing.spec b/perl-File-Listing.spec index 5b15cff..0635413 100644 --- a/perl-File-Listing.spec +++ b/perl-File-Listing.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-File-Listing +# spec file for package perl-File-Listing (Version 6.02) # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 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 @@ -15,10 +15,8 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - - Name: perl-File-Listing -Version: 6.01 +Version: 6.02 Release: 1 License: GPL+ or Artistic %define cpan_name File-Listing @@ -27,18 +25,44 @@ Url: http://search.cpan.org/dist/File-Listing/ Group: Development/Libraries/Perl #Source: http://www.cpan.org/authors/id/G/GA/GAAS/File-Listing-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.gz -BuildRequires: perl(HTTP::Date) >= 6 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(HTTP::Date) >= 6 Requires: perl(HTTP::Date) >= 6 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %{perl_requires} %description This module exports a single function called parse_dir(), which can be used to parse directory listings. +The first parameter to parse_dir() is the directory listing to parse. It +can be a scalar, a reference to an array of directory lines or a glob +representing a filehandle to read the directory listing from. + +The second parameter is the time zone to use when parsing time stamps in +the listing. If this value is undefined, then the local time zone is +assumed. + +The third parameter is the type of listing to assume. Currently supported +formats are 'unix', 'apache' and 'dosftp'. The default value 'unix'. +Ideally, the listing type should be determined automatically. + +The fourth parameter specifies how unparseable lines should be treated. +Values can be 'ignore', 'warn' or a code reference. Warn means that the +perl warn() function will be called. If a code reference is passed, then +this routine will be called and the return value from it will be +incorporated in the listing. The default is 'ignore'. + +Only the first parameter is mandatory. + +The return value from parse_dir() is a list of directory entries. In a +scalar context the return value is a reference to the list. The directory +entries are represented by an array consisting of [ $filename, $filetype, +$filesize, $filetime, $filemode ]. The $filetype value is one of the +letters 'f', 'd', 'l' or '?'. The $filetime value is the seconds since Jan +1, 1970. The $filemode is a bitmask like the mode returned by stat(). %prep %setup -q -n %{cpan_name}-%{version}