3 %bcond_without tests # do not perform "make test"
7 Summary: IO::Null - class for null filehandles
8 Summary(pl.UTF-8): IO::Null - klasa do pustych uchwytów plików
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 54d6084398f8b4e7062660b9ccc835a8
17 URL: http://search.cpan.org/dist/IO-Null/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This is a class for null filehandles.
26 Calling a constructor of this class always succeeds, returning a new
29 Writing to any object of this class is always a no-operation, and
32 Reading from any object of this class is always no-operation, and
33 returns empty-string or empty-list, as appropriate.
35 %description -l pl.UTF-8
36 To jest klasa pustych uchwytów plików. Wywołanie konstruktora tej
37 klasy zawsze kończy się sukcesem i zwracany jest pusty uchwyt pliku.
38 Zapis do dowolnego obiektu tej klasy jest pustą operacją, zwracającą
39 logiczną prawdę. Czytanie z dowolnego obiektu tej klasy jest pustą
40 operacją, zwracającą pusty ciąg lub pustą listę.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %{perl_vendorlib}/%{pdir}/*.pm