]> git.ipfire.org Git - ipfire-3.x.git/blame - perl-Coro/perl-Coro.nm
vim: Update to version 9.0.1916-1
[ipfire-3.x.git] / perl-Coro / perl-Coro.nm
CommitLineData
ec6b91f5
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = perl-Coro
7b5056c5 7version = 6.57
e0d866c0 8release = 3
ec6b91f5
SS
9thisapp = Coro-%{version}
10
11groups = Development/Libraries
7b5056c5 12url = https://search.cpan.org/dist/Coro/
ec6b91f5
SS
13license = GPL+ or Artistic
14summary = The only real threads in perl.
15
16description
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
21end
22
7b5056c5 23source_dl = https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
ec6b91f5
SS
24
25build
26 requires
7b5056c5 27 perl(Canary::Stability)
ec6b91f5
SS
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
7b5056c5
SS
40 perl Makefile.PL INSTALLDIRS=perl NO_PACKLIST=1 NO_PERLLOCAL=1 \
41 OPTIMIZE="%{CFLAGS}" </dev/null
42
ec6b91f5
SS
43 make %{PARALLELISMFLAGS}
44 end
45
cd2c8ff1
SS
46 make_install_targets = \
47 pure_install DESTDIR=%{BUILDROOT}
ff56eb24
SS
48
49 install_cmds
50 # Set correct library permissions.
51 find %{BUILDROOT}%{libdir} -type f -iname "*.so" \
52 -exec chmod 755 {} \;
53 end
ec6b91f5
SS
54end
55
56packages
57 package %{name}
7b5056c5 58 filter_requires = (AnyEvent|EV|Event|Guard|Storable|Coro)
ec6b91f5
SS
59
60 requires
cd2c8ff1 61 perl(:MODULE_COMPAT_%{perl_version})
ec6b91f5
SS
62 end
63 end
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
68end