]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # unit tests | |
4 | # | |
5 | %define pdir IO | |
6 | %define pnam AIO | |
7 | Summary: IO::AIO - Perl Asynchronous Input/Output | |
8 | Summary(pl.UTF-8): IO::AIO - asynchroniczne wejście/wyjście w Perlu | |
9 | Name: perl-IO-AIO | |
10 | Version: 4.79 | |
11 | Release: 2 | |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
14 | Source0: https://www.cpan.org/modules/by-module/IO/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | # Source0-md5: 851fac98cf21ed9c3d69a2ddc395bde6 | |
16 | Patch0: %{pdir}-%{pnam}-path.patch | |
17 | Patch1: %{pdir}-%{pnam}-glibc.patch | |
18 | URL: https://metacpan.org/dist/IO-AIO | |
19 | BuildRequires: perl-Canary-Stability >= 2001 | |
20 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.52 | |
21 | BuildRequires: perl-devel >= 1:5.8.2 | |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
23 | BuildRequires: rpmbuild(macros) >= 1.745 | |
24 | %if %{with tests} | |
25 | BuildRequires: perl-common-sense | |
26 | %endif | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This module implements asynchronous I/O using whatever means your | |
31 | operating system supports. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Ten moduł implementuje asynchroniczne we/wy przy użyciu dowolnych | |
35 | metod obsługiwanych przez system operacyjny. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | %patch0 -p1 | |
40 | %patch1 -p1 | |
41 | ||
42 | %build | |
43 | PERL_CANARY_STABILITY_NOPROMPT=1 \ | |
44 | %{__perl} Makefile.PL \ | |
45 | INSTALLDIRS=vendor | |
46 | ||
47 | %{__make} \ | |
48 | CC="%{__cc}" \ | |
49 | OPTIMIZE="%{rpmcflags}" | |
50 | ||
51 | %{?with_tests:%{__make} test} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes README | |
65 | %attr(755,root,root) %{_bindir}/treescan | |
66 | %{perl_vendorarch}/IO/AIO.pm | |
67 | %dir %{perl_vendorarch}/auto/IO/AIO | |
68 | %attr(755,root,root) %{perl_vendorarch}/auto/IO/AIO/AIO.so | |
69 | %{_mandir}/man3/IO::AIO.3pm* | |
70 | %{_mandir}/man1/treescan.1p* |