]> git.pld-linux.org Git - packages/perl-Coro.git/blame - perl-Coro.spec
perl 5.38.0 rebuild
[packages/perl-Coro.git] / perl-Coro.spec
CommitLineData
a7b1870a
AM
1#
2# Conditional build:
ea04b95c 3%bcond_with tests # do not perform "make test"
a7b1870a 4#
a7b1870a
AM
5%define pdir Coro
6%define pnam Coro
7Summary: Coro - do events the coro-way
3511a7f7 8Summary(pl.UTF-8): Coro - obsługa zdarzeń na sposób coro
a7b1870a 9Name: perl-Coro
e09a274b 10Version: 6.57
6e79d908 11Release: 5
a7b1870a
AM
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
e09a274b
JB
15Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pnam}-%{version}.tar.gz
16# Source0-md5: fa5970a2a2f3df9d68d4369c7dde1a55
f0cda515 17Patch0: kill-blocked-test.patch
e09a274b 18URL: https://metacpan.org/dist/Coro
1c056a72 19BuildRequires: perl-AnyEvent >= 2:5.0
e09a274b 20BuildRequires: perl-Canary-Stability
53db6556 21BuildRequires: perl-EV >= 1:4.0
28f3a076 22BuildRequires: perl-Event >= 1.08
e09a274b
JB
23BuildRequires: perl-ExtUtils-MakeMaker >= 6.52
24BuildRequires: perl-devel >= 1:5.8.9
a7b1870a 25BuildRequires: rpm-perlprov >= 4.1-13
e09a274b 26BuildRequires: rpmbuild(macros) >= 1.745
156477a5 27BuildRequires: sed >= 4.0
ea9d2bf4 28%if %{with tests}
9d6174ea
JB
29BuildRequires: perl-AnyEvent-Impl-EV
30BuildRequires: perl-AnyEvent-Impl-Event
620371d5 31BuildRequires: perl-Guard >= 0.5
620371d5
JB
32BuildRequires: perl-Storable >= 2.15
33BuildRequires: perl-Time-HiRes
34BuildRequires: perl-common-sense
ea9d2bf4 35%endif
53db6556
JB
36Requires: perl-AnyEvent >= 2:5.0
37Requires: perl-BDB >= 1.5
38Requires: perl-EV >= 1:4.0
39Requires: perl-Guard >= 0.5
40Requires: perl-Storable >= 2.15
a7b1870a
AM
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43%description
44This module enables you to create programs using the powerful Event
45model (and module), while retaining the linear style known from simple
46or threaded programs.
47
4462add0
JR
48%description -l pl.UTF-8
49Ten 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
51wątkowych programów.
15fe6aa3 52
a7b1870a 53%prep
e09a274b 54%setup -q -n %{pnam}-%{version}
f0cda515 55%patch0 -p1
a7b1870a 56
156477a5 57%{__sed} -i "s^/opt/bin/perl^%{_bindir}/perl^" Coro/jit*pl
58
a7b1870a 59%build
8bc3d84c
JB
60# CORO_INTERFACE: use setjmp on x32 (asm fails tests)
61echo "y" | \
62%ifarch x32
63 CORO_INTERFACE=s \
64%endif
65%{__perl} Makefile.PL \
a7b1870a
AM
66 INSTALLDIRS=vendor
67%{__make} \
304ecfbc 68 CC="%{__cc}" \
a7b1870a
AM
69 OPTIMIZE="%{rpmcflags}"
70
1c056a72 71%{?with_tests:%{__make} -j1 test}
a7b1870a
AM
72
73%install
74rm -rf $RPM_BUILD_ROOT
75
76%{__make} install \
77 DESTDIR=$RPM_BUILD_ROOT
78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82%files
83%defattr(644,root,root,755)
9d6174ea 84%doc COPYING Changes INSTALL README README.linux-glibc
a7b1870a
AM
85%{perl_vendorarch}/Coro.pm
86%{perl_vendorarch}/Coro
87%dir %{perl_vendorarch}/auto/Coro
ea9d2bf4 88%dir %{perl_vendorarch}/auto/Coro/EV
620371d5 89%attr(755,root,root) %{perl_vendorarch}/auto/Coro/EV/EV.so
88fcb4b4 90%dir %{perl_vendorarch}/auto/Coro/Event
620371d5 91%attr(755,root,root) %{perl_vendorarch}/auto/Coro/Event/Event.so
88fcb4b4 92%dir %{perl_vendorarch}/auto/Coro/State
620371d5
JB
93%attr(755,root,root) %{perl_vendorarch}/auto/Coro/State/State.so
94%{_mandir}/man3/Coro*.3pm*
This page took 0.180509 seconds and 4 git commands to generate.