]>
Commit | Line | Data |
---|---|---|
6ed20972 MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir IO | |
7 | %define pnam AIO | |
c47e144f | 8 | Summary: IO::AIO - Perl Asynchronous Input/Output |
0f732bf8 | 9 | Summary(pl.UTF-8): IO::AIO - asynchroniczne wejście/wyjście w Perlu |
6ed20972 | 10 | Name: perl-IO-AIO |
b9fd9f60 MM |
11 | Version: 4.34 |
12 | Release: 1 | |
6ed20972 MP |
13 | License: GPL v1+ or Artistic |
14 | Group: Development/Languages/Perl | |
2f014c2e | 15 | Source0: http://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz |
b9fd9f60 | 16 | # Source0-md5: 6a3e89193e0747b3bbf9e66b7900a95b |
f677bc24 | 17 | URL: http://search.cpan.org/dist/IO-AIO/ |
42847280 | 18 | BuildRequires: perl-devel >= 1:5.8.2 |
6ed20972 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
42847280 JB |
20 | %if %{with tests} |
21 | BuildRequires: perl-common-sense | |
22 | %endif | |
6ed20972 MP |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | This module implements asynchronous I/O using whatever means your | |
27 | operating system supports. | |
28 | ||
ebaaf91a JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł implementuje asynchroniczne we/wy przy użyciu dowolnych | |
31 | metod obsługiwanych przez system operacyjny. | |
c47e144f | 32 | |
6ed20972 MP |
33 | %prep |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
dc658372 | 37 | PERL_CANARY_STABILITY_NOPROMPT=1 \ |
6ed20972 MP |
38 | %{__perl} Makefile.PL \ |
39 | INSTALLDIRS=vendor | |
40 | ||
41 | %{__make} \ | |
afc96a76 | 42 | CC="%{__cc}" \ |
6ed20972 MP |
43 | OPTIMIZE="%{rpmcflags}" |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
6cd79623 | 59 | %attr(755,root,root) %{_bindir}/treescan |
6ed20972 MP |
60 | %{perl_vendorarch}/IO/AIO.pm |
61 | %dir %{perl_vendorarch}/auto/IO/AIO | |
c47e144f | 62 | %attr(755,root,root) %{perl_vendorarch}/auto/IO/AIO/AIO.so |
42847280 | 63 | %{_mandir}/man3/IO::AIO.3pm* |