]> git.pld-linux.org Git - packages/perl-Coro.git/blame - perl-Coro.spec
Up to 6.51.1
[packages/perl-Coro.git] / perl-Coro.spec
CommitLineData
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 9Summary: Coro - do events the coro-way
3511a7f7 10Summary(pl.UTF-8): Coro - obsługa zdarzeń na sposób coro
a7b1870a 11Name: perl-Coro
6c1092f9
MM
12Version: 6.51.1
13Release: 1
a7b1870a
AM
14# same as perl
15License: GPL v1+ or Artistic
16Group: Development/Languages/Perl
6c1092f9
MM
17Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pnam}-%{pver}.tar.gz
18# Source0-md5: bcad7051f573fed680eaf72e64e2140e
f0cda515 19Patch0: kill-blocked-test.patch
6c1092f9 20Patch1: coro-5.24.patch
15fe6aa3 21URL: http://search.cpan.org/dist/Coro/
1c056a72 22BuildRequires: perl-AnyEvent >= 2:5.0
53db6556 23BuildRequires: perl-EV >= 1:4.0
28f3a076 24BuildRequires: perl-Event >= 1.08
620371d5 25BuildRequires: perl-devel >= 1:5.8.2
a7b1870a 26BuildRequires: rpm-perlprov >= 4.1-13
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
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 61echo "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
70rm -rf $RPM_BUILD_ROOT
71
72%{__make} install \
73 DESTDIR=$RPM_BUILD_ROOT
74
75%clean
76rm -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*
This page took 0.112563 seconds and 4 git commands to generate.