]>
Commit | Line | Data |
---|---|---|
d675728c JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built) | |
11928791 | 4 | %bcond_with apache # build apache module |
d675728c JR |
5 | |
6 | # not yet available on x32 (ocaml 4.02.1), remove when upstream will support it | |
7 | %ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9 | |
8 | %undefine with_ocaml_opt | |
9 | %endif | |
10 | ||
84639fdc | 11 | %define apxs /usr/sbin/apxs |
cb8bf70d | 12 | %define apache /usr/sbin/httpd |
cfdcf47a | 13 | Summary: Modules for Internet programming in OCaml |
553e669b | 14 | Summary(pl.UTF-8): Moduły ułatwiające pisanie programów internetowych w OCamlu |
cfdcf47a | 15 | Name: ocaml-net |
df358c15 JR |
16 | Version: 4.1.2 |
17 | Release: 1 | |
de448ef4 | 18 | License: GPL v2+ (nethttpd), LGPL v2+ (mod_caml), BSD-like (the rest) |
cfdcf47a | 19 | Group: Libraries |
6a48f6e4 | 20 | Source0: http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz |
df358c15 | 21 | # Source0-md5: cc8b3434119e51b0e855b33a687e9c4b |
6a48f6e4 | 22 | Patch0: %{name}-buildfix.patch |
84639fdc | 23 | Patch1: %{name}-lablgtk2.patch |
05dd1797 | 24 | Patch2: %{name}-apache-link.patch |
6a48f6e4 | 25 | URL: http://projects.camlcity.org/projects/ocamlnet.html |
11928791 | 26 | %if %{with apache} |
cb8bf70d | 27 | BuildRequires: %{apache} |
8448aa07 | 28 | BuildRequires: %{apxs} |
84639fdc | 29 | BuildRequires: apache-devel >= 2.0 |
11928791 | 30 | %endif |
91c26977 | 31 | BuildRequires: ncurses-devel |
84639fdc | 32 | BuildRequires: ocaml >= 1:3.09.2 |
a85e3ddf | 33 | BuildRequires: ocaml-camlp4 |
8448aa07 JR |
34 | BuildRequires: ocaml-cryptgps-devel |
35 | BuildRequires: ocaml-cryptokit-devel | |
2860521a | 36 | BuildRequires: ocaml-findlib |
a85e3ddf | 37 | BuildRequires: ocaml-findlib-devel |
84639fdc | 38 | BuildRequires: ocaml-lablgtk2-devel >= 2.14.2 |
8448aa07 JR |
39 | BuildRequires: ocaml-labltk-devel |
40 | BuildRequires: ocaml-pcre-devel | |
b92aa72c | 41 | BuildRequires: ocaml-ssl-devel |
84639fdc | 42 | BuildRequires: ocaml-zip-devel |
b92aa72c | 43 | BuildRequires: tcl-devel |
cfdcf47a MM |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
84639fdc JR |
46 | %define _apachepkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) |
47 | %define _apachesysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d | |
48 | ||
cfdcf47a | 49 | %description |
802c9167 MM |
50 | Modules for Internet programming in OCaml. |
51 | ||
a73a9323 JR |
52 | %description -l pl.UTF-8 |
53 | Moduły ułatwiające pisanie programów internetowych w OCamlu. | |
cfdcf47a | 54 | |
9de7b5fa JR |
55 | %package doc |
56 | Summary: ocaml-net documentation | |
553e669b | 57 | Summary(pl.UTF-8): Dokumentacja dla pakietów ocaml-net |
de448ef4 | 58 | License: BSD-like |
9de7b5fa JR |
59 | Group: Development/Libraries |
60 | ||
61 | %description doc | |
9906ddba | 62 | ocaml-net documentation. |
9de7b5fa | 63 | |
a73a9323 JR |
64 | %description doc -l pl.UTF-8 |
65 | Dokumentacja dla pakietów ocaml-net. | |
9de7b5fa | 66 | |
84639fdc | 67 | %package netcgi-devel |
b92aa72c JR |
68 | Summary: Common Gateway Interface library |
69 | Summary(pl.UTF-8): Biblioteka do tworzenia skryptów CGI | |
de448ef4 | 70 | License: LGPL v2+ (mod_caml), BSD-like (the rest) |
cfdcf47a | 71 | Group: Development/Libraries |
b92aa72c JR |
72 | Requires: %{name}-netplex-devel = %{version}-%{release} |
73 | Requires: %{name}-netstring-devel = %{version}-%{release} | |
74 | Requires: %{name}-netsys-devel = %{version}-%{release} | |
8448aa07 | 75 | Obsoletes: ocaml-net-cgi-devel |
cfdcf47a MM |
76 | %requires_eq ocaml |
77 | ||
84639fdc | 78 | %description netcgi-devel |
b92aa72c | 79 | Common Gateway Interface library, part of Ocamlnet. This package |
2832b715 | 80 | contains files needed to develop OCaml programs using netcgi library. |
cfdcf47a | 81 | |
84639fdc | 82 | %description netcgi-devel -l pl.UTF-8 |
2832b715 JB |
83 | Biblioteka do tworzenia skryptów CGI, część pakietu Ocamlnet. Ten |
84 | pakiet zawiera pliki niezbędne do tworzenia programów używających | |
85 | biblioteki netcgi. | |
cfdcf47a | 86 | |
84639fdc | 87 | %package -n apache-mod_netcgi |
11928791 JR |
88 | Summary: Apache module |
89 | Summary(pl.UTF-8): Moduł Apache'a | |
84639fdc JR |
90 | Group: Networking/Daemons/HTTP |
91 | Requires: apache(modules-api) = %apache_modules_api | |
92 | ||
93 | %description -n apache-mod_netcgi | |
94 | ||
95 | %description -n apache-mod_netcgi -l pl.UTF-8 | |
96 | ||
b92aa72c JR |
97 | %package equeue-devel |
98 | Summary: Event queue library for OCaml | |
99 | Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla | |
de448ef4 | 100 | License: BSD-like |
b92aa72c JR |
101 | Group: Development/Libraries |
102 | Requires: %{name}-netsys-devel = %{version}-%{release} | |
103 | %requires_eq ocaml | |
104 | Obsoletes: ocaml-equeue-devel | |
b92aa72c JR |
105 | |
106 | %description equeue-devel | |
107 | Equeue provides a generic event queue module, and a specific module | |
108 | for file descriptor events. | |
109 | ||
110 | This package contains files needed to develop OCaml programs using | |
2832b715 | 111 | equeue library. |
b92aa72c JR |
112 | |
113 | %description equeue-devel -l pl.UTF-8 | |
114 | Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również | |
115 | modułu obsługi zdarzeń na deskryptorach plików. | |
116 | ||
2832b715 JB |
117 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających |
118 | biblioteki equeue. | |
b92aa72c | 119 | |
84639fdc JR |
120 | %package equeue-gtk2-devel |
121 | Summary: GTK2 event queue library for OCaml | |
122 | Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń GTK2 dla OCamla | |
123 | License: BSD-like | |
124 | Group: Development/Libraries | |
125 | Requires: %{name}-equeue-devel = %{version}-%{release} | |
7be49e88 | 126 | Requires: ocaml-lablgtk2-devel |
84639fdc JR |
127 | %requires_eq ocaml |
128 | ||
129 | %description equeue-gtk2-devel | |
130 | Equeue provides a generic event queue module, and a specific module | |
131 | for file descriptor events. | |
132 | ||
133 | This package contains files needed to develop OCaml programs using | |
134 | GTK2 equeue library. | |
135 | ||
136 | %description equeue-gtk2-devel -l pl.UTF-8 | |
137 | Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również | |
138 | modułu obsługi zdarzeń na deskryptorach plików. | |
139 | ||
140 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających | |
141 | biblioteki equeue GTK2. | |
142 | ||
b92aa72c JR |
143 | %package equeue-tcl |
144 | Summary: Event queue library for OCaml, Tcl support | |
145 | Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla, wsparcie dla Tcl | |
de448ef4 | 146 | License: BSD-like |
b92aa72c JR |
147 | Group: Libraries |
148 | %requires_eq ocaml-runtime | |
149 | %requires_eq ocaml-labltk | |
2832b715 | 150 | Obsoletes: ocaml-equeue-tcl |
b92aa72c JR |
151 | |
152 | %description equeue-tcl | |
153 | This package makes it possible to let Equeue cooperate with the event | |
154 | queue implementation of Tcl. | |
155 | ||
156 | This package contains files needed to run bytecode executables using | |
2832b715 | 157 | equeue-tcl library. |
b92aa72c JR |
158 | |
159 | %description equeue-tcl -l pl.UTF-8 | |
160 | Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń | |
161 | w Tcl. | |
162 | ||
2832b715 JB |
163 | Ten pakiet zawiera moduły potrzebne do uruchamiania programów |
164 | używających biblioteki equeue-tcl. | |
b92aa72c JR |
165 | |
166 | %package equeue-tcl-devel | |
167 | Summary: Equeue Tcl support - development part | |
168 | Summary(pl.UTF-8): Wsparcie dla Tcl-a w equeue - cześć programistyczna | |
de448ef4 | 169 | License: BSD-like |
b92aa72c JR |
170 | Group: Development/Libraries |
171 | Requires: %{name}-equeue-devel = %{version}-%{release} | |
172 | Requires: %{name}-equeue-tcl = %{version}-%{release} | |
173 | %requires_eq ocaml-labltk-devel | |
174 | %requires_eq ocaml | |
2832b715 | 175 | Obsoletes: ocaml-equeue-tcl-devel |
b92aa72c JR |
176 | |
177 | %description equeue-tcl-devel | |
178 | This package makes it possible to let Equeue cooperate with the event | |
179 | queue implementation of Tcl. | |
180 | ||
181 | This package contains files needed to develop OCaml programs using | |
182 | this library. | |
183 | ||
184 | %description equeue-tcl-devel -l pl.UTF-8 | |
185 | Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń | |
186 | w Tcl. | |
187 | ||
2832b715 JB |
188 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających |
189 | biblioteki equeue-tcl. | |
b92aa72c | 190 | |
84639fdc JR |
191 | %package netcamlbox-devel |
192 | Summary: Fast IPC mechanism for OCaml | |
193 | Summary(pl.UTF-8): Szybki mechanizm IPC dla OCamla | |
194 | License: BSD-like | |
195 | Group: Development/Libraries | |
196 | Requires: %{name}-netsys-devel = %{version}-%{release} | |
197 | %requires_eq ocaml | |
198 | ||
199 | %description netcamlbox-devel | |
8448aa07 JR |
200 | Camlboxes are a fast IPC mechanism to send Ocaml values from one |
201 | process to another. Source and destination processes must run on the | |
202 | same machine (no network). The Ocaml value is copied to a shared | |
203 | memory object where it can be directly accessed by the receiver | |
204 | without unmarshalling step. This means the sender writes the value | |
205 | into the shared memory in a format that can immediately interpreted by | |
206 | the receiver. | |
84639fdc JR |
207 | |
208 | This package contains files needed to develop OCaml programs using | |
209 | netcamlbox library. | |
210 | ||
211 | %description netcamlbox-devel -l pl.UTF-8 | |
8448aa07 JR |
212 | Camlboxy są szybkim mechanizmem IPC do przesyłania danych Ocamla |
213 | pomiędzy procesami. Nadawca i odbiorca muszą być uruchomione na tej | |
214 | samej maszynie. Dane Ocamla są kopiowane do segmentu pamięci | |
215 | dzielonej, gdzie mogą byc bezpośrednio odczytywane przez odbiorcę. | |
84639fdc JR |
216 | |
217 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających | |
218 | biblioteki netcamlbox. | |
219 | ||
b92aa72c JR |
220 | %package netclient-devel |
221 | Summary: HTTP 1.1 client for OCaml | |
222 | Summary(pl.UTF-8): Klient HTTP 1.1 dla OCamla | |
de448ef4 | 223 | License: BSD-like |
b92aa72c JR |
224 | Group: Development/Libraries |
225 | Requires: %{name}-equeue-devel = %{version}-%{release} | |
226 | Requires: %{name}-netstring-devel = %{version}-%{release} | |
227 | %requires_eq ocaml | |
228 | Obsoletes: ocaml-netclient-devel | |
229 | ||
230 | %description netclient-devel | |
231 | Implements much of HTTP/1.1. Implements the following advanced | |
232 | features: chunked messages; persistent connections; connections in | |
233 | pipelining mode ("full duplex" connections); modular authentication | |
234 | methods, currently Basic and Digest; event-driven implementation; | |
235 | allows concurrent service for several network connections. | |
236 | ||
237 | This package contains files needed to develop OCaml programs using | |
2832b715 | 238 | netclient library. |
b92aa72c JR |
239 | |
240 | %description netclient-devel -l pl.UTF-8 | |
2832b715 JB |
241 | Biblioteka netclient implementuje większość HTTP/1.1, a także |
242 | następujące zaawansowane właściwości: komunikaty w kawałkach; | |
243 | połączenia stałe; połączenia w trybie "full duplex"; modularne metody | |
244 | uwierzytelniania, obecnie Basic i Digest; implementacja oparta na | |
245 | zdarzeniach; umożliwia jednoczesną obsługę kilku połączeń. | |
b92aa72c | 246 | |
2832b715 JB |
247 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających |
248 | biblioteki netclient. | |
b92aa72c | 249 | |
df358c15 JR |
250 | %package netgss-system |
251 | Summary: GSS-API generic definition | |
252 | Summary(pl.UTF-8): Biblioteka do obsługi protokołu GSSAPI | |
253 | License: GPL v2+ | |
254 | Group: Libraries | |
255 | Requires: %{name}-netstring = %{version}-%{release} | |
256 | Requires: %{name}-netsys = %{version}-%{release} | |
257 | %requires_eq ocaml | |
258 | ||
259 | %description netgss-system | |
260 | GSSAPI library, part of Ocamlnet. This package contains the files | |
261 | needed to develop OCaml programs using netgss-system library. | |
262 | ||
263 | %description netgss-system -l pl.UTF-8 | |
264 | Biblioteka do obsługi protokołu GSSAPI, część pakietu Ocamlnet. Ten | |
265 | pakiet zawiera pliki niezbędne do tworzenia programów używających | |
266 | biblioteki netgss-system. | |
267 | ||
268 | %package netgss-system-devel | |
84639fdc JR |
269 | Summary: GSS-API generic definition |
270 | Summary(pl.UTF-8): Biblioteka do obsługi protokołu GSSAPI | |
271 | License: GPL v2+ | |
272 | Group: Development/Libraries | |
df358c15 | 273 | Requires: %{name}-netgss-system-devel = %{version}-%{release} |
84639fdc JR |
274 | Requires: %{name}-netstring-devel = %{version}-%{release} |
275 | Requires: %{name}-netsys-devel = %{version}-%{release} | |
276 | %requires_eq ocaml | |
277 | ||
df358c15 | 278 | %description netgss-system-devel |
84639fdc | 279 | GSSAPI library, part of Ocamlnet. This package contains the files |
df358c15 | 280 | needed to develop OCaml programs using netgss-system library. |
84639fdc | 281 | |
df358c15 | 282 | %description netgss-system-devel -l pl.UTF-8 |
84639fdc JR |
283 | Biblioteka do obsługi protokołu GSSAPI, część pakietu Ocamlnet. Ten |
284 | pakiet zawiera pliki niezbędne do tworzenia programów używających | |
df358c15 | 285 | biblioteki netgss-system. |
84639fdc | 286 | |
9de7b5fa JR |
287 | %package nethttpd-devel |
288 | Summary: HTTPd library | |
553e669b | 289 | Summary(pl.UTF-8): Biblioteka do obsługi protokołu HTTP |
de448ef4 | 290 | License: GPL v2+ |
9de7b5fa | 291 | Group: Development/Libraries |
b92aa72c | 292 | Requires: %{name}-equeue-devel = %{version}-%{release} |
8448aa07 | 293 | Requires: %{name}-netcgi-devel = %{version}-%{release} |
b92aa72c | 294 | Requires: %{name}-netplex-devel = %{version}-%{release} |
9de7b5fa JR |
295 | %requires_eq ocaml-pcre-devel |
296 | %requires_eq ocaml | |
297 | ||
298 | %description nethttpd-devel | |
9906ddba | 299 | HTTPd library, part of Ocamlnet. This package contains the files |
2832b715 | 300 | needed to develop OCaml programs using nethttpd library. |
9de7b5fa | 301 | |
a73a9323 | 302 | %description nethttpd-devel -l pl.UTF-8 |
2832b715 JB |
303 | Biblioteka do obsługi protokołu HTTP, część pakietu Ocamlnet. Ten |
304 | pakiet zawiera pliki niezbędne do tworzenia programów używających | |
305 | biblioteki nethttpd. | |
9de7b5fa | 306 | |
84639fdc JR |
307 | %package netmulticore-devel |
308 | Summary: Multi-processing for compute jobs | |
309 | Summary(pl.UTF-8): Obsługa wieloprocesorowych obliczeń | |
310 | License: GPL v2+ | |
311 | Group: Development/Libraries | |
312 | Requires: %{name}-netcamlbox-devel = %{version}-%{release} | |
313 | Requires: %{name}-netplex-devel = %{version}-%{release} | |
314 | %requires_eq ocaml | |
315 | ||
316 | %description netmulticore-devel | |
317 | Netmcore library, part of Ocamlnet. This package contains the files | |
318 | needed to develop OCaml programs using netmulticore library. | |
319 | ||
320 | %description netmulticore-devel -l pl.UTF-8 | |
8448aa07 JR |
321 | Biblioteka do obsługi wieloprocesorowych obliczeń, część pakietu |
322 | Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów | |
323 | używających biblioteki netmulticore. | |
84639fdc | 324 | |
b92aa72c JR |
325 | %package netplex |
326 | Summary: Server framework | |
2832b715 | 327 | Summary(pl.UTF-8): Szkielet serwerowy |
de448ef4 | 328 | License: BSD-like |
b92aa72c JR |
329 | Group: Libraries |
330 | %requires_eq ocaml-runtime | |
331 | %requires_eq ocaml-labltk | |
332 | ||
333 | %description netplex | |
334 | Server framework. | |
335 | ||
336 | This package contains files needed to run bytecode executables using | |
2832b715 | 337 | netplex library. |
b92aa72c | 338 | |
2832b715 JB |
339 | %description netplex -l pl.UTF-8 |
340 | Szkielet serwerowy. | |
341 | ||
342 | Ten pakiet zawiera moduły potrzebne do uruchamiania programów | |
343 | używających biblioteki netplex. | |
b92aa72c JR |
344 | |
345 | %package netplex-devel | |
346 | Summary: Server framework - development part | |
2832b715 | 347 | Summary(pl.UTF-8): Szkielet serwerowy - cześć programistyczna |
de448ef4 | 348 | License: BSD-like |
cfdcf47a | 349 | Group: Development/Libraries |
b92aa72c | 350 | Requires: %{name}-equeue-devel = %{version}-%{release} |
8448aa07 | 351 | Requires: %{name}-netplex = %{version}-%{release} |
cfdcf47a | 352 | Requires: %{name}-netstring-devel = %{version}-%{release} |
b92aa72c | 353 | Requires: %{name}-netsys-devel = %{version}-%{release} |
8448aa07 | 354 | Requires: %{name}-rpc-devel = %{version}-%{release} |
cfdcf47a MM |
355 | %requires_eq ocaml |
356 | ||
b92aa72c JR |
357 | %description netplex-devel |
358 | Server framework. | |
cfdcf47a | 359 | |
b92aa72c | 360 | This package contains files needed to develop OCaml programs using |
2832b715 | 361 | netplex library. |
b92aa72c | 362 | |
2832b715 JB |
363 | %description netplex-devel -l pl.UTF-8 |
364 | Szkielet serwerowy. | |
365 | ||
366 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających | |
367 | biblioteki netplex. | |
b92aa72c JR |
368 | |
369 | %package netshm-devel | |
2832b715 JB |
370 | Summary: Shared memory support - development package |
371 | Summary(pl.UTF-8): Obsługa pamięci dzielonej - pakiet programistyczny | |
de448ef4 | 372 | License: BSD-like |
b92aa72c JR |
373 | Group: Development/Libraries |
374 | Requires: %{name}-netsys-devel = %{version}-%{release} | |
375 | %requires_eq ocaml | |
376 | ||
377 | %description netshm-devel | |
378 | Shared memory support. | |
379 | ||
380 | This package contains files needed to develop OCaml programs using | |
2832b715 | 381 | netshm library. |
b92aa72c | 382 | |
2832b715 JB |
383 | %description netshm-devel -l pl.UTF-8 |
384 | Obsługa pamięci dzielonej. | |
385 | ||
386 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających | |
387 | biblioteki netshm. | |
b92aa72c | 388 | |
a6bd7b81 JR |
389 | %package netstring |
390 | Summary: String processing library | |
391 | Summary(pl.UTF-8): Biblioteka do przetwarzania napisów | |
392 | License: BSD-like | |
393 | Group: Libraries | |
394 | Requires: %{name}-netsys-devel = %{version}-%{release} | |
395 | %requires_eq ocaml-pcre-devel | |
396 | %requires_eq ocaml | |
397 | ||
398 | %description netstring | |
399 | String processing library, part of Ocamlnet. | |
400 | ||
401 | %description netstring -l pl.UTF-8 | |
402 | Biblioteka do przetwarzania napisów, część pakietu Ocamlnet. | |
403 | ||
b92aa72c JR |
404 | %package netstring-devel |
405 | Summary: String processing library | |
406 | Summary(pl.UTF-8): Biblioteka do przetwarzania napisów | |
de448ef4 | 407 | License: BSD-like |
b92aa72c | 408 | Group: Development/Libraries |
a6bd7b81 | 409 | Requires: %{name}-netstring = %{version}-%{release} |
b92aa72c JR |
410 | Requires: %{name}-netsys-devel = %{version}-%{release} |
411 | %requires_eq ocaml-pcre-devel | |
412 | %requires_eq ocaml | |
413 | ||
414 | %description netstring-devel | |
415 | String processing library, part of Ocamlnet. This package contains | |
2832b715 | 416 | files needed to develop OCaml programs using netstring library. |
b92aa72c JR |
417 | |
418 | %description netstring-devel -l pl.UTF-8 | |
2832b715 JB |
419 | Biblioteka do przetwarzania napisów, część pakietu Ocamlnet. Ten |
420 | pakiet zawiera pliki niezbędne do tworzenia programów używających | |
421 | biblioteki netstring. | |
cfdcf47a | 422 | |
b92aa72c JR |
423 | %package netsys |
424 | Summary: OS-specific functions | |
2832b715 | 425 | Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego |
de448ef4 | 426 | License: BSD-like |
b92aa72c JR |
427 | Group: Libraries |
428 | %requires_eq ocaml-runtime | |
429 | ||
430 | %description netsys | |
431 | OS-specific functions. | |
432 | ||
433 | This package contains files needed to run bytecode executables using | |
2832b715 | 434 | netsys library. |
b92aa72c | 435 | |
2832b715 JB |
436 | %description netsys -l pl.UTF-8 |
437 | Funkcje specyficzne dla systemu operacyjnego. | |
438 | ||
439 | Ten pakiet zawiera moduły potrzebne do uruchamiania programów | |
440 | używających biblioteki netsys. | |
b92aa72c JR |
441 | |
442 | %package netsys-devel | |
443 | Summary: OS-specific functions - development part | |
2832b715 | 444 | Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego - cześć programistyczna |
de448ef4 | 445 | License: BSD-like |
b92aa72c JR |
446 | Group: Development/Libraries |
447 | Requires: %{name}-netsys = %{version}-%{release} | |
448 | %requires_eq ocaml | |
449 | ||
450 | %description netsys-devel | |
451 | OS-specific functions. | |
452 | ||
453 | This package contains files needed to develop OCaml programs using | |
2832b715 | 454 | netsys library. |
b92aa72c | 455 | |
2832b715 JB |
456 | %description netsys-devel -l pl.UTF-8 |
457 | Funkcje specyficzne dla systemu operacyjnego. | |
458 | ||
459 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających | |
460 | biblioteki netsys. | |
b92aa72c | 461 | |
84639fdc JR |
462 | %package netzip-devel |
463 | Summary: Gzip channels - development part | |
464 | Summary(pl.UTF-8): Funkcje do kompresji kanałow - cześć programistyczna | |
465 | License: BSD-like | |
466 | Group: Development/Libraries | |
7be49e88 | 467 | Requires: %{name}-netstring-devel = %{version}-%{release} |
84639fdc JR |
468 | %requires_eq ocaml |
469 | ||
470 | %description netzip-devel | |
471 | Gzip channels functions. | |
472 | ||
473 | This package contains files needed to develop OCaml programs using | |
474 | netzip library. | |
475 | ||
476 | %description netzip-devel -l pl.UTF-8 | |
477 | Funkcje do kompresji kanałow. | |
478 | ||
479 | Ten pakiet zawiera pliki niezbędne do tworzenia programów używających | |
480 | biblioteki netzip. | |
481 | ||
b92aa72c | 482 | %package rpc |
2832b715 JB |
483 | Summary: Remote Procedure Call (RPC) libraries |
484 | Summary(pl.UTF-8): Biblioteki do obsługi RPC | |
de448ef4 | 485 | License: BSD-like |
b92aa72c | 486 | Group: Development/Libraries |
b92aa72c JR |
487 | %requires_eq ocaml |
488 | ||
489 | %description rpc | |
2832b715 | 490 | Remote Procedure Call (RPC) libraries. |
b92aa72c JR |
491 | |
492 | %description rpc -l pl.UTF-8 | |
2832b715 | 493 | Biblioteki do obsługi RPC. |
b92aa72c JR |
494 | |
495 | %package rpc-devel | |
2832b715 JB |
496 | Summary: Remote Procedure Call (RPC) libraries - development part |
497 | Summary(pl.UTF-8): Biblioteki do obsługi RPC - część programistyczna | |
de448ef4 | 498 | License: BSD-like |
b92aa72c | 499 | Group: Development/Libraries |
b92aa72c JR |
500 | Requires: %{name}-rpc = %{version}-%{release} |
501 | %requires_eq ocaml | |
502 | ||
503 | %description rpc-devel | |
2832b715 | 504 | Remote Procedure Call (RPC) libraries - development part. |
b92aa72c JR |
505 | |
506 | %description rpc-devel -l pl.UTF-8 | |
2832b715 | 507 | Biblioteki do obsługi RPC - część programistyczna. |
b92aa72c JR |
508 | |
509 | %package shell-devel | |
510 | Summary: Unix shell functions | |
2832b715 | 511 | Summary(pl.UTF-8): Funkcje powłoki uniksowej |
de448ef4 | 512 | License: BSD-like |
b92aa72c | 513 | Group: Development/Libraries |
b92aa72c | 514 | Requires: %{name}-equeue-devel = %{version}-%{release} |
8448aa07 | 515 | Requires: %{name}-netsys-devel = %{version}-%{release} |
b92aa72c JR |
516 | %requires_eq ocaml |
517 | ||
518 | %description shell-devel | |
519 | Unix shell functions. | |
520 | ||
2832b715 JB |
521 | %description shell-devel -l pl.UTF-8 |
522 | Funkcje powłoki uniksowej. | |
b92aa72c | 523 | |
df358c15 JR |
524 | %package netunidata-devel |
525 | Summary: Unicode lookup tables | |
526 | License: BSD-like | |
527 | Group: Development/Libraries | |
528 | Requires: %{name}-netstring-devel = %{version}-%{release} | |
529 | Requires: %{name}-netunidata-devel = %{version}-%{release} | |
530 | %requires_eq ocaml | |
8735b5fe | 531 | |
df358c15 JR |
532 | %description netunidata-devel |
533 | Unicode lookup tables. | |
4067530e | 534 | |
cfdcf47a MM |
535 | %prep |
536 | %setup -q -n ocamlnet-%{version} | |
6a48f6e4 | 537 | %patch0 -p1 |
84639fdc JR |
538 | %patch1 -p1 |
539 | %patch2 -p1 | |
cfdcf47a MM |
540 | |
541 | %build | |
cfdcf47a MM |
542 | # no %%configure, please |
543 | ./configure \ | |
05dd1797 | 544 | -disable-gtk \ |
84639fdc | 545 | -enable-gtk2 \ |
84639fdc | 546 | -enable-zip \ |
df358c15 | 547 | -enable-gssapi \ |
11928791 | 548 | %if %{with apache} |
84639fdc | 549 | -enable-apache \ |
11928791 JR |
550 | %else |
551 | -disable-apache \ | |
552 | %endif | |
b92aa72c JR |
553 | -enable-tcl \ |
554 | -equeue-tcl-libs "-ltcl" \ | |
84639fdc JR |
555 | -with-nethttpd \ |
556 | -apxs %{apxs} \ | |
cb8bf70d | 557 | -apache %{apache} |
b92aa72c | 558 | |
d675728c | 559 | %{__make} -j1 all %{?with_ocaml_opt:opt} |
cfdcf47a MM |
560 | |
561 | %install | |
562 | rm -rf $RPM_BUILD_ROOT | |
a6bd7b81 | 563 | install -d $RPM_BUILD_ROOT{%{_libdir}/ocaml/stublibs,%{_apachepkglibdir},%{_apachesysconfdir}} |
7b251678 | 564 | |
9de7b5fa JR |
565 | %{__make} -j1 install \ |
566 | OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \ | |
567 | DESTDIR=$RPM_BUILD_ROOT | |
7b251678 | 568 | |
b92aa72c | 569 | cd src |
df358c15 | 570 | for f in e* n* p* r* shell ; do |
b92aa72c | 571 | [ -d $RPM_BUILD_ROOT%{_libdir}/ocaml/$f ] || continue |
cfdcf47a MM |
572 | install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f |
573 | mv $RPM_BUILD_ROOT%{_libdir}/ocaml/$f/META \ | |
7b251678 | 574 | $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/ |
cfdcf47a MM |
575 | echo "directory = \"+$f\"" \ |
576 | >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/META | |
577 | done | |
578 | cd .. | |
b92aa72c | 579 | |
11928791 | 580 | %if %{with apache} |
05dd1797 | 581 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/netcgi2-apache/500netcgi_apache.info |
a6bd7b81 | 582 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/mod_netcgi_apache.so* |
8448aa07 | 583 | |
84639fdc JR |
584 | install -p src/netcgi2-apache/mod_netcgi_apache.so $RPM_BUILD_ROOT%{_apachepkglibdir}/mod_netcgi.so |
585 | cat <<EOF >$RPM_BUILD_ROOT%{_apachesysconfdir}/90_mod_netcgi.conf | |
586 | LoadModule netcgi_module modules/mod_netcgi.so | |
587 | ||
588 | <IfModule netcgi_module> | |
589 | NetcgiLoad pcre/pcre.cma | |
590 | NetcgiLoad netsys/netsys.cma | |
591 | NetcgiLoad netstring/netstring.cma | |
592 | NetcgiLoad str.cma | |
593 | NetcgiLoad netcgi2/netcgi.cma | |
594 | NetcgiLoad netcgi2-apache/netcgi_apache.cma | |
595 | ||
596 | NetcgiHandler Netcgi_apache.bytecode | |
597 | AddHandler ocaml-bytecode .cma | |
598 | ||
599 | # Alias /caml-bin/ /path/to/your/scripts/ | |
600 | # <Location /caml-bin> | |
601 | # SetHandler ocaml-bytecode | |
602 | # NetcgiHandler Netcgi_apache.bytecode | |
603 | # Options ExecCGI | |
604 | # Allow from all | |
605 | # </Location> | |
606 | </IfModule> | |
607 | EOF | |
11928791 | 608 | %endif |
84639fdc | 609 | |
7b251678 MM |
610 | # not sure about *.o |
611 | rm $RPM_BUILD_ROOT%{_libdir}/ocaml/*/*.mli | |
cfdcf47a | 612 | |
df358c15 | 613 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-{netcgi,equeue,netcamlbox,netmulticore,netclient,nethttpd,rpc}-%{version} |
84639fdc JR |
614 | cp -r examples/camlbox/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcamlbox-%{version} |
615 | cp -r examples/cgi/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcgi-%{version} | |
b92aa72c | 616 | cp -r examples/equeue/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-equeue-%{version} |
84639fdc | 617 | cp -r examples/multicore/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netmulticore-%{version} |
b92aa72c | 618 | cp -r examples/netclient/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netclient-%{version} |
9de7b5fa | 619 | cp -r examples/nethttpd/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-nethttpd-%{version} |
b92aa72c | 620 | cp -r examples/rpc/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-rpc-%{version} |
cfdcf47a | 621 | |
cfdcf47a MM |
622 | %clean |
623 | rm -rf $RPM_BUILD_ROOT | |
624 | ||
9de7b5fa JR |
625 | %files doc |
626 | %defattr(644,root,root,755) | |
b92aa72c JR |
627 | %doc LICENSE* ChangeLog RELNOTES doc/html-main |
628 | ||
84639fdc | 629 | %files netcgi-devel |
b92aa72c JR |
630 | %defattr(644,root,root,755) |
631 | %dir %{_libdir}/ocaml/netcgi* | |
632 | %{_libdir}/ocaml/netcgi*/*.cm[ixao]* | |
11928791 | 633 | %if %{with ocaml_opt} |
b92aa72c | 634 | %{_libdir}/ocaml/netcgi*/*.a |
11928791 | 635 | %endif |
b92aa72c | 636 | %{_libdir}/ocaml/site-lib/*cgi* |
84639fdc JR |
637 | %{_examplesdir}/%{name}-netcgi-%{version} |
638 | ||
11928791 | 639 | %if %{with apache} |
84639fdc JR |
640 | %files -n apache-mod_netcgi |
641 | %defattr(644,root,root,755) | |
642 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_apachesysconfdir}/*_mod_netcgi.conf | |
643 | %attr(755,root,root) %{_apachepkglibdir}/mod_netcgi.so | |
11928791 | 644 | %endif |
b92aa72c JR |
645 | |
646 | %files equeue-devel | |
647 | %defattr(644,root,root,755) | |
648 | %dir %{_libdir}/ocaml/equeue | |
649 | %{_libdir}/ocaml/equeue/*.cm[ixao]* | |
11928791 | 650 | %if %{with ocaml_opt} |
b92aa72c | 651 | %{_libdir}/ocaml/equeue/*.a |
11928791 | 652 | %endif |
b92aa72c JR |
653 | %{_libdir}/ocaml/site-lib/equeue |
654 | %{_examplesdir}/%{name}-equeue-%{version} | |
655 | ||
84639fdc JR |
656 | %files equeue-gtk2-devel |
657 | %defattr(644,root,root,755) | |
658 | %dir %{_libdir}/ocaml/equeue-gtk2 | |
659 | %{_libdir}/ocaml/equeue-gtk2/*.cm[ixao]* | |
11928791 | 660 | %if %{with ocaml_opt} |
84639fdc | 661 | %{_libdir}/ocaml/equeue-gtk2/*.a |
11928791 | 662 | %endif |
84639fdc JR |
663 | %{_libdir}/ocaml/site-lib/equeue-gtk2 |
664 | ||
b92aa72c JR |
665 | %files equeue-tcl |
666 | %defattr(644,root,root,755) | |
667 | %dir %{_libdir}/ocaml/equeue-tcl | |
a6bd7b81 JR |
668 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllequeue_tcl.so |
669 | %{_libdir}/ocaml/stublibs/dllequeue_tcl.so.owner | |
b92aa72c JR |
670 | |
671 | %files equeue-tcl-devel | |
672 | %defattr(644,root,root,755) | |
673 | %{_libdir}/ocaml/equeue-tcl/*.cm[ixao]* | |
95675eee | 674 | %{_libdir}/ocaml/equeue-tcl/libequeue_tcl*.a |
11928791 | 675 | %if %{with ocaml_opt} |
95675eee | 676 | %{_libdir}/ocaml/equeue-tcl/equeue_tcl*.a |
11928791 | 677 | %endif |
b92aa72c JR |
678 | %{_libdir}/ocaml/site-lib/equeue-tcl |
679 | ||
84639fdc JR |
680 | %files netcamlbox-devel |
681 | %defattr(644,root,root,755) | |
682 | %dir %{_libdir}/ocaml/netcamlbox | |
683 | %{_libdir}/ocaml/netcamlbox/*.cm[ixao]* | |
11928791 | 684 | %if %{with ocaml_opt} |
84639fdc | 685 | %{_libdir}/ocaml/netcamlbox/*.a |
11928791 | 686 | %endif |
84639fdc JR |
687 | %{_libdir}/ocaml/site-lib/netcamlbox |
688 | %{_examplesdir}/%{name}-netcamlbox-%{version} | |
689 | ||
b92aa72c JR |
690 | %files netclient-devel |
691 | %defattr(644,root,root,755) | |
692 | %dir %{_libdir}/ocaml/netclient | |
693 | %{_libdir}/ocaml/netclient/*.cm[ixao]* | |
11928791 | 694 | %if %{with ocaml_opt} |
b92aa72c | 695 | %{_libdir}/ocaml/netclient/*.a |
11928791 | 696 | %endif |
b92aa72c JR |
697 | %{_libdir}/ocaml/site-lib/netclient |
698 | %{_examplesdir}/%{name}-netclient-%{version} | |
9de7b5fa | 699 | |
df358c15 JR |
700 | %files netgss-system |
701 | %defattr(644,root,root,755) | |
702 | %dir %{_libdir}/ocaml/netgss-system | |
703 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetgss-system.so | |
704 | %{_libdir}/ocaml/stublibs/dllnetgss-system.so.owner | |
705 | ||
706 | %files netgss-system-devel | |
84639fdc | 707 | %defattr(644,root,root,755) |
df358c15 | 708 | %{_libdir}/ocaml/netgss-system/*.cm[ixao]* |
11928791 | 709 | %if %{with ocaml_opt} |
9437c35d | 710 | %{_libdir}/ocaml/netgss-system/netgss-system*.a |
11928791 | 711 | %endif |
9437c35d | 712 | %{_libdir}/ocaml/netgss-system/libnetgss-system*.a |
df358c15 | 713 | %{_libdir}/ocaml/site-lib/netgss-system |
84639fdc | 714 | |
9de7b5fa JR |
715 | %files nethttpd-devel |
716 | %defattr(644,root,root,755) | |
84639fdc JR |
717 | %dir %{_libdir}/ocaml/nethttpd |
718 | %{_libdir}/ocaml/nethttpd/*.cm[ixa]* | |
11928791 | 719 | %if %{with ocaml_opt} |
84639fdc | 720 | %{_libdir}/ocaml/nethttpd/*.a |
11928791 | 721 | %endif |
84639fdc | 722 | %{_libdir}/ocaml/site-lib/nethttpd |
9de7b5fa | 723 | %{_examplesdir}/%{name}-nethttpd-%{version} |
4067530e | 724 | |
84639fdc JR |
725 | %files netmulticore-devel |
726 | %defattr(644,root,root,755) | |
727 | %dir %{_libdir}/ocaml/netmulticore | |
728 | %{_libdir}/ocaml/netmulticore/*.cm[ixa]* | |
11928791 | 729 | %if %{with ocaml_opt} |
84639fdc | 730 | %{_libdir}/ocaml/netmulticore/*.a |
11928791 | 731 | %endif |
84639fdc JR |
732 | %{_libdir}/ocaml/site-lib/netmulticore |
733 | %{_examplesdir}/%{name}-netmulticore-%{version} | |
734 | ||
b92aa72c JR |
735 | %files netplex |
736 | %defattr(644,root,root,755) | |
737 | %attr(755,root,root) %{_bindir}/netplex-admin | |
a6bd7b81 | 738 | %dir %{_libdir}/ocaml/netplex |
11928791 | 739 | %if %{with ocaml_opt} |
a6bd7b81 | 740 | %{_libdir}/ocaml/netplex/*.o |
11928791 | 741 | %endif |
b92aa72c JR |
742 | |
743 | %files netplex-devel | |
744 | %defattr(644,root,root,755) | |
b92aa72c JR |
745 | %{_libdir}/ocaml/netplex/netplex-packlist |
746 | %{_libdir}/ocaml/netplex/*.cm[ixao]* | |
11928791 | 747 | %if %{with ocaml_opt} |
b92aa72c | 748 | %{_libdir}/ocaml/netplex/*.a |
11928791 | 749 | %endif |
b92aa72c JR |
750 | %{_libdir}/ocaml/site-lib/netplex |
751 | ||
752 | %files netshm-devel | |
753 | %defattr(644,root,root,755) | |
754 | %dir %{_libdir}/ocaml/netshm | |
755 | %{_libdir}/ocaml/netshm/*.cm[ixao]* | |
11928791 | 756 | %if %{with ocaml_opt} |
b92aa72c | 757 | %{_libdir}/ocaml/netshm/*.a |
11928791 | 758 | %endif |
b92aa72c JR |
759 | %{_libdir}/ocaml/site-lib/netshm |
760 | ||
a6bd7b81 | 761 | %files netstring |
cfdcf47a | 762 | %defattr(644,root,root,755) |
cfdcf47a | 763 | %dir %{_libdir}/ocaml/netstring |
a6bd7b81 JR |
764 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetaccel_c.so |
765 | %{_libdir}/ocaml/stublibs/dllnetaccel_c.so.owner | |
766 | ||
767 | %files netstring-devel | |
768 | %defattr(644,root,root,755) | |
4b20b465 | 769 | %{_libdir}/ocaml/netstring/*.cm[ixao]* |
11928791 JR |
770 | %{_libdir}/ocaml/netstring/libnetaccel_c.a |
771 | %if %{with ocaml_opt} | |
772 | %{_libdir}/ocaml/netstring/netstring*.a | |
773 | %endif | |
cfdcf47a MM |
774 | %{_libdir}/ocaml/site-lib/netstring |
775 | ||
b92aa72c | 776 | %files netsys |
cfdcf47a | 777 | %defattr(644,root,root,755) |
b92aa72c | 778 | %dir %{_libdir}/ocaml/netsys |
84639fdc | 779 | %{_libdir}/ocaml/netsys/*.o |
a6bd7b81 JR |
780 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetsys.so |
781 | %{_libdir}/ocaml/stublibs/dllnetsys.so.owner | |
b92aa72c JR |
782 | |
783 | %files netsys-devel | |
784 | %defattr(644,root,root,755) | |
785 | %{_libdir}/ocaml/netsys/*.cm[ixao]* | |
95675eee | 786 | %{_libdir}/ocaml/netsys/libnetsys*.a |
11928791 | 787 | %if %{with ocaml_opt} |
95675eee | 788 | %{_libdir}/ocaml/netsys/netsys*.a |
11928791 | 789 | %endif |
05dd1797 | 790 | %{_libdir}/ocaml/netsys/netsys_c_event.h |
b92aa72c | 791 | %{_libdir}/ocaml/site-lib/netsys |
cfdcf47a | 792 | |
84639fdc JR |
793 | %files netzip-devel |
794 | %defattr(644,root,root,755) | |
dcdd07f0 | 795 | %dir %{_libdir}/ocaml/netzip |
84639fdc | 796 | %{_libdir}/ocaml/netzip/*.cm[ixao]* |
11928791 | 797 | %if %{with ocaml_opt} |
84639fdc | 798 | %{_libdir}/ocaml/netzip/*.a |
11928791 | 799 | %endif |
84639fdc JR |
800 | %{_libdir}/ocaml/site-lib/netzip |
801 | ||
b92aa72c JR |
802 | %files rpc |
803 | %defattr(644,root,root,755) | |
804 | %attr(755,root,root) %{_bindir}/ocamlrpcgen | |
805 | %dir %{_libdir}/ocaml/rpc-auth-local | |
a6bd7b81 JR |
806 | %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllrpc_auth_local.so |
807 | %{_libdir}/ocaml/stublibs/dllrpc_auth_local.so.owner | |
b92aa72c JR |
808 | |
809 | %files rpc-devel | |
810 | %defattr(644,root,root,755) | |
811 | %dir %{_libdir}/ocaml/rpc | |
dcdd07f0 | 812 | %dir %{_libdir}/ocaml/rpc-generator |
b92aa72c JR |
813 | %{_libdir}/ocaml/rpc-generator/rpcgen-packlist |
814 | %{_libdir}/ocaml/rpc*/*.cm[ixao]* | |
95675eee | 815 | %{_libdir}/ocaml/rpc*/librpc_auth_local*.a |
11928791 | 816 | %if %{with ocaml_opt} |
95675eee | 817 | %{_libdir}/ocaml/rpc*/rpc*.a |
11928791 | 818 | %endif |
b92aa72c JR |
819 | %{_libdir}/ocaml/site-lib/rpc* |
820 | %{_examplesdir}/%{name}-rpc-%{version} | |
821 | ||
822 | %files shell-devel | |
823 | %defattr(644,root,root,755) | |
824 | %dir %{_libdir}/ocaml/shell | |
825 | %{_libdir}/ocaml/shell/*.cm[ixao]* | |
11928791 | 826 | %if %{with ocaml_opt} |
b92aa72c | 827 | %{_libdir}/ocaml/shell/*.a |
11928791 | 828 | %endif |
b92aa72c JR |
829 | %{_libdir}/ocaml/site-lib/shell |
830 | ||
df358c15 | 831 | %files netunidata-devel |
4067530e | 832 | %defattr(644,root,root,755) |
aa8d97c1 | 833 | %dir %{_libdir}/ocaml/netunidata |
df358c15 | 834 | %{_libdir}/ocaml/netunidata/*.cm[ixao]* |
11928791 | 835 | %if %{with ocaml_opt} |
df358c15 | 836 | %{_libdir}/ocaml/netunidata/*.a |
aa8d97c1 | 837 | %{_libdir}/ocaml/netunidata/*.o |
11928791 | 838 | %endif |
df358c15 | 839 | %{_libdir}/ocaml/site-lib/netunidata |