2013-07-05 11:24:56 +00:00
|
|
|
%global pkgname File-Find-Object
|
|
|
|
|
|
|
|
Name: perl-File-Find-Object
|
2014-06-20 04:14:59 +00:00
|
|
|
Version: 0.2.11
|
2014-07-23 14:47:24 +00:00
|
|
|
Release: 2%{?dist}
|
2013-07-05 11:24:56 +00:00
|
|
|
Summary: Object oriented File::Find replacement
|
|
|
|
License: GPLv2+ or Artistic
|
|
|
|
URL: http://search.cpan.org/dist/File-Find-Object/
|
|
|
|
Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{pkgname}-v%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Class::XSAccessor)
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(List::Util)
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
#Tests only.
|
|
|
|
BuildRequires: perl(Test::CPAN::Changes)
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
BuildRequires: perl(Test::Pod)
|
2014-07-23 14:47:24 +00:00
|
|
|
%if !%{defined %perl_bootstrap}
|
|
|
|
# Break build-time dependency cycle: perl-File-Find-Object
|
|
|
|
# → perl-Test-TrailingSpace → perl-File-Find-Object-Rule
|
|
|
|
# → perl-File-Find-Object
|
2014-06-20 04:14:59 +00:00
|
|
|
BuildRequires: perl(Test::TrailingSpace)
|
2014-07-23 14:47:24 +00:00
|
|
|
%endif
|
2013-07-05 11:24:56 +00:00
|
|
|
Requires: perl(Class::XSAccessor)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn %{pkgname}-v%{version}
|
|
|
|
chmod 644 examples/tree
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build
|
|
|
|
|
|
|
|
%install
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changes README examples rejects scripts
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2014-07-23 14:47:24 +00:00
|
|
|
* Wed Jul 23 2014 Petr Pisar <ppisar@redhat.com> - 0.2.11-2
|
|
|
|
- Break dependency cycle perl-File-Find-Object → perl-Test-TrailingSpace →
|
|
|
|
perl-File-Find-Object-Rule
|
|
|
|
|
2014-06-20 04:14:59 +00:00
|
|
|
* Wed Jun 11 2014 Christopher Meng <rpm@cicku.me> - 0.2.11-1
|
|
|
|
- Update to 0.2.11
|
|
|
|
|
2014-06-07 04:12:21 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-03 20:46:05 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-21 02:32:04 +00:00
|
|
|
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.2.7-3
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-07-05 11:24:56 +00:00
|
|
|
* Wed Jul 03 2013 Christopher Meng <rpm@cicku.me> - 0.2.7-2
|
|
|
|
- Fix the license.
|
|
|
|
- Fix the files permissions.
|
|
|
|
- Fill up the BRs.
|
|
|
|
|
|
|
|
* Sun May 26 2013 Christopher Meng <rpm@cicku.me> - 0.2.7-1
|
|
|
|
- Initial Package.
|