]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: IO::Null - class for null filehandles |
824bbd04 | 8 | Summary(pl.UTF-8): IO::Null - klasa do pustych uchwytów plików |
597fced4 | 9 | Name: perl-IO-Null |
698ba515 | 10 | Version: 1.01 |
c907dd90 | 11 | Release: 2 |
ff724d0b | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
597fced4 | 14 | Group: Development/Languages/Perl |
3cccf469 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
698ba515 | 16 | # Source0-md5: 54d6084398f8b4e7062660b9ccc835a8 |
9768231e | 17 | URL: http://search.cpan.org/dist/IO-Null/ |
54664e68 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
62cd9d27 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
597fced4 | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This is a class for null filehandles. | |
25 | ||
ea5ddb13 JB |
26 | Calling a constructor of this class always succeeds, returning a new |
27 | null filehandle. | |
597fced4 | 28 | |
ea5ddb13 JB |
29 | Writing to any object of this class is always a no-operation, and |
30 | returns true. | |
597fced4 | 31 | |
ea5ddb13 JB |
32 | Reading from any object of this class is always no-operation, and |
33 | returns empty-string or empty-list, as appropriate. | |
597fced4 | 34 | |
2af28a75 JR |
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ę. | |
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 | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
0b21bb46 | 55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
597fced4 | 57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
62cd9d27 | 63 | %{perl_vendorlib}/%{pdir}/*.pm |
597fced4 | 64 | %{_mandir}/man3/* |