]>
Commit | Line | Data |
---|---|---|
b5cc9906 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
7636c7ea | 5 | %include /usr/lib/rpm/macros.perl |
f8aa04a9 | 6 | %define pdir IPC |
7 | %define pnam ChildSafe | |
ef167090 JB |
8 | Summary: IPC::ChildSafe - control a child process without blocking |
9 | Summary(pl.UTF-8): IPC::ChildSafe - sterowanie procesem potomnym bez blokowania | |
cfaf7aa7 | 10 | Name: perl-IPC-ChildSafe |
3a551b22 | 11 | Version: 3.16 |
f24e9db2 | 12 | Release: 13 |
5171e0de | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
cfaf7aa7 | 15 | Group: Development/Languages/Perl |
ef167090 | 16 | Source0: http://www.cpan.org/modules/by-module/IPC/%{pdir}-%{pnam}-%{version}.tar.gz |
3a551b22 | 17 | # Source0-md5: 68f9ae8be45c7399272a26bbe86d12ba |
ef167090 | 18 | URL: http://search.cpan.org/dist/IPC-ChildSafe/ |
60ac94d4 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
0ee992ce | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
e4e882ce | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
cfaf7aa7 | 22 | |
23 | %description | |
ef167090 JB |
24 | IPC::ChildSafe Perl module allows to control a child process without |
25 | blocking. It addresses the "blocking problem" inherent in most | |
26 | coprocessing designs such as IPC::Open3. | |
cfaf7aa7 | 27 | |
30813597 | 28 | %description -l pl.UTF-8 |
ef167090 JB |
29 | Moduł Perla IPC::ChildSafe umożliwia sterowanie procesem potomnym bez |
30 | blokowania. Rozwiązuje "problem blokowania" dziedziczony przez | |
31 | większość rozwiązań wieloprocesowych, takich jak IPC::Open3. | |
cfaf7aa7 | 32 | |
33 | %prep | |
7636c7ea | 34 | %setup -q -n %{pdir}-%{pnam}-%{version} |
cfaf7aa7 | 35 | |
36 | %build | |
0ee992ce | 37 | %{__perl} Makefile.PL \ |
145c139b | 38 | INSTALLDIRS=vendor |
b5cc9906 | 39 | %{__make} \ |
b0c62995 | 40 | CC="%{__cc}" \ |
b5cc9906 | 41 | OPTIMIZE="%{rpmcflags}" |
42 | ||
43 | %{?with_tests:%{__make} test} | |
cfaf7aa7 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
c890071e | 47 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
cfaf7aa7 | 48 | |
b5cc9906 | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
cfaf7aa7 | 51 | |
c890071e | 52 | install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
cfaf7aa7 | 53 | |
cfaf7aa7 | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
4bccae22 | 59 | %doc Changes README |
0ee992ce | 60 | %{perl_vendorarch}/IPC/*.pm |
61 | %dir %{perl_vendorarch}/auto/IPC/ChildSafe | |
0ee992ce | 62 | %attr(755,root,root) %{perl_vendorarch}/auto/IPC/ChildSafe/ChildSafe.so |
cfaf7aa7 | 63 | %{_mandir}/man3/* |
c890071e | 64 | %{_examplesdir}/%{name}-%{version} |