]> git.pld-linux.org Git - packages/perl-Coro.git/blame - perl-Coro.spec
- release 3 (by relup.sh)
[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
8Summary: Coro - do events the coro-way
3511a7f7 9Summary(pl.UTF-8): Coro - obsługa zdarzeń na sposób coro
a7b1870a 10Name: perl-Coro
cff8ef18 11Version: 6.41
83ec7120 12Release: 3
a7b1870a
AM
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
620371d5 16Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pnam}-%{version}.tar.gz
cff8ef18 17# Source0-md5: 882b3606487db94b35ac309bc7025009
f0cda515 18Patch0: kill-blocked-test.patch
15fe6aa3 19URL: http://search.cpan.org/dist/Coro/
1c056a72 20BuildRequires: perl-AnyEvent >= 2:5.0
53db6556 21BuildRequires: perl-EV >= 1:4.0
28f3a076 22BuildRequires: perl-Event >= 1.08
620371d5 23BuildRequires: perl-devel >= 1:5.8.2
a7b1870a 24BuildRequires: rpm-perlprov >= 4.1-13
156477a5 25BuildRequires: sed >= 4.0
ea9d2bf4 26%if %{with tests}
9d6174ea
JB
27BuildRequires: perl-AnyEvent-Impl-EV
28BuildRequires: perl-AnyEvent-Impl-Event
620371d5 29BuildRequires: perl-Guard >= 0.5
620371d5
JB
30BuildRequires: perl-Storable >= 2.15
31BuildRequires: perl-Time-HiRes
32BuildRequires: perl-common-sense
ea9d2bf4 33%endif
53db6556
JB
34Requires: perl-AnyEvent >= 2:5.0
35Requires: perl-BDB >= 1.5
36Requires: perl-EV >= 1:4.0
37Requires: perl-Guard >= 0.5
38Requires: perl-Storable >= 2.15
a7b1870a
AM
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42This module enables you to create programs using the powerful Event
43model (and module), while retaining the linear style known from simple
44or threaded programs.
45
4462add0
JR
46%description -l pl.UTF-8
47Ten 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
49wą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 58echo "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
67rm -rf $RPM_BUILD_ROOT
68
69%{__make} install \
70 DESTDIR=$RPM_BUILD_ROOT
71
72%clean
73rm -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 82%attr(755,root,root) %{perl_vendorarch}/auto/Coro/EV/EV.so
88fcb4b4 83%dir %{perl_vendorarch}/auto/Coro/Event
620371d5 84%attr(755,root,root) %{perl_vendorarch}/auto/Coro/Event/Event.so
88fcb4b4 85%dir %{perl_vendorarch}/auto/Coro/State
620371d5
JB
86%attr(755,root,root) %{perl_vendorarch}/auto/Coro/State/State.so
87%{_mandir}/man3/Coro*.3pm*
This page took 0.111186 seconds and 4 git commands to generate.