]>
Commit | Line | Data |
---|---|---|
a7b1870a AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Coro | |
7 | %define pnam Coro | |
6c1092f9 | 8 | %define pver 6.511 |
a7b1870a | 9 | Summary: Coro - do events the coro-way |
3511a7f7 | 10 | Summary(pl.UTF-8): Coro - obsługa zdarzeń na sposób coro |
a7b1870a | 11 | Name: perl-Coro |
6c1092f9 MM |
12 | Version: 6.51.1 |
13 | Release: 1 | |
a7b1870a AM |
14 | # same as perl |
15 | License: GPL v1+ or Artistic | |
16 | Group: Development/Languages/Perl | |
6c1092f9 MM |
17 | Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pnam}-%{pver}.tar.gz |
18 | # Source0-md5: bcad7051f573fed680eaf72e64e2140e | |
f0cda515 | 19 | Patch0: kill-blocked-test.patch |
6c1092f9 | 20 | Patch1: coro-5.24.patch |
15fe6aa3 | 21 | URL: http://search.cpan.org/dist/Coro/ |
1c056a72 | 22 | BuildRequires: perl-AnyEvent >= 2:5.0 |
53db6556 | 23 | BuildRequires: perl-EV >= 1:4.0 |
28f3a076 | 24 | BuildRequires: perl-Event >= 1.08 |
620371d5 | 25 | BuildRequires: perl-devel >= 1:5.8.2 |
a7b1870a | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
156477a5 | 27 | BuildRequires: sed >= 4.0 |
ea9d2bf4 | 28 | %if %{with tests} |
9d6174ea JB |
29 | BuildRequires: perl-AnyEvent-Impl-EV |
30 | BuildRequires: perl-AnyEvent-Impl-Event | |
620371d5 | 31 | BuildRequires: perl-Guard >= 0.5 |
620371d5 JB |
32 | BuildRequires: perl-Storable >= 2.15 |
33 | BuildRequires: perl-Time-HiRes | |
34 | BuildRequires: perl-common-sense | |
ea9d2bf4 | 35 | %endif |
53db6556 JB |
36 | Requires: perl-AnyEvent >= 2:5.0 |
37 | Requires: perl-BDB >= 1.5 | |
38 | Requires: perl-EV >= 1:4.0 | |
39 | Requires: perl-Guard >= 0.5 | |
40 | Requires: perl-Storable >= 2.15 | |
a7b1870a AM |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
44 | This module enables you to create programs using the powerful Event | |
45 | model (and module), while retaining the linear style known from simple | |
46 | or threaded programs. | |
47 | ||
4462add0 JR |
48 | %description -l pl.UTF-8 |
49 | Ten moduł pozwala na tworzenie programów przy użyciu potężnego modelu | |
50 | (i modułu) Event z zachowaniem liniowego stylu znanego z prostych lub | |
51 | wątkowych programów. | |
15fe6aa3 | 52 | |
a7b1870a | 53 | %prep |
6c1092f9 | 54 | %setup -q -n %{pnam}-%{pver} |
f0cda515 | 55 | %patch0 -p1 |
6c1092f9 | 56 | %patch1 -p1 |
a7b1870a | 57 | |
156477a5 | 58 | %{__sed} -i "s^/opt/bin/perl^%{_bindir}/perl^" Coro/jit*pl |
59 | ||
a7b1870a | 60 | %build |
1c056a72 | 61 | echo "y" | %{__perl} Makefile.PL \ |
a7b1870a AM |
62 | INSTALLDIRS=vendor |
63 | %{__make} \ | |
304ecfbc | 64 | CC="%{__cc}" \ |
a7b1870a AM |
65 | OPTIMIZE="%{rpmcflags}" |
66 | ||
1c056a72 | 67 | %{?with_tests:%{__make} -j1 test} |
a7b1870a AM |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
9d6174ea | 80 | %doc COPYING Changes INSTALL README README.linux-glibc |
a7b1870a AM |
81 | %{perl_vendorarch}/Coro.pm |
82 | %{perl_vendorarch}/Coro | |
83 | %dir %{perl_vendorarch}/auto/Coro | |
ea9d2bf4 | 84 | %dir %{perl_vendorarch}/auto/Coro/EV |
620371d5 | 85 | %attr(755,root,root) %{perl_vendorarch}/auto/Coro/EV/EV.so |
88fcb4b4 | 86 | %dir %{perl_vendorarch}/auto/Coro/Event |
620371d5 | 87 | %attr(755,root,root) %{perl_vendorarch}/auto/Coro/Event/Event.so |
88fcb4b4 | 88 | %dir %{perl_vendorarch}/auto/Coro/State |
620371d5 JB |
89 | %attr(755,root,root) %{perl_vendorarch}/auto/Coro/State/State.so |
90 | %{_mandir}/man3/Coro*.3pm* |