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