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