3 %bcond_without tests # do not perform "make test"
7 Summary: File::Next - File-finding iterator
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 103bc329cd2b64ec270ac53a7dacb378
16 URL: http://search.cpan.org/dist/File-Next/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Test-Pod
21 BuildRequires: perl-Test-Pod-Coverage
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 File::Next is an iterator-based module for finding files. It's
28 lightweight, has no dependencies, runs under taint mode, and puts your
29 program more directly in control of file selection.
31 It's taken heavily from Mark Jason Dominus' excellent book "Higher
32 Order Perl" <http://hop.perl.plover.com/>.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc Changes README.md
58 %{perl_vendorlib}/File/Next.pm