3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: IO::Capture - Abstract Base Class to build modules to capture output
9 Summary(pl.UTF-8): IO::Capture - abstrakcyjna klasa bazowa dla modułów przechwytujących wyjście
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 4760036d7fcf9f2cc34f2b2eefd511a4
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Simple
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The IO::Capture module defines an abstract base class that can be used
28 to build modules that capture output being sent on a filehandle such as
31 %description -l pl.UTF-8
32 Moduł IO::Capture definiuje abstrakcyjną klasę bazową, która może być
33 używana do tworzenia modułów przechwytujących wyjście wysyłane przez
34 uchwyt pliku, taki jak STDOUT czy STDERR.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc BUGS Changes README
58 %{perl_vendorlib}/IO/*.pm
59 %{perl_vendorlib}/IO/Capture