/[packages]/cauldron/perl-Coro/current/SPECS/perl-Coro.spec
ViewVC logotype

Contents of /cauldron/perl-Coro/current/SPECS/perl-Coro.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33648 - (show annotations) (download)
Sun Jan 23 09:49:19 2011 UTC (13 years, 8 months ago) by jquelin
File size: 3456 byte(s)
mageia rebuild
1 %define upstream_name Coro
2 %define upstream_version 5.25
3 #define _without_check 1
4
5 Name: perl-%{upstream_name}
6 Version: %perl_convert_version %upstream_version
7 Release: %mkrel 1
8 Epoch: 2
9
10 Summary: Coroutine process abstraction
11 License: GPL+ or Artistic
12 Group: Development/Perl
13 Url: http://search.cpan.org/dist/%{upstream_name}
14 Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/%{upstream_name}-%{upstream_version}.tar.gz
15
16 BuildRequires: perl-devel
17 BuildRequires: perl-IO-AIO
18 BuildRequires: perl-AnyEvent >= 1:4.05
19 BuildRequires: perl-Guard
20 BuildRequires: perl-common-sense
21
22 #gw the test EV/t/01_unblock fails in 4.37:
23 # http://rt.cpan.org/Ticket/Display.html?id=32475
24 #BuildRequires: perl-EV >= 2.0
25 %define _requires_exceptions perl(Exporter::)\\|perl(Coro::Socket::)
26
27 %description
28 This module collection manages coroutines. Coroutines are similar to
29 threads but don't run in parallel.
30
31
32 %package AnyEvent
33 Summary: Use Coro within an AnyEvent environment
34 Group: Development/Perl
35
36 %description AnyEvent
37 This module integrates coroutines into any event loop supported by
38 AnyEvent, combining event-based programming with coroutine-based
39 programming in a natural way.
40
41 %package BDB
42 Summary: Truly asynchronous bdb access
43 Group: Development/Perl
44
45 %description BDB
46 This module implements a thin wrapper around the BDB module.
47
48 Each BDB request that could block and doesn't get passed a callback
49 will normally block all coroutines. after loading this module, this
50 will no longer be the case.
51
52
53 %prep
54 %setup -q -n %{upstream_name}-%{upstream_version}
55
56 %build
57 echo -e "n\nu\n" | %{__perl} Makefile.PL INSTALLDIRS=vendor
58 %make
59
60 %check
61 %{!?_without_check:make test}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 %makeinstall_std
66
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(-,root,root)
73 %doc README.linux-glibc README Changes META.yml
74 %dir %{perl_vendorarch}/Coro
75 %{perl_vendorarch}/Coro/AIO.pm
76 %{perl_vendorarch}/Coro/Channel.pm
77 %{perl_vendorarch}/Coro/CoroAPI.h
78 %{perl_vendorarch}/Coro/Debug.pm
79 %{perl_vendorarch}/Coro/Event.pm
80 %{perl_vendorarch}/Coro/Handle.pm
81 %{perl_vendorarch}/Coro/Intro.pod
82 %{perl_vendorarch}/Coro/LWP.pm
83 %{perl_vendorarch}/Coro/MakeMaker.pm
84 %{perl_vendorarch}/Coro/RWLock.pm
85 %{perl_vendorarch}/Coro/Select.pm
86 %{perl_vendorarch}/Coro/Semaphore.pm
87 %{perl_vendorarch}/Coro/SemaphoreSet.pm
88 %{perl_vendorarch}/Coro/Signal.pm
89 %{perl_vendorarch}/Coro/Socket.pm
90 %{perl_vendorarch}/Coro/Specific.pm
91 %{perl_vendorarch}/Coro/State.pm
92 %{perl_vendorarch}/Coro/Storable.pm
93 %{perl_vendorarch}/Coro/Timer.pm
94 %{perl_vendorarch}/Coro/Util.pm
95 %{perl_vendorarch}/Coro.pm
96 %{perl_vendorarch}/auto
97 %_mandir/man3/Coro.3pm*
98 %_mandir/man3/Coro::AIO.3pm*
99 %_mandir/man3/Coro::Channel.3pm*
100 %_mandir/man3/Coro::Debug.3pm*
101 %_mandir/man3/Coro::Event.3pm*
102 %_mandir/man3/Coro::Handle.3pm*
103 %_mandir/man3/Coro::Intro.3pm*
104 %_mandir/man3/Coro::LWP.3pm*
105 %_mandir/man3/Coro::MakeMaker.3pm*
106 %_mandir/man3/Coro::RWLock.3pm*
107 %_mandir/man3/Coro::Select.3pm*
108 %_mandir/man3/Coro::Semaphore.3pm*
109 %_mandir/man3/Coro::SemaphoreSet.3pm*
110 %_mandir/man3/Coro::Signal.3pm*
111 %_mandir/man3/Coro::Socket.3pm*
112 %_mandir/man3/Coro::Specific.3pm*
113 %_mandir/man3/Coro::State.3pm*
114 %_mandir/man3/Coro::Storable.3pm*
115 %_mandir/man3/Coro::Timer.3pm*
116 %_mandir/man3/Coro::Util.3pm*
117
118 %files BDB
119 %defattr(-,root,root)
120 %{perl_vendorarch}/Coro/BDB.pm
121 %{_mandir}/man3/Coro::BDB*
122
123 %files AnyEvent
124 %defattr(-,root,root)
125 %{perl_vendorarch}/Coro/AnyEvent.pm
126 %{_mandir}/man3/Coro::AnyEvent*

  ViewVC Help
Powered by ViewVC 1.1.30