3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
7 Summary: IO::Null -- class for null filehandles
13 Group: Development/Languages/Perl
14 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 BuildRequires: perl >= 5.6
16 BuildRequires: rpm-perlprov >= 3.0.3-26
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This is a class for null filehandles.
23 Calling a constructor of this class always succeeds, returning a new null
26 Writing to any object of this class is always a no-operation, and returns
29 Reading from any object of this class is always no-operation, and returns
30 empty-string or empty-list, as appropriate.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{!?_without_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} install DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %{perl_sitelib}/%{pdir}/*.pm