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