3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: File::Next - File-finding iterator
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 8d901b18e40c477acd18a6ea0fd7de64
17 URL: http://search.cpan.org/dist/File-Next/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Pod
22 BuildRequires: perl-Test-Pod-Coverage
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 File::Next is an iterator-based module for finding files. It's
29 lightweight, has no dependencies, runs under taint mode, and puts your
30 program more directly in control of file selection.
32 It's taken heavily from Mark Jason Dominus' excellent book "Higher
33 Order Perl" <http://hop.perl.plover.com/>.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 OPTIMIZE="%{rpmcflags}"
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/File/Next.pm