]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - perl-Coro/perl-Coro.nm
c5b8e22ef592d6112be9bdd114b4bf36c2e81995
[people/pmueller/ipfire-3.x.git] / perl-Coro / perl-Coro.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = perl-Coro
7 version = 6.57
8 release = 2
9 thisapp = Coro-%{version}
10
11 groups = Development/Libraries
12 url = https://search.cpan.org/dist/Coro/
13 license = GPL+ or Artistic
14 summary = The only real threads in perl.
15
16 description
17 This module collection manages continuations in general, most often in the
18 form of cooperative threads (also called coros, or simply "coro" in the
19 documentation). They are similar to kernel threads but don't (in general) run
20 in parallel at the same time even on SMP machines
21 end
22
23 source_dl = https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
24
25 build
26 requires
27 perl(Canary::Stability)
28 perl(ExtUtils::MakeMaker)
29 perl(ExtUtils::ParseXS)
30 end
31
32 prepare_cmds
33 # Fix bad path for perl interpreter.
34 for F in Coro/jit-*.pl; do
35 sed -i -e '/^#!/d' "$F"
36 done
37 end
38
39 build
40 perl Makefile.PL INSTALLDIRS=perl NO_PACKLIST=1 NO_PERLLOCAL=1 \
41 OPTIMIZE="%{CFLAGS}" </dev/null
42
43 make %{PARALLELISMFLAGS}
44 end
45
46 make_install_targets = \
47 pure_install DESTDIR=%{BUILDROOT}
48
49 install_cmds
50 # Set correct library permissions.
51 find %{BUILDROOT}%{libdir} -type f -iname "*.so" \
52 -exec chmod 755 {} \;
53 end
54 end
55
56 packages
57 package %{name}
58 filter_requires = (AnyEvent|EV|Event|Guard|Storable|Coro)
59
60 requires
61 perl(:MODULE_COMPAT_%{perl_version})
62 end
63 end
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
68 end