3 %bcond_without ocaml_opt # native optimized binaries (bytecode is always built)
4 %bcond_with apache # build apache module
6 # not yet available on x32 (ocaml 4.02.1), update when upstream will support it
7 %ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
8 %undefine with_ocaml_opt
11 %define apxs /usr/sbin/apxs
12 %define apache /usr/sbin/httpd
13 Summary: Modules for Internet programming in OCaml
14 Summary(pl.UTF-8): Moduły ułatwiające pisanie programów internetowych w OCamlu
18 License: GPL v2+ (nethttpd), LGPL v2+ (mod_netcgi), BSD-like (the rest)
20 Source0: http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz
21 # Source0-md5: 3812d76b325903412bb27e5a656df689
22 Patch0: %{name}-buildfix.patch
23 Patch1: %{name}-lablgtk2.patch
24 Patch2: %{name}-apache-link.patch
25 URL: http://projects.camlcity.org/projects/ocamlnet.html
27 BuildRequires: %{apache}
28 BuildRequires: %{apxs}
29 BuildRequires: apache-devel >= 2.0
31 BuildRequires: ncurses-devel
32 BuildRequires: ocaml >= 1:3.09.2
33 BuildRequires: ocaml-camlp4
34 BuildRequires: ocaml-cryptokit-devel
35 BuildRequires: ocaml-findlib
36 BuildRequires: ocaml-findlib-devel
37 BuildRequires: ocaml-lablgtk2-devel >= 2.14.2
38 BuildRequires: ocaml-labltk-devel
39 BuildRequires: ocaml-pcre-devel
40 BuildRequires: ocaml-ssl-devel
41 BuildRequires: ocaml-zip-devel
42 BuildRequires: rpm-build >= 4.6
43 BuildRequires: tcl-devel
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define _apachepkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
47 %define _apachesysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
50 Modules for Internet programming in OCaml.
52 %description -l pl.UTF-8
53 Moduły ułatwiające pisanie programów internetowych w OCamlu.
56 Summary: ocaml-net documentation
57 Summary(pl.UTF-8): Dokumentacja dla pakietów ocaml-net
63 ocaml-net documentation.
65 %description doc -l pl.UTF-8
66 Dokumentacja dla pakietów ocaml-net.
69 Summary: Event queue library for OCaml
70 Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla
73 %requires_eq ocaml-runtime
74 Conflicts: ocaml-net-equeue-devel < 4.1.9-1
75 Obsoletes: ocaml-net-equeue-ssl < 4
78 Equeue provides a generic event queue module, and a specific module
79 for file descriptor events.
81 %description equeue -l pl.UTF-8
82 Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również
83 modułu obsługi zdarzeń na deskryptorach plików.
86 Summary: Event queue library for OCaml - development part
87 Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla - część programistyczna
89 Group: Development/Libraries
90 Requires: %{name}-equeue = %{version}-%{release}
91 Requires: %{name}-netsys-devel = %{version}-%{release}
93 Obsoletes: ocaml-equeue-devel < 2.2
94 Obsoletes: ocaml-net-equeue-ssl-devel < 4
96 %description equeue-devel
97 Equeue provides a generic event queue module, and a specific module
98 for file descriptor events.
100 This package contains files needed to develop OCaml programs using
103 %description equeue-devel -l pl.UTF-8
104 Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również
105 modułu obsługi zdarzeń na deskryptorach plików.
107 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
111 Summary: GTK2 event queue library for OCaml
112 Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń GTK2 dla OCamla
115 %requires_eq ocaml-runtime
116 Conflicts: ocaml-net-equeue-gtk2-devel < 4.1.9-1
118 %description equeue-gtk2
119 Equeue provides a generic event queue module, and a specific module
120 for file descriptor events.
122 %description equeue-gtk2 -l pl.UTF-8
123 Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również
124 modułu obsługi zdarzeń na deskryptorach plików.
126 %package equeue-gtk2-devel
127 Summary: GTK2 event queue library for OCaml - development part
128 Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń GTK2 dla OCamla - część programistyczna
130 Group: Development/Libraries
131 Requires: %{name}-equeue-devel = %{version}-%{release}
132 Requires: %{name}-equeue-gtk2 = %{version}-%{release}
133 Requires: ocaml-lablgtk2-devel
135 Obsoletes: ocaml-net-equeue-gtk-devel < 3.7.7
137 %description equeue-gtk2-devel
138 Equeue provides a generic event queue module, and a specific module
139 for file descriptor events.
141 This package contains files needed to develop OCaml programs using
144 %description equeue-gtk2-devel -l pl.UTF-8
145 Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również
146 modułu obsługi zdarzeń na deskryptorach plików.
148 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
149 biblioteki equeue GTK2.
152 Summary: Event queue library for OCaml, Tcl support
153 Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla, wsparcie dla Tcl
156 %requires_eq ocaml-runtime
157 %requires_eq ocaml-labltk
158 Obsoletes: ocaml-equeue-tcl < 2.2
160 %description equeue-tcl
161 This package makes it possible to let Equeue cooperate with the event
162 queue implementation of Tcl.
164 This package contains files needed to run bytecode executables using
167 %description equeue-tcl -l pl.UTF-8
168 Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
171 Ten pakiet zawiera moduły potrzebne do uruchamiania programów
172 używających biblioteki equeue-tcl.
174 %package equeue-tcl-devel
175 Summary: Equeue Tcl support - development part
176 Summary(pl.UTF-8): Wsparcie dla Tcl-a w equeue - część programistyczna
178 Group: Development/Libraries
179 Requires: %{name}-equeue-devel = %{version}-%{release}
180 Requires: %{name}-equeue-tcl = %{version}-%{release}
182 %requires_eq ocaml-labltk-devel
183 Obsoletes: ocaml-equeue-tcl-devel < 2.2
185 %description equeue-tcl-devel
186 This package makes it possible to let Equeue cooperate with the event
187 queue implementation of Tcl.
189 This package contains files needed to develop OCaml programs using
192 %description equeue-tcl-devel -l pl.UTF-8
193 Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
196 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
197 biblioteki equeue-tcl.
200 Summary: Fast IPC mechanism for OCaml
201 Summary(pl.UTF-8): Szybki mechanizm IPC dla OCamla
204 %requires_eq ocaml-runtime
205 Conflicts: ocaml-net-netcamlbox-devel < 4.1.9-1
207 %description netcamlbox
208 Camlboxes are a fast IPC mechanism to send Ocaml values from one
209 process to another. Source and destination processes must run on the
210 same machine (no network). The Ocaml value is copied to a shared
211 memory object where it can be directly accessed by the receiver
212 without unmarshalling step. This means the sender writes the value
213 into the shared memory in a format that can immediately interpreted by
216 %description netcamlbox -l pl.UTF-8
217 Camlboksy są szybkim mechanizmem IPC do przesyłania danych Ocamla
218 pomiędzy procesami. Nadawca i odbiorca muszą być uruchomione na tej
219 samej maszynie. Dane Ocamla są kopiowane do segmentu pamięci
220 dzielonej, gdzie mogą byc bezpośrednio odczytywane przez odbiorcę.
222 %package netcamlbox-devel
223 Summary: Fast IPC mechanism for OCaml - development part
224 Summary(pl.UTF-8): Szybki mechanizm IPC dla OCamla - część programistyczna
226 Group: Development/Libraries
227 Requires: %{name}-netcamlbox = %{version}-%{release}
228 Requires: %{name}-netsys-devel = %{version}-%{release}
231 %description netcamlbox-devel
232 Camlboxes are a fast IPC mechanism to send Ocaml values from one
233 process to another. Source and destination processes must run on the
234 same machine (no network). The Ocaml value is copied to a shared
235 memory object where it can be directly accessed by the receiver
236 without unmarshalling step. This means the sender writes the value
237 into the shared memory in a format that can immediately interpreted by
240 This package contains files needed to develop OCaml programs using
243 %description netcamlbox-devel -l pl.UTF-8
244 Camlboksy są szybkim mechanizmem IPC do przesyłania danych Ocamla
245 pomiędzy procesami. Nadawca i odbiorca muszą być uruchomione na tej
246 samej maszynie. Dane Ocamla są kopiowane do segmentu pamięci
247 dzielonej, gdzie mogą byc bezpośrednio odczytywane przez odbiorcę.
249 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
250 biblioteki netcamlbox.
253 Summary: Common Gateway Interface library
254 Summary(pl.UTF-8): Biblioteka do tworzenia skryptów CGI
257 %requires_eq ocaml-runtime
258 Conflicts: ocaml-net-netcgi-devel < 4.1.9-1
261 Common Gateway Interface library, part of Ocamlnet.
263 %description netcgi -l pl.UTF-8
264 Biblioteka do tworzenia skryptów CGI, część pakietu Ocamlnet.
266 %package netcgi-devel
267 Summary: Common Gateway Interface library - development part
268 Summary(pl.UTF-8): Biblioteka do tworzenia skryptów CGI - część programistyczna
270 Group: Development/Libraries
271 Requires: %{name}-netcgi = %{version}-%{release}
272 Requires: %{name}-netplex-devel = %{version}-%{release}
273 Requires: %{name}-netstring-devel = %{version}-%{release}
274 Requires: %{name}-netsys-devel = %{version}-%{release}
276 Obsoletes: ocaml-net-cgi-devel < 3
278 %description netcgi-devel
279 Common Gateway Interface library, part of Ocamlnet. This package
280 contains files needed to develop OCaml programs using netcgi library.
282 %description netcgi-devel -l pl.UTF-8
283 Biblioteka do tworzenia skryptów CGI, część pakietu Ocamlnet. Ten
284 pakiet zawiera pliki niezbędne do tworzenia programów używających
287 %package -n apache-mod_netcgi
288 Summary: Apache mod_netcfg module
289 Summary(pl.UTF-8): Moduł Apache'a mod_netcgi
291 Group: Networking/Daemons/HTTP
292 Requires: apache(modules-api) = %apache_modules_api
294 %description -n apache-mod_netcgi
295 Apache mod_netcfg module.
297 %description -n apache-mod_netcgi -l pl.UTF-8
298 Moduł Apache'a mod_netcgi.
301 Summary: HTTP 1.1 client for OCaml
302 Summary(pl.UTF-8): Klient HTTP 1.1 dla OCamla
305 %requires_eq ocaml-runtime
306 Conflicts: ocaml-net-netclient-devel < 4.1.9-1
308 %description netclient
309 Implements much of HTTP/1.1. Implements the following advanced
310 features: chunked messages; persistent connections; connections in
311 pipelining mode ("full duplex" connections); modular authentication
312 methods, currently Basic and Digest; event-driven implementation;
313 allows concurrent service for several network connections.
315 %description netclient -l pl.UTF-8
316 Biblioteka netclient implementuje większość HTTP/1.1, a także
317 następujące zaawansowane właściwości: komunikaty w kawałkach;
318 połączenia stałe; połączenia w trybie "full duplex"; modularne metody
319 uwierzytelniania, obecnie Basic i Digest; implementacja oparta na
320 zdarzeniach; umożliwia jednoczesną obsługę kilku połączeń.
322 %package netclient-devel
323 Summary: HTTP 1.1 client for OCaml - development part
324 Summary(pl.UTF-8): Klient HTTP 1.1 dla OCamla - część programistyczna
326 Group: Development/Libraries
327 Requires: %{name}-equeue-devel = %{version}-%{release}
328 Requires: %{name}-netclient = %{version}-%{release}
329 Requires: %{name}-netstring-devel = %{version}-%{release}
331 Obsoletes: ocaml-net-pop3-devel < 4
332 Obsoletes: ocaml-net-smtp-devel < 4
333 Obsoletes: ocaml-netclient-devel < 1
335 %description netclient-devel
336 Implements much of HTTP/1.1. Implements the following advanced
337 features: chunked messages; persistent connections; connections in
338 pipelining mode ("full duplex" connections); modular authentication
339 methods, currently Basic and Digest; event-driven implementation;
340 allows concurrent service for several network connections.
342 This package contains files needed to develop OCaml programs using
345 %description netclient-devel -l pl.UTF-8
346 Biblioteka netclient implementuje większość HTTP/1.1, a także
347 następujące zaawansowane właściwości: komunikaty w kawałkach;
348 połączenia stałe; połączenia w trybie "full duplex"; modularne metody
349 uwierzytelniania, obecnie Basic i Digest; implementacja oparta na
350 zdarzeniach; umożliwia jednoczesną obsługę kilku połączeń.
352 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
353 biblioteki netclient.
355 %package netgss-system
356 Summary: GSS-API generic definition
357 Summary(pl.UTF-8): Biblioteka do obsługi protokołu GSSAPI
360 Requires: %{name}-netstring = %{version}-%{release}
361 Requires: %{name}-netsys = %{version}-%{release}
362 %requires_eq ocaml-runtime
364 %description netgss-system
365 GSSAPI library, part of Ocamlnet. This package contains the files
366 needed to develop OCaml programs using netgss-system library.
368 %description netgss-system -l pl.UTF-8
369 Biblioteka do obsługi protokołu GSSAPI, część pakietu Ocamlnet. Ten
370 pakiet zawiera pliki niezbędne do tworzenia programów używających
371 biblioteki netgss-system.
373 %package netgss-system-devel
374 Summary: GSS-API generic definition - development part
375 Summary(pl.UTF-8): Biblioteka do obsługi protokołu GSSAPI - część programistyczna
377 Group: Development/Libraries
378 Requires: %{name}-netgss-system = %{version}-%{release}
379 Requires: %{name}-netstring-devel = %{version}-%{release}
380 Requires: %{name}-netsys-devel = %{version}-%{release}
383 %description netgss-system-devel
384 GSSAPI library, part of Ocamlnet. This package contains the files
385 needed to develop OCaml programs using netgss-system library.
387 %description netgss-system-devel -l pl.UTF-8
388 Biblioteka do obsługi protokołu GSSAPI, część pakietu Ocamlnet. Ten
389 pakiet zawiera pliki niezbędne do tworzenia programów używających
390 biblioteki netgss-system.
393 Summary: HTTPd library
394 Summary(pl.UTF-8): Biblioteka do obsługi protokołu HTTP
397 %requires_eq ocaml-runtime
398 Conflicts: ocaml-net-nethttpd-devel < 4.1.9-1
400 %description nethttpd
401 HTTPd library, part of Ocamlnet.
403 %description nethttpd -l pl.UTF-8
404 Biblioteka do obsługi protokołu HTTP, część pakietu Ocamlnet.
406 %package nethttpd-devel
407 Summary: HTTPd library - development part
408 Summary(pl.UTF-8): Biblioteka do obsługi protokołu HTTP - część programistyczna
410 Group: Development/Libraries
411 Requires: %{name}-equeue-devel = %{version}-%{release}
412 Requires: %{name}-netcgi-devel = %{version}-%{release}
413 Requires: %{name}-nethttpd = %{version}-%{release}
414 Requires: %{name}-netplex-devel = %{version}-%{release}
415 %requires_eq ocaml-pcre-devel
418 %description nethttpd-devel
419 HTTPd library, part of Ocamlnet. This package contains the files
420 needed to develop OCaml programs using nethttpd library.
422 %description nethttpd-devel -l pl.UTF-8
423 Biblioteka do obsługi protokołu HTTP, część pakietu Ocamlnet. Ten
424 pakiet zawiera pliki niezbędne do tworzenia programów używających
427 %package netmulticore
428 Summary: Multi-processing for compute jobs
429 Summary(pl.UTF-8): Obsługa wieloprocesorowych obliczeń
432 %requires_eq ocaml-runtime
433 Conflicts: ocaml-net-netmulticore-devel < 4.1.9-1
435 %description netmulticore
436 Netmcore library, part of Ocamlnet.
438 %description netmulticore -l pl.UTF-8
439 Biblioteka do obsługi wieloprocesorowych obliczeń, część pakietu
442 %package netmulticore-devel
443 Summary: Multi-processing for compute jobs - development part
444 Summary(pl.UTF-8): Obsługa wieloprocesorowych obliczeń - część programistyczna
446 Group: Development/Libraries
447 Requires: %{name}-netcamlbox-devel = %{version}-%{release}
448 Requires: %{name}-netmulticore = %{version}-%{release}
449 Requires: %{name}-netplex-devel = %{version}-%{release}
452 %description netmulticore-devel
453 Netmcore library, part of Ocamlnet. This package contains the files
454 needed to develop OCaml programs using netmulticore library.
456 %description netmulticore-devel -l pl.UTF-8
457 Biblioteka do obsługi wieloprocesorowych obliczeń, część pakietu
458 Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów
459 używających biblioteki netmulticore.
462 Summary: Server framework
463 Summary(pl.UTF-8): Szkielet serwerowy
466 %requires_eq ocaml-labltk
467 %requires_eq ocaml-runtime
472 This package contains files needed to run bytecode executables using
475 %description netplex -l pl.UTF-8
478 Ten pakiet zawiera moduły potrzebne do uruchamiania programów
479 używających biblioteki netplex.
481 %package netplex-devel
482 Summary: Server framework - development part
483 Summary(pl.UTF-8): Szkielet serwerowy - część programistyczna
485 Group: Development/Libraries
486 Requires: %{name}-equeue-devel = %{version}-%{release}
487 Requires: %{name}-netplex = %{version}-%{release}
488 Requires: %{name}-netstring-devel = %{version}-%{release}
489 Requires: %{name}-netsys-devel = %{version}-%{release}
490 Requires: %{name}-rpc-devel = %{version}-%{release}
493 %description netplex-devel
496 This package contains files needed to develop OCaml programs using
499 %description netplex-devel -l pl.UTF-8
502 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
506 Summary: Shared memory support
507 Summary(pl.UTF-8): Obsługa pamięci dzielonej
510 %requires_eq ocaml-runtime
511 Conflicts: ocaml-net-netshm-devel < 4.1.9-1
514 Shared memory support.
516 %description netshm -l pl.UTF-8
517 Obsługa pamięci dzielonej.
519 %package netshm-devel
520 Summary: Shared memory support - development package
521 Summary(pl.UTF-8): Obsługa pamięci dzielonej - pakiet programistyczny
523 Group: Development/Libraries
524 Requires: %{name}-netshm = %{version}-%{release}
525 Requires: %{name}-netsys-devel = %{version}-%{release}
528 %description netshm-devel
529 Shared memory support.
531 This package contains files needed to develop OCaml programs using
534 %description netshm-devel -l pl.UTF-8
535 Obsługa pamięci dzielonej.
537 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
541 Summary: String processing library
542 Summary(pl.UTF-8): Biblioteka do przetwarzania napisów
545 Requires: %{name}-netsys-devel = %{version}-%{release}
546 %requires_eq ocaml-pcre
547 %requires_eq ocaml-runtime
549 %description netstring
550 String processing library, part of Ocamlnet.
552 %description netstring -l pl.UTF-8
553 Biblioteka do przetwarzania napisów, część pakietu Ocamlnet.
555 %package netstring-devel
556 Summary: String processing library - development part
557 Summary(pl.UTF-8): Biblioteka do przetwarzania napisów - część programistyczna
559 Group: Development/Libraries
560 Requires: %{name}-netstring = %{version}-%{release}
561 Requires: %{name}-netsys-devel = %{version}-%{release}
563 %requires_eq ocaml-pcre-devel
564 Obsoletes: ocaml-net-netmech-scram-devel < 4.1
566 %description netstring-devel
567 String processing library, part of Ocamlnet. This package contains
568 files needed to develop OCaml programs using netstring library.
570 %description netstring-devel -l pl.UTF-8
571 Biblioteka do przetwarzania napisów, część pakietu Ocamlnet. Ten
572 pakiet zawiera pliki niezbędne do tworzenia programów używających
573 biblioteki netstring.
576 Summary: OS-specific functions
577 Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego
580 %requires_eq ocaml-runtime
583 OS-specific functions.
585 This package contains files needed to run bytecode executables using
588 %description netsys -l pl.UTF-8
589 Funkcje specyficzne dla systemu operacyjnego.
591 Ten pakiet zawiera moduły potrzebne do uruchamiania programów
592 używających biblioteki netsys.
594 %package netsys-devel
595 Summary: OS-specific functions - development part
596 Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego - część programistyczna
598 Group: Development/Libraries
599 Requires: %{name}-netsys = %{version}-%{release}
602 %description netsys-devel
603 OS-specific functions.
605 This package contains files needed to develop OCaml programs using
608 %description netsys-devel -l pl.UTF-8
609 Funkcje specyficzne dla systemu operacyjnego.
611 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
615 Summary: Unicode lookup tables
616 Summary(pl.UTF-8): Tablice wyszukiwania Unicode
619 %requires_eq ocaml-runtime
620 Conflicts: ocaml-net-netunidata-devel < 4.1.9-1
622 %description netunidata
623 Unicode lookup tables.
625 %description netunidata -l pl.UTF-8
626 Tablice wyszukiwania Unicode.
628 %package netunidata-devel
629 Summary: Unicode lookup tables - development part
630 Summary(pl.UTF-8): Tablice wyszukiwania Unicode - część programistyczna
632 Group: Development/Libraries
633 Requires: %{name}-netstring-devel = %{version}-%{release}
634 Requires: %{name}-netunidata = %{version}-%{release}
637 %description netunidata-devel
638 Unicode lookup tables.
640 This package contains files needed to develop OCaml programs using
643 %description netunidata-devel -l pl.UTF-8
644 Tablice wyszukiwania Unicode.
646 Ten pakiet zawiera pliki niezbędne do tworzenia programów w OCamlu
647 używających biblioteki netunidata.
650 Summary: Gzip channels
651 Summary(pl.UTF-8): Funkcje do kompresji kanałów
654 %requires_eq ocaml-runtime
655 Conflicts: ocaml-net-netzip-devel < 4.1.9-1
658 Gzip channels functions.
660 %description netzip -l pl.UTF-8
661 Funkcje do kompresji kanałów.
663 %package netzip-devel
664 Summary: Gzip channels - development part
665 Summary(pl.UTF-8): Funkcje do kompresji kanałów - część programistyczna
667 Group: Development/Libraries
668 Requires: %{name}-netstring-devel = %{version}-%{release}
669 Requires: %{name}-netzip = %{version}-%{release}
672 %description netzip-devel
673 Gzip channels functions.
675 This package contains files needed to develop OCaml programs using
678 %description netzip-devel -l pl.UTF-8
679 Funkcje do kompresji kanałów.
681 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
685 Summary: Remote Procedure Call (RPC) libraries
686 Summary(pl.UTF-8): Biblioteki do obsługi RPC
689 %requires_eq ocaml-runtime
692 Remote Procedure Call (RPC) libraries.
694 %description rpc -l pl.UTF-8
695 Biblioteki do obsługi RPC.
698 Summary: Remote Procedure Call (RPC) libraries - development part
699 Summary(pl.UTF-8): Biblioteki do obsługi RPC - część programistyczna
701 Group: Development/Libraries
702 Requires: %{name}-rpc = %{version}-%{release}
705 %description rpc-devel
706 Remote Procedure Call (RPC) libraries.
708 This package contains files needed to develop OCaml programs using rpc
711 %description rpc-devel -l pl.UTF-8
712 Biblioteki do obsługi RPC.
714 Ten pakiet zawiera pliki niezbędne do tworzenia programów w OCamlu
715 używających biblioteki rpc.
718 Summary: Unix shell functions
719 Summary(pl.UTF-8): Funkcje powłoki uniksowej
722 %requires_eq ocaml-runtime
723 Conflicts: ocaml-net-shell-devel < 4.1.9-1
726 Unix shell functions.
728 %description shell -l pl.UTF-8
729 Funkcje powłoki uniksowej.
732 Summary: Unix shell functions - development part
733 Summary(pl.UTF-8): Funkcje powłoki uniksowej - część programistyczna
735 Group: Development/Libraries
736 Requires: %{name}-equeue-devel = %{version}-%{release}
737 Requires: %{name}-netsys-devel = %{version}-%{release}
738 Requires: %{name}-shell = %{version}-%{release}
741 %description shell-devel
742 Unix shell functions.
744 This package contains files needed to develop OCaml programs using
747 %description shell-devel -l pl.UTF-8
748 Funkcje powłoki uniksowej.
750 Ten pakiet zawiera pliki niezbędne do tworzenia programów w OCamlu
751 używających biblioteki shell.
754 %setup -q -n ocamlnet-%{version}
760 # no %%configure, please
762 -datadir %{_datadir}/%{name} \
773 -equeue-tcl-libs "-ltcl" \
778 %{__make} -j1 all %{?with_ocaml_opt:opt}
781 rm -rf $RPM_BUILD_ROOT
782 install -d $RPM_BUILD_ROOT{%{_libdir}/ocaml/stublibs,%{_apachepkglibdir},%{_apachesysconfdir}}
784 %{__make} -j1 install \
785 OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
786 DESTDIR=$RPM_BUILD_ROOT
789 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/netcgi2-apache/500netcgi_apache.info
790 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/mod_netcgi_apache.so*
792 install -p src/netcgi2-apache/mod_netcgi_apache.so $RPM_BUILD_ROOT%{_apachepkglibdir}/mod_netcgi.so
793 cat <<EOF >$RPM_BUILD_ROOT%{_apachesysconfdir}/90_mod_netcgi.conf
794 LoadModule netcgi_module modules/mod_netcgi.so
796 <IfModule netcgi_module>
797 NetcgiLoad pcre/pcre.cma
798 NetcgiLoad netsys/netsys.cma
799 NetcgiLoad netstring/netstring.cma
801 NetcgiLoad netcgi2/netcgi.cma
802 NetcgiLoad netcgi2-apache/netcgi_apache.cma
804 NetcgiHandler Netcgi_apache.bytecode
805 AddHandler ocaml-bytecode .cma
807 # Alias /caml-bin/ /path/to/your/scripts/
808 # <Location /caml-bin>
809 # SetHandler ocaml-bytecode
810 # NetcgiHandler Netcgi_apache.bytecode
819 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/nethttpd/LICENSE
821 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.so.owner
823 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-{netcgi,equeue,netcamlbox,netmulticore,netclient,nethttpd,rpc}-%{version}
824 cp -pr examples/camlbox/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcamlbox-%{version}
825 cp -pr examples/cgi/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcgi-%{version}
826 cp -pr examples/equeue/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-equeue-%{version}
827 cp -pr examples/multicore/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netmulticore-%{version}
828 cp -pr examples/netclient/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netclient-%{version}
829 cp -pr examples/nethttpd/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-nethttpd-%{version}
830 cp -pr examples/rpc/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-rpc-%{version}
833 rm -rf $RPM_BUILD_ROOT
836 %defattr(644,root,root,755)
837 %doc LICENSE* ChangeLog RELNOTES doc/html-main
840 %defattr(644,root,root,755)
841 %dir %{_libdir}/ocaml/equeue
842 %{_libdir}/ocaml/equeue/META
843 %{_libdir}/ocaml/equeue/*.cma
844 %if %{with ocaml_opt}
845 %attr(755,root,root) %{_libdir}/ocaml/equeue/*.cmxs
849 %defattr(644,root,root,755)
850 %{_libdir}/ocaml/equeue/*.cmi
851 %{_libdir}/ocaml/equeue/*.mli
852 %if %{with ocaml_opt}
853 %{_libdir}/ocaml/equeue/*.a
854 %{_libdir}/ocaml/equeue/*.cmxa
856 %{_examplesdir}/%{name}-equeue-%{version}
859 %defattr(644,root,root,755)
860 %dir %{_libdir}/ocaml/equeue-gtk2
861 %{_libdir}/ocaml/equeue-gtk2/META
862 %{_libdir}/ocaml/equeue-gtk2/*.cma
863 %if %{with ocaml_opt}
864 %attr(755,root,root) %{_libdir}/ocaml/equeue-gtk2/*.cmxs
867 %files equeue-gtk2-devel
868 %defattr(644,root,root,755)
869 %{_libdir}/ocaml/equeue-gtk2/*.cmi
870 %{_libdir}/ocaml/equeue-gtk2/*.mli
871 %if %{with ocaml_opt}
872 %{_libdir}/ocaml/equeue-gtk2/*.a
873 %{_libdir}/ocaml/equeue-gtk2/*.cmxa
877 %defattr(644,root,root,755)
878 %dir %{_libdir}/ocaml/equeue-tcl
879 %{_libdir}/ocaml/equeue-tcl/META
880 %{_libdir}/ocaml/equeue-tcl/*.cma
881 %if %{with ocaml_opt}
882 %attr(755,root,root) %{_libdir}/ocaml/equeue-tcl/*.cmxs
884 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllequeue_tcl.so
886 %files equeue-tcl-devel
887 %defattr(644,root,root,755)
888 %{_libdir}/ocaml/equeue-tcl/*.cmi
889 %{_libdir}/ocaml/equeue-tcl/*.mli
890 %{_libdir}/ocaml/equeue-tcl/libequeue_tcl*.a
891 %if %{with ocaml_opt}
892 %{_libdir}/ocaml/equeue-tcl/*.cmxa
893 %{_libdir}/ocaml/equeue-tcl/equeue_tcl*.a
897 %defattr(644,root,root,755)
898 %dir %{_libdir}/ocaml/netcamlbox
899 %{_libdir}/ocaml/netcamlbox/META
900 %{_libdir}/ocaml/netcamlbox/*.cma
901 %if %{with ocaml_opt}
902 %attr(755,root,root) %{_libdir}/ocaml/netcamlbox/*.cmxs
905 %files netcamlbox-devel
906 %defattr(644,root,root,755)
907 %{_libdir}/ocaml/netcamlbox/*.cmi
908 %{_libdir}/ocaml/netcamlbox/*.mli
909 %if %{with ocaml_opt}
910 %{_libdir}/ocaml/netcamlbox/*.a
911 %{_libdir}/ocaml/netcamlbox/*.cmxa
913 %{_examplesdir}/%{name}-netcamlbox-%{version}
916 %defattr(644,root,root,755)
917 %dir %{_libdir}/ocaml/netcgi2
918 %{_libdir}/ocaml/netcgi2/META
919 %{_libdir}/ocaml/netcgi2/*.cma
920 %dir %{_libdir}/ocaml/netcgi2-plex
921 %{_libdir}/ocaml/netcgi2-plex/META
922 %{_libdir}/ocaml/netcgi2-plex/*.cma
923 %if %{with ocaml_opt}
924 %attr(755,root,root) %{_libdir}/ocaml/netcgi2/*.cmxs
925 %attr(755,root,root) %{_libdir}/ocaml/netcgi2-plex/*.cmxs
929 %defattr(644,root,root,755)
930 %{_libdir}/ocaml/netcgi2/*.cmi
931 %{_libdir}/ocaml/netcgi2/*.mli
932 %{_libdir}/ocaml/netcgi2-plex/*.cmi
933 %{_libdir}/ocaml/netcgi2-plex/*.mli
934 %if %{with ocaml_opt}
935 %{_libdir}/ocaml/netcgi2/*.a
936 %{_libdir}/ocaml/netcgi2/*.cmxa
937 %{_libdir}/ocaml/netcgi2-plex/*.a
938 %{_libdir}/ocaml/netcgi2-plex/*.cmxa
940 %{_examplesdir}/%{name}-netcgi-%{version}
943 %files -n apache-mod_netcgi
944 %defattr(644,root,root,755)
945 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_apachesysconfdir}/*_mod_netcgi.conf
946 %attr(755,root,root) %{_apachepkglibdir}/mod_netcgi.so
950 %defattr(644,root,root,755)
951 %dir %{_libdir}/ocaml/netclient
952 %{_libdir}/ocaml/netclient/META
953 %{_libdir}/ocaml/netclient/*.cma
954 %if %{with ocaml_opt}
955 %attr(755,root,root) %{_libdir}/ocaml/netclient/*.cmxs
958 %files netclient-devel
959 %defattr(644,root,root,755)
960 %{_libdir}/ocaml/netclient/*.cmi
961 %{_libdir}/ocaml/netclient/*.mli
962 %if %{with ocaml_opt}
963 %{_libdir}/ocaml/netclient/*.a
964 %{_libdir}/ocaml/netclient/*.cmxa
966 %{_examplesdir}/%{name}-netclient-%{version}
969 %defattr(644,root,root,755)
970 %dir %{_libdir}/ocaml/netgss-system
971 %{_libdir}/ocaml/netgss-system/META
972 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetgss-system.so
973 %{_libdir}/ocaml/netgss-system/*.cma
974 %if %{with ocaml_opt}
975 %attr(755,root,root) %{_libdir}/ocaml/netgss-system/*.cmxs
978 %files netgss-system-devel
979 %defattr(644,root,root,755)
980 %{_libdir}/ocaml/netgss-system/*.cmi
981 %{_libdir}/ocaml/netgss-system/*.mli
982 %if %{with ocaml_opt}
983 %{_libdir}/ocaml/netgss-system/*.cmxa
984 %{_libdir}/ocaml/netgss-system/netgss-system*.a
986 %{_libdir}/ocaml/netgss-system/libnetgss-system*.a
989 %defattr(644,root,root,755)
990 %dir %{_libdir}/ocaml/nethttpd
991 %{_libdir}/ocaml/nethttpd/META
992 %{_libdir}/ocaml/nethttpd/*.cma
993 %if %{with ocaml_opt}
994 %attr(755,root,root) %{_libdir}/ocaml/nethttpd/*.cmxs
997 %files nethttpd-devel
998 %defattr(644,root,root,755)
999 %{_libdir}/ocaml/nethttpd/*.cmi
1000 %{_libdir}/ocaml/nethttpd/*.mli
1001 %if %{with ocaml_opt}
1002 %{_libdir}/ocaml/nethttpd/*.a
1003 %{_libdir}/ocaml/nethttpd/*.cmxa
1005 %{_examplesdir}/%{name}-nethttpd-%{version}
1008 %defattr(644,root,root,755)
1009 %dir %{_libdir}/ocaml/netmulticore
1010 %{_libdir}/ocaml/netmulticore/META
1011 %{_libdir}/ocaml/netmulticore/*.cma
1012 %if %{with ocaml_opt}
1013 %attr(755,root,root) %{_libdir}/ocaml/netmulticore/*.cmxs
1016 %files netmulticore-devel
1017 %defattr(644,root,root,755)
1018 %{_libdir}/ocaml/netmulticore/*.cmi
1019 %{_libdir}/ocaml/netmulticore/*.mli
1020 %if %{with ocaml_opt}
1021 %{_libdir}/ocaml/netmulticore/*.a
1022 %{_libdir}/ocaml/netmulticore/*.cmxa
1024 %{_examplesdir}/%{name}-netmulticore-%{version}
1027 %defattr(644,root,root,755)
1028 %attr(755,root,root) %{_bindir}/netplex-admin
1029 %dir %{_libdir}/ocaml/netplex
1030 %{_libdir}/ocaml/netplex/META
1031 %{_libdir}/ocaml/netplex/*.cma
1032 %if %{with ocaml_opt}
1033 %attr(755,root,root) %{_libdir}/ocaml/netplex/*.cmxs
1036 %files netplex-devel
1037 %defattr(644,root,root,755)
1038 %{_libdir}/ocaml/netplex/netplex-packlist
1039 %{_libdir}/ocaml/netplex/*.cmi
1040 %{_libdir}/ocaml/netplex/*.cmo
1041 %{_libdir}/ocaml/netplex/*.mli
1042 %if %{with ocaml_opt}
1043 %{_libdir}/ocaml/netplex/*.a
1044 %{_libdir}/ocaml/netplex/*.cmx
1045 %{_libdir}/ocaml/netplex/*.cmxa
1046 %{_libdir}/ocaml/netplex/*.o
1050 %defattr(644,root,root,755)
1051 %dir %{_libdir}/ocaml/netshm
1052 %{_libdir}/ocaml/netshm/META
1053 %{_libdir}/ocaml/netshm/*.cma
1054 %if %{with ocaml_opt}
1055 %attr(755,root,root) %{_libdir}/ocaml/netshm/*.cmxs
1059 %defattr(644,root,root,755)
1060 %{_libdir}/ocaml/netshm/*.cmi
1061 %{_libdir}/ocaml/netshm/*.mli
1062 %if %{with ocaml_opt}
1063 %{_libdir}/ocaml/netshm/*.a
1064 %{_libdir}/ocaml/netshm/*.cmxa
1068 %defattr(644,root,root,755)
1069 %dir %{_libdir}/ocaml/netstring
1070 %{_libdir}/ocaml/netstring/META
1071 %{_libdir}/ocaml/netstring/*.cma
1072 %if %{with ocaml_opt}
1073 %attr(755,root,root) %{_libdir}/ocaml/netstring/*.cmxs
1075 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetaccel_c.so
1077 %files netstring-devel
1078 %defattr(644,root,root,755)
1079 %{_libdir}/ocaml/netstring/*.cmi
1080 %{_libdir}/ocaml/netstring/*.cmo
1081 %{_libdir}/ocaml/netstring/*.mli
1082 %{_libdir}/ocaml/netstring/libnetaccel_c.a
1083 %if %{with ocaml_opt}
1084 %{_libdir}/ocaml/netstring/*.cmx
1085 %{_libdir}/ocaml/netstring/*.cmxa
1086 %{_libdir}/ocaml/netstring/*.o
1087 %{_libdir}/ocaml/netstring/netstring*.a
1091 %defattr(644,root,root,755)
1092 %dir %{_libdir}/ocaml/netsys
1093 %{_libdir}/ocaml/netsys/META
1094 %{_libdir}/ocaml/netsys/*.cma
1095 %if %{with ocaml_opt}
1096 %attr(755,root,root) %{_libdir}/ocaml/netsys/*.cmxs
1098 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetsys.so
1101 %defattr(644,root,root,755)
1102 %{_libdir}/ocaml/netsys/*.cmi
1103 %{_libdir}/ocaml/netsys/*.cmo
1104 %{_libdir}/ocaml/netsys/*.mli
1105 %{_libdir}/ocaml/netsys/libnetsys*.a
1106 %if %{with ocaml_opt}
1107 %{_libdir}/ocaml/netsys/*.cmx
1108 %{_libdir}/ocaml/netsys/*.cmxa
1109 %{_libdir}/ocaml/netsys/*.o
1110 %{_libdir}/ocaml/netsys/netsys*.a
1112 %{_libdir}/ocaml/netsys/netsys_c_event.h
1115 %defattr(644,root,root,755)
1116 %dir %{_libdir}/ocaml/netunidata
1117 %{_libdir}/ocaml/netunidata/META
1118 %{_libdir}/ocaml/netunidata/*.cma
1119 %if %{with ocaml_opt}
1120 %attr(755,root,root) %{_libdir}/ocaml/netunidata/*.cmxs
1122 %dir %{_datadir}/ocaml-net
1123 %{_datadir}/ocaml-net/cmap*.*.netdb
1125 %files netunidata-devel
1126 %defattr(644,root,root,755)
1127 %{_libdir}/ocaml/netunidata/*.cmi
1128 %{_libdir}/ocaml/netunidata/*.cmo
1129 %{_libdir}/ocaml/netunidata/*.mli
1130 %if %{with ocaml_opt}
1131 %{_libdir}/ocaml/netunidata/*.a
1132 %{_libdir}/ocaml/netunidata/*.cmx
1133 %{_libdir}/ocaml/netunidata/*.cmxa
1134 %{_libdir}/ocaml/netunidata/*.o
1138 %defattr(644,root,root,755)
1139 %dir %{_libdir}/ocaml/netzip
1140 %{_libdir}/ocaml/netzip/META
1141 %{_libdir}/ocaml/netzip/*.cma
1142 %if %{with ocaml_opt}
1143 %attr(755,root,root) %{_libdir}/ocaml/netzip/*.cmxs
1147 %defattr(644,root,root,755)
1148 %{_libdir}/ocaml/netzip/*.cmi
1149 %{_libdir}/ocaml/netzip/*.mli
1150 %if %{with ocaml_opt}
1151 %{_libdir}/ocaml/netzip/*.a
1152 %{_libdir}/ocaml/netzip/*.cmxa
1156 %defattr(644,root,root,755)
1157 %attr(755,root,root) %{_bindir}/ocamlrpcgen
1158 %dir %{_libdir}/ocaml/rpc
1159 %{_libdir}/ocaml/rpc/META
1160 %{_libdir}/ocaml/rpc/*.cma
1161 %dir %{_libdir}/ocaml/rpc-auth-local
1162 %{_libdir}/ocaml/rpc-auth-local/META
1163 %{_libdir}/ocaml/rpc-auth-local/*.cma
1164 %dir %{_libdir}/ocaml/rpc-generator
1165 %{_libdir}/ocaml/rpc-generator/META
1166 %{_libdir}/ocaml/rpc-generator/*.cma
1167 %if %{with ocaml_opt}
1168 %attr(755,root,root) %{_libdir}/ocaml/rpc/*.cmxs
1169 %attr(755,root,root) %{_libdir}/ocaml/rpc-auth-local/*.cmxs
1170 %attr(755,root,root) %{_libdir}/ocaml/rpc-generator/*.cmxs
1172 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllrpc_auth_local.so
1175 %defattr(644,root,root,755)
1176 %{_libdir}/ocaml/rpc/*.cmi
1177 %{_libdir}/ocaml/rpc/*.mli
1178 %{_libdir}/ocaml/rpc-auth-local/librpc_auth_local*.a
1179 %{_libdir}/ocaml/rpc-auth-local/*.cmi
1180 %{_libdir}/ocaml/rpc-auth-local/*.mli
1181 %{_libdir}/ocaml/rpc-generator/rpcgen-packlist
1182 %{_libdir}/ocaml/rpc-generator/*.cmi
1183 %{_libdir}/ocaml/rpc-generator/*.mli
1184 %if %{with ocaml_opt}
1185 %{_libdir}/ocaml/rpc/rpc*.a
1186 %{_libdir}/ocaml/rpc/rpc*.cmxa
1187 %{_libdir}/ocaml/rpc-auth-local/rpc*.a
1188 %{_libdir}/ocaml/rpc-auth-local/rpc*.cmxa
1189 %{_libdir}/ocaml/rpc-generator/rpc*.a
1190 %{_libdir}/ocaml/rpc-generator/rpc*.cmxa
1192 %{_examplesdir}/%{name}-rpc-%{version}
1195 %defattr(644,root,root,755)
1196 %dir %{_libdir}/ocaml/shell
1197 %{_libdir}/ocaml/shell/META
1198 %{_libdir}/ocaml/shell/*.cma
1199 %if %{with ocaml_opt}
1200 %attr(755,root,root) %{_libdir}/ocaml/shell/*.cmxs
1204 %defattr(644,root,root,755)
1205 %{_libdir}/ocaml/shell/*.cmi
1206 %{_libdir}/ocaml/shell/*.mli
1207 %if %{with ocaml_opt}
1208 %{_libdir}/ocaml/shell/*.a
1209 %{_libdir}/ocaml/shell/*.cmxa