]>
Commit | Line | Data |
---|---|---|
fdaef69e | 1 | # TODO: |
2 | # - incorrectly installs itself to perl_vendorarch, but only constants.pl should go there | |
2d1e535e AM |
3 | # |
4 | # Conditional build: | |
5 | %bcond_without tests # do not perform "make test" | |
9dbf8695 | 6 | %bcond_with fltk # don't package FLTK binding (requires a long chain of non-existing packages) |
2d1e535e AM |
7 | # |
8 | %include /usr/lib/rpm/macros.perl | |
9 | %define pdir AnyEvent | |
10 | %define pnam AnyEvent | |
11 | Summary: AnyEvent - provide framework for multiple event loops | |
9080e104 | 12 | Summary(pl.UTF-8): AnyEvent - szkielet dla wielu pętli zdarzeń |
2d1e535e | 13 | Name: perl-AnyEvent |
d4ccae40 | 14 | Version: 7.07 |
7d328df2 | 15 | Release: 3 |
1395426b | 16 | Epoch: 3 |
2d1e535e AM |
17 | # same as perl |
18 | License: GPL v1+ or Artistic | |
19 | Group: Development/Languages/Perl | |
1395426b | 20 | Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pnam}-%{version}.tar.gz |
d4ccae40 | 21 | # Source0-md5: e5ef99081b2acc3df80851838f9acfc4 |
fe03a1af | 22 | URL: http://search.cpan.org/dist/AnyEvent/ |
73015912 | 23 | BuildRequires: perl-devel >= 1:5.8.1 |
2d1e535e | 24 | BuildRequires: rpm-perlprov >= 4.1-13 |
0cddd3c2 | 25 | Suggests: %{name}-Impl-EV |
90fc9d13 | 26 | Obsoletes: perl-AnyEvent-Impl-Cocoa |
2d1e535e AM |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
8938a1dc | 29 | # disable debuginfo, nothing special there |
30 | %define _enable_debug_packages 0 | |
31 | ||
2d1e535e AM |
32 | %description |
33 | The AnyEvent extension aims to provide an simple and optimized event | |
34 | loop for a broad class of applications. | |
35 | ||
00d64aa9 JR |
36 | %description -l pl.UTF-8 |
37 | Rozszerzenie AnyEvent ma za zadanie udostępnić pojedynczą i | |
38 | zoptymalizowaną pętlę zdarzeń dla szerokiej gamy aplikacji. | |
fe03a1af | 39 | |
c65fcff4 JB |
40 | %package IOAIO |
41 | Summary: IOAIO I/O model for AnyAvent module | |
42 | Summary(pl.UTF-8): Model we/wy IOAIO dla modułu AnyEvent | |
43 | Group: Development/Languages/Perl | |
44 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
45 | ||
46 | %description IOAIO | |
47 | IOAIO I/O model for AnyAvent module. | |
48 | ||
49 | %description IOAIO -l pl.UTF-8 | |
50 | Model we/wy IOAIO dla modułu AnyEvent. | |
51 | ||
0cddd3c2 | 52 | %package Impl-EV |
53 | Summary: AnyEvent implementation based on libev | |
90fc9d13 | 54 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na libev |
0cddd3c2 | 55 | Group: Development/Languages/Perl |
56 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
57 | ||
58 | %description Impl-EV | |
59 | AnyEvent implementation based on libev (best choice). | |
60 | ||
90fc9d13 JB |
61 | %description Impl-EV -l pl.UTF-8 |
62 | Implementacja AnyEvent oparta na libev (najlepszy wybór). | |
63 | ||
0cddd3c2 | 64 | %package Impl-Event |
65 | Summary: AnyEvent implementation based on Event | |
90fc9d13 | 66 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na module Event |
0cddd3c2 | 67 | Group: Development/Languages/Perl |
68 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
69 | ||
70 | %description Impl-Event | |
71 | AnyEvent implementation based on Event (very stable, few glitches). | |
72 | ||
90fc9d13 JB |
73 | %description Impl-Event -l pl.UTF-8 |
74 | Implementacja AnyEvent oparta na module Event (stabilna, z kilkoma | |
75 | problemami). | |
76 | ||
0cddd3c2 | 77 | %package Impl-EventLib |
90fc9d13 JB |
78 | Summary: AnyEvent implementation based on Event::Lib |
79 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na module Event::Lib | |
0cddd3c2 | 80 | Group: Development/Languages/Perl |
81 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
82 | ||
83 | %description Impl-EventLib | |
90fc9d13 JB |
84 | AnyEvent implementation based on Event::Lib (leaks memory and worse). |
85 | ||
86 | %description Impl-EventLib -l pl.UTF-8 | |
87 | Implementacja AnyEvent oparta na module Event::Lib (ma wycieki pamięci | |
88 | i jeszcze gorzej). | |
0cddd3c2 | 89 | |
5db3e46a JB |
90 | %package Impl-FLTK |
91 | Summary: AnyEvent implementation based on FLTK | |
92 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na FLTK | |
93 | Group: Development/Languages/Perl | |
94 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
95 | ||
96 | %description Impl-FLTK | |
97 | AnyEvent implementation based on FLTK (fltk 2 binding). | |
98 | ||
99 | %description Impl-FLTK -l pl.UTF-8 | |
100 | Implementacja AnyEvent oparta na FLTK (wiązania fltk 2). | |
101 | ||
0cddd3c2 | 102 | %package Impl-Glib |
90fc9d13 JB |
103 | Summary: AnyEvent implementation based on GLib |
104 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na GLibie | |
0cddd3c2 | 105 | Group: Development/Languages/Perl |
106 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
107 | ||
108 | %description Impl-Glib | |
90fc9d13 JB |
109 | AnyEvent implementation based on GLib (slow but very stable). |
110 | ||
111 | %description Impl-Glib -l pl.UTF-8 | |
112 | Implementacja AnyEvent oparta na GLibie (wolna, ale stabilna). | |
0cddd3c2 | 113 | |
114 | %package Impl-IOAsync | |
90fc9d13 JB |
115 | Summary: AnyEvent implementation based on IO::Async |
116 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na module IO::Async | |
0cddd3c2 | 117 | Group: Development/Languages/Perl |
118 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
119 | ||
120 | %description Impl-IOAsync | |
121 | AnyEvent implementation based on IO::Async. | |
122 | ||
90fc9d13 JB |
123 | %description Impl-IOAsync -l pl.UTF-8 |
124 | Implementacja AnyEvent oparta na module IO::Async. | |
125 | ||
0cddd3c2 | 126 | %package Impl-Irssi |
127 | Summary: AnyEvent implementation for Irssi | |
90fc9d13 | 128 | Summary(pl.UTF-8): Implementacja AnyEvent dla Irssi |
0cddd3c2 | 129 | Group: Development/Languages/Perl |
130 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
131 | ||
132 | %description Impl-Irssi | |
133 | AnyEvent implementation used when running within irssi. | |
134 | ||
90fc9d13 JB |
135 | %description Impl-Irssi -l pl.UTF-8 |
136 | Implementacja AnyEvent używana wewnątrz irssi. | |
137 | ||
0cddd3c2 | 138 | %package Impl-POE |
139 | Summary: AnyEvent implementation based on POE | |
90fc9d13 | 140 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na module POE |
0cddd3c2 | 141 | Group: Development/Languages/Perl |
142 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
143 | ||
144 | %description Impl-POE | |
145 | AnyEvent implementation based on POE (very slow, some limitations). | |
146 | ||
90fc9d13 JB |
147 | %description Impl-POE -l pl.UTF-8 |
148 | Implementacja AnyEvent oparta na module POE (bardzo wolna, z | |
149 | ograniczeniami). | |
150 | ||
0cddd3c2 | 151 | %package Impl-Qt |
152 | Summary: AnyEvent implementation based on Qt | |
90fc9d13 | 153 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na Qt |
0cddd3c2 | 154 | Group: Development/Languages/Perl |
155 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
156 | ||
157 | %description Impl-Qt | |
158 | AnyEvent implementation based on Qt. | |
159 | ||
90fc9d13 JB |
160 | %description Impl-Qt -l pl.UTF-8 |
161 | Implementacja AnyEvent oparta na Qt. | |
162 | ||
0cddd3c2 | 163 | %package Impl-Tk |
164 | Summary: AnyEvent implementation based on Tk | |
90fc9d13 | 165 | Summary(pl.UTF-8): Implementacja AnyEvent oparta na Tk |
0cddd3c2 | 166 | Group: Development/Languages/Perl |
167 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
168 | ||
169 | %description Impl-Tk | |
170 | AnyEvent implementation based on Tk (very broken). | |
171 | ||
90fc9d13 JB |
172 | %description Impl-Tk -l pl.UTF-8 |
173 | Implementacja AnyEvent oparta na Tk (z licznymi błędami). | |
174 | ||
2d1e535e AM |
175 | %prep |
176 | %setup -q -n %{pnam}-%{version} | |
53738b1d | 177 | # we are not allowed to use network while building package |
56ad9067 | 178 | %{__rm} t/05_dns.t |
2d1e535e AM |
179 | |
180 | %build | |
181 | %{__perl} Makefile.PL \ | |
182 | INSTALLDIRS=vendor | |
fe03a1af | 183 | %{__make} |
2d1e535e AM |
184 | |
185 | %{?with_tests:%{__make} test} | |
186 | ||
187 | %install | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
53644f5b AM |
190 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/AnyEvent |
191 | ||
2d1e535e AM |
192 | %{__make} install \ |
193 | DESTDIR=$RPM_BUILD_ROOT | |
194 | ||
90fc9d13 JB |
195 | # Cocoa::EventLoop is OSX-only |
196 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/AnyEvent/Impl/Cocoa.pm \ | |
197 | $RPM_BUILD_ROOT%{_mandir}/man3/AnyEvent::Impl::Cocoa.3pm | |
198 | ||
9dbf8695 JR |
199 | %if %{without fltk} |
200 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/AnyEvent/Impl/FLTK.pm | |
201 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/AnyEvent::Impl::FLTK.3pm* | |
202 | %endif | |
203 | ||
2d1e535e AM |
204 | %clean |
205 | rm -rf $RPM_BUILD_ROOT | |
206 | ||
207 | %files | |
208 | %defattr(644,root,root,755) | |
fe03a1af | 209 | %doc Changes README |
53644f5b | 210 | %dir %{perl_vendorlib}/AnyEvent |
1395426b | 211 | %{perl_vendorarch}/AnyEvent.pm |
0cddd3c2 | 212 | %dir %{perl_vendorarch}/AnyEvent |
213 | %{perl_vendorarch}/AnyEvent/*.pm | |
5db3e46a | 214 | %dir %{perl_vendorarch}/AnyEvent/IO |
c65fcff4 | 215 | %{perl_vendorarch}/AnyEvent/IO/Perl.pm |
0cddd3c2 | 216 | %dir %{perl_vendorarch}/AnyEvent/Impl |
217 | # pureperl implementation, works everywhere, requires nothing | |
218 | %{perl_vendorarch}/AnyEvent/Impl/Perl.pm | |
219 | %{perl_vendorarch}/AnyEvent/Util | |
220 | %{perl_vendorarch}/AnyEvent/FAQ.pod | |
221 | %{perl_vendorarch}/AnyEvent/Intro.pod | |
222 | %{perl_vendorarch}/AnyEvent/constants.pl | |
1395426b JB |
223 | %{perl_vendorarch}/AE.pm |
224 | %{_mandir}/man3/AE.3pm* | |
0cddd3c2 | 225 | %{_mandir}/man3/AnyEvent.3pm* |
5db3e46a JB |
226 | %{_mandir}/man3/AnyEvent::[DFHLSTU]*.3pm* |
227 | %{_mandir}/man3/AnyEvent::IO*.3pm* | |
0cddd3c2 | 228 | %{_mandir}/man3/AnyEvent::Intro.3pm* |
229 | %{_mandir}/man3/AnyEvent::Impl::Perl.3pm* | |
230 | ||
c65fcff4 JB |
231 | %files IOAIO |
232 | %defattr(644,root,root,755) | |
233 | %{perl_vendorarch}/AnyEvent/IO/IOAIO.pm | |
234 | ||
0cddd3c2 | 235 | %files Impl-EV |
236 | %defattr(644,root,root,755) | |
237 | %{perl_vendorarch}/AnyEvent/Impl/EV.pm | |
238 | %{_mandir}/man3/AnyEvent::Impl::EV.3pm* | |
239 | ||
240 | %files Impl-Event | |
241 | %defattr(644,root,root,755) | |
242 | %{perl_vendorarch}/AnyEvent/Impl/Event.pm | |
243 | %{_mandir}/man3/AnyEvent::Impl::Event.3pm* | |
244 | ||
245 | %files Impl-EventLib | |
246 | %defattr(644,root,root,755) | |
247 | %{perl_vendorarch}/AnyEvent/Impl/EventLib.pm | |
248 | %{_mandir}/man3/AnyEvent::Impl::EventLib.3pm* | |
249 | ||
9dbf8695 | 250 | %if %{with fltk} |
5db3e46a JB |
251 | %files Impl-FLTK |
252 | %defattr(644,root,root,755) | |
253 | %{perl_vendorarch}/AnyEvent/Impl/FLTK.pm | |
254 | %{_mandir}/man3/AnyEvent::Impl::FLTK.3pm* | |
9dbf8695 | 255 | %endif |
5db3e46a | 256 | |
0cddd3c2 | 257 | %files Impl-Glib |
258 | %defattr(644,root,root,755) | |
259 | %{perl_vendorarch}/AnyEvent/Impl/Glib.pm | |
260 | %{_mandir}/man3/AnyEvent::Impl::Glib.3pm* | |
261 | ||
262 | %files Impl-IOAsync | |
263 | %defattr(644,root,root,755) | |
264 | %{perl_vendorarch}/AnyEvent/Impl/IOAsync.pm | |
265 | %{_mandir}/man3/AnyEvent::Impl::IOAsync.3pm* | |
266 | ||
267 | %files Impl-Irssi | |
268 | %defattr(644,root,root,755) | |
269 | %{perl_vendorarch}/AnyEvent/Impl/Irssi.pm | |
270 | %{_mandir}/man3/AnyEvent::Impl::Irssi.3pm* | |
271 | ||
272 | %files Impl-POE | |
273 | %defattr(644,root,root,755) | |
274 | %{perl_vendorarch}/AnyEvent/Impl/POE.pm | |
275 | %{_mandir}/man3/AnyEvent::Impl::POE.3pm* | |
276 | ||
277 | %files Impl-Qt | |
278 | %defattr(644,root,root,755) | |
279 | %{perl_vendorarch}/AnyEvent/Impl/Qt.pm | |
280 | %{_mandir}/man3/AnyEvent::Impl::Qt.3pm* | |
281 | ||
282 | %files Impl-Tk | |
283 | %defattr(644,root,root,755) | |
284 | %{perl_vendorarch}/AnyEvent/Impl/Tk.pm | |
285 | %{_mandir}/man3/AnyEvent::Impl::Tk.3pm* |