8
0
Files
perl-File-Find-Object/perl-File-Find-Object.spec
Dirk Stoecker 295dc8bde9 Accepting request 640565 from devel:languages:perl:autoupdate
- Fix autogenerated changes
- updated to 0.3.2
   see /usr/share/doc/packages/perl-File-Find-Object/Changes
  0.3.2   2017-01-13
      - Made the version number consistent across the .pm files.
          - https://bitbucket.org/shlomif/perl-file-find-object/issues/1/wrong-version-number
          - Thanks to aer0 for the report.
  
  0.3.1   2017-01-09
      - Fixed an issue with tracking the depth of the inodes when detecting
      a symlink loop.
          - Detected by several cygwin reports.
  
  0.3.0   2016-09-11
      - Converted the build system to Dist-Zilla.
          - Part of the impetus was removing the warning about
          Test::TrailingSpace needed for the trailing whitespace tests
          (which in turn requires this modules) which was reported to us as a
          problem by someone (despite not being a real issue).
- initial package 0.2.13

OBS-URL: https://build.opensuse.org/request/show/640565
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Find-Object?expand=0&rev=2
2018-10-08 09:37:36 +00:00

73 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-File-Find-Object
#
# Copyright (c) 2018 SUSE LINUX 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 https://bugs.opensuse.org/
#
Name: perl-File-Find-Object
Version: 0.3.2
Release: 0
%define cpan_name File-Find-Object
Summary: An object oriented File::Find replacement
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/File-Find-Object/
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-v%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Module::Build) >= 0.280000
BuildRequires: perl(parent)
Requires: perl(Class::XSAccessor)
Requires: perl(parent)
%{perl_requires}
%description
File::Find::Object does the same job as File::Find but works like an object
and with an iterator. As File::Find is not object oriented, one cannot
perform multiple searches in the same application. The second problem of
File::Find is its file processing: after starting its main loop, one cannot
easily wait for another event and so get the next result.
With File::Find::Object you can get the next file by calling the next()
function, but setting a callback is still possible.
%prep
%setup -q -n %{cpan_name}-v%{version}
#delete backup files
rm *~ */*~
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples README scripts
%license LICENSE
%changelog