]> git.pld-linux.org Git - packages/perl-IO-Null.git/blame - perl-IO-Null.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-IO-Null.git] / perl-IO-Null.spec
CommitLineData
597fced4 1#
2# Conditional build:
af2d55e3 3%bcond_without tests # do not perform "make test"
9768231e 4
be845aa3 5%define pdir IO
6%define pnam Null
6a87cdc0 7Summary: IO::Null - class for null filehandles
824bbd04 8Summary(pl.UTF-8): IO::Null - klasa do pustych uchwytów plików
597fced4 9Name: perl-IO-Null
698ba515 10Version: 1.01
c907dd90 11Release: 2
ff724d0b 12# same as perl
13License: GPL v1+ or Artistic
597fced4 14Group: Development/Languages/Perl
3cccf469 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
698ba515 16# Source0-md5: 54d6084398f8b4e7062660b9ccc835a8
9768231e 17URL: http://search.cpan.org/dist/IO-Null/
54664e68 18BuildRequires: perl-devel >= 1:5.8.0
62cd9d27 19BuildRequires: rpm-perlprov >= 4.1-13
597fced4 20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This is a class for null filehandles.
25
ea5ddb13
JB
26Calling a constructor of this class always succeeds, returning a new
27null filehandle.
597fced4 28
ea5ddb13
JB
29Writing to any object of this class is always a no-operation, and
30returns true.
597fced4 31
ea5ddb13
JB
32Reading from any object of this class is always no-operation, and
33returns empty-string or empty-list, as appropriate.
597fced4 34
2af28a75
JR
35%description -l pl.UTF-8
36To jest klasa pustych uchwytów plików. Wywołanie konstruktora tej
37klasy zawsze kończy się sukcesem i zwracany jest pusty uchwyt pliku.
38Zapis do dowolnego obiektu tej klasy jest pustą operacją, zwracającą
39logiczną prawdę. Czytanie z dowolnego obiektu tej klasy jest pustą
40operacją, zwracającą pusty ciąg lub pustą listę.
597fced4 41
42%prep
43%setup -q -n %{pdir}-%{pnam}-%{version}
44
45%build
62cd9d27 46%{__perl} Makefile.PL \
a28c18c4 47 INSTALLDIRS=vendor
597fced4 48%{__make}
49
af2d55e3 50%{?with_tests:%{__make} test}
597fced4 51
52%install
53rm -rf $RPM_BUILD_ROOT
54
0b21bb46 55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
597fced4 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
62cd9d27 63%{perl_vendorlib}/%{pdir}/*.pm
597fced4 64%{_mandir}/man3/*
This page took 0.064474 seconds and 4 git commands to generate.