2 # - incorrectly installs itself to perl_vendorarch, but only constants.pl should go there
5 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
10 Summary: AnyEvent - provide framework for multiple event loops
11 Summary(pl.UTF-8): AnyEvent - szkielet dla wielu pętli zdarzeń
17 License: GPL v1+ or Artistic
18 Group: Development/Languages/Perl
19 Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pnam}-%{version}.tar.gz
20 # Source0-md5: 9c13447a7117e06e7a2fd553c4b2228c
21 URL: http://search.cpan.org/dist/AnyEvent/
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 Suggests: %{name}-Impl-EV
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The AnyEvent extension aims to provide an simple and optimized event
29 loop for a broad class of applications.
31 %description -l pl.UTF-8
32 Rozszerzenie AnyEvent ma za zadanie udostępnić pojedynczą i
33 zoptymalizowaną pętlę zdarzeń dla szerokiej gamy aplikacji.
36 Summary: AnyEvent implementation based on Cocoa::EventLoop
37 Group: Development/Languages/Perl
38 Requires: %{name} = %{epoch}:%{version}-%{release}
40 %description Impl-Cocoa
41 AnyEvent implementation based on Cocoa::EventLoop..
44 Summary: AnyEvent implementation based on libev
45 Group: Development/Languages/Perl
46 Requires: %{name} = %{epoch}:%{version}-%{release}
49 AnyEvent implementation based on libev (best choice).
52 Summary: AnyEvent implementation based on Event
53 Group: Development/Languages/Perl
54 Requires: %{name} = %{epoch}:%{version}-%{release}
56 %description Impl-Event
57 AnyEvent implementation based on Event (very stable, few glitches).
59 %package Impl-EventLib
60 Summary: AnyEvent implementation based on EventLib
61 Group: Development/Languages/Perl
62 Requires: %{name} = %{epoch}:%{version}-%{release}
64 %description Impl-EventLib
65 AnyEvent implementation based on EventLib (leaks memory and worse).
68 Summary: AnyEvent implementation based on Glib
69 Group: Development/Languages/Perl
70 Requires: %{name} = %{epoch}:%{version}-%{release}
72 %description Impl-Glib
73 AnyEvent implementation based on Glib (slow but very stable).
76 Summary: AnyEvent implementation based on IOAsync
77 Group: Development/Languages/Perl
78 Requires: %{name} = %{epoch}:%{version}-%{release}
80 %description Impl-IOAsync
81 AnyEvent implementation based on IO::Async.
84 Summary: AnyEvent implementation for Irssi
85 Group: Development/Languages/Perl
86 Requires: %{name} = %{epoch}:%{version}-%{release}
88 %description Impl-Irssi
89 AnyEvent implementation used when running within irssi.
92 Summary: AnyEvent implementation based on POE
93 Group: Development/Languages/Perl
94 Requires: %{name} = %{epoch}:%{version}-%{release}
97 AnyEvent implementation based on POE (very slow, some limitations).
100 Summary: AnyEvent implementation based on Qt
101 Group: Development/Languages/Perl
102 Requires: %{name} = %{epoch}:%{version}-%{release}
105 AnyEvent implementation based on Qt.
108 Summary: AnyEvent implementation based on Tk
109 Group: Development/Languages/Perl
110 Requires: %{name} = %{epoch}:%{version}-%{release}
113 AnyEvent implementation based on Tk (very broken).
116 %setup -q -n %{pnam}-%{version}
117 # we are not allowed to use network while building package
121 %{__perl} Makefile.PL \
125 %{?with_tests:%{__make} test}
128 rm -rf $RPM_BUILD_ROOT
131 DESTDIR=$RPM_BUILD_ROOT
134 rm -rf $RPM_BUILD_ROOT
137 %defattr(644,root,root,755)
139 %{perl_vendorarch}/AnyEvent.pm
140 %dir %{perl_vendorarch}/AnyEvent
141 %{perl_vendorarch}/AnyEvent/*.pm
142 %dir %{perl_vendorarch}/AnyEvent/Impl
143 # pureperl implementation, works everywhere, requires nothing
144 %{perl_vendorarch}/AnyEvent/Impl/Perl.pm
145 %{perl_vendorarch}/AnyEvent/Util
146 %{perl_vendorarch}/AnyEvent/FAQ.pod
147 %{perl_vendorarch}/AnyEvent/Intro.pod
148 %{perl_vendorarch}/AnyEvent/constants.pl
149 %{perl_vendorarch}/AE.pm
150 %{_mandir}/man3/AE.3pm*
151 %{_mandir}/man3/AnyEvent.3pm*
152 %{_mandir}/man3/AnyEvent::[DFHSTU]*.3pm*
153 %{_mandir}/man3/AnyEvent::Intro.3pm*
154 %{_mandir}/man3/AnyEvent::Impl::Perl.3pm*
157 %defattr(644,root,root,755)
158 %{perl_vendorarch}/AnyEvent/Impl/Cocoa.pm
159 %{_mandir}/man3/AnyEvent::Impl::Cocoa.3pm*
162 %defattr(644,root,root,755)
163 %{perl_vendorarch}/AnyEvent/Impl/EV.pm
164 %{_mandir}/man3/AnyEvent::Impl::EV.3pm*
167 %defattr(644,root,root,755)
168 %{perl_vendorarch}/AnyEvent/Impl/Event.pm
169 %{_mandir}/man3/AnyEvent::Impl::Event.3pm*
172 %defattr(644,root,root,755)
173 %{perl_vendorarch}/AnyEvent/Impl/EventLib.pm
174 %{_mandir}/man3/AnyEvent::Impl::EventLib.3pm*
177 %defattr(644,root,root,755)
178 %{perl_vendorarch}/AnyEvent/Impl/Glib.pm
179 %{_mandir}/man3/AnyEvent::Impl::Glib.3pm*
182 %defattr(644,root,root,755)
183 %{perl_vendorarch}/AnyEvent/Impl/IOAsync.pm
184 %{_mandir}/man3/AnyEvent::Impl::IOAsync.3pm*
187 %defattr(644,root,root,755)
188 %{perl_vendorarch}/AnyEvent/Impl/Irssi.pm
189 %{_mandir}/man3/AnyEvent::Impl::Irssi.3pm*
192 %defattr(644,root,root,755)
193 %{perl_vendorarch}/AnyEvent/Impl/POE.pm
194 %{_mandir}/man3/AnyEvent::Impl::POE.3pm*
197 %defattr(644,root,root,755)
198 %{perl_vendorarch}/AnyEvent/Impl/Qt.pm
199 %{_mandir}/man3/AnyEvent::Impl::Qt.3pm*
202 %defattr(644,root,root,755)
203 %{perl_vendorarch}/AnyEvent/Impl/Tk.pm
204 %{_mandir}/man3/AnyEvent::Impl::Tk.3pm*