Stephan Kulow
2011-04-14 08:35:10 +00:00
committed by Git OBS Bridge
commit 83bc8e4423
5 changed files with 115 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

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

View File

@@ -0,0 +1,6 @@
-------------------------------------------------------------------
Thu Apr 14 08:35:02 UTC 2011 - coolo@opensuse.org
- initial package 1.09
* created by cpanspec 1.78.04

View File

@@ -0,0 +1,82 @@
#
# spec file for package perl-File-Find-Closures (Version 1.09)
#
# 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
# 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-File-Find-Closures
Version: 1.09
Release: 1
License: GPL+ or Artistic
%define cpan_name File-Find-Closures
Summary: functions you can use with File::Find
Url: http://search.cpan.org/dist/File-Find-Closures/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
Requires: perl(File::Find)
%{perl_requires}
%description
I wrote this module as an example of both using closures and using
File::Find. Students are always asking me what closures are good for, and
here's some examples. The functions mostly stand alone (i.e. they don't
need the rest of the module), so rather than creating a dependency in your
code, just lift the parts you want).
When I use File::Find, I have two headaches---coming up with the \&wanted
function to pass to find(), and acculumating the files.
This module provides the \&wanted functions as a closures that I can pass
directly to find(). Actually, for each pre-made closure, I provide a
closure to access the list of files too, so I don't have to create a new
array to hold the results.
The filenames are the full path to the file as reported by File::Find.
Unless otherwise noted, the reporter closure returns a list of the
filenames in list context and an anonymous array that is a copy (not a
reference) of the original list. The filenames have been normalized by
File::Spec::canonfile unless otherwise noted. The list of files has been
processed by File::Spec::no_upwards so that "." and ".." (or their
equivalents) do not show up in the list.
%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
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc %attr(644,root,root,755) Changes LICENSE README examples
%changelog