Accepting request 839406 from devel:languages:perl:autoupdate

- updated to 6.07
   see /usr/share/doc/packages/perl-File-Listing/Changes

OBS-URL: https://build.opensuse.org/request/show/839406
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Listing?expand=0&rev=10
This commit is contained in:
Pedro Monreal Gonzalez 2020-10-04 19:14:55 +00:00 committed by Git OBS Bridge
parent daae482a60
commit 6f42b384e3
5 changed files with 54 additions and 46 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e0050fcd6789a2179ec0db282bf1e90fb92be35d1171588bd9c47d52d959cf5
size 51536

3
File-Listing-6.07.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b10f4f9889b42b2830effa2f54324dd90c31070e0b3946f90ccc5bf720726bad
size 61081

28
cpanspec.yml Normal file
View File

@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Oct 4 03:10:05 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 6.07
see /usr/share/doc/packages/perl-File-Listing/Changes
-------------------------------------------------------------------
Thu Feb 16 08:16:03 UTC 2012 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-File-Listing
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,69 +12,42 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-File-Listing
Version: 6.04
Version: 6.07
Release: 0
%define cpan_name File-Listing
Summary: parse directory listing
License: Artistic-1.0 or GPL-1.0+
Summary: Parse directory listing
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/File-Listing/
Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(HTTP::Date) >= 6
#BuildRequires: perl(File::Listing)
#BuildRequires: perl(LWP::Simple)
Requires: perl(HTTP::Date) >= 6
BuildRequires: perl(HTTP::Date) >= 6.00
Requires: perl(HTTP::Date) >= 6.00
%{perl_requires}
%description
This module exports a single function called parse_dir(), which can be used
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 is '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}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
%{__make} test
make test
%install
%perl_make_install
@ -83,6 +56,7 @@ letters 'f', 'd', 'l' or '?'. The $filetime value is the seconds since Jan
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%doc Changes Changes.original README
%license LICENSE
%changelog