3 %bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built)
4 %bcond_with apache # build apache module
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
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_caml), BSD-like (the rest)
20 Source0: http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz
21 # Source0-md5: e15e0961d09057f0bbe4f69d6055506c
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-cryptgps-devel
35 BuildRequires: ocaml-cryptokit-devel
36 BuildRequires: ocaml-findlib
37 BuildRequires: ocaml-findlib-devel
38 BuildRequires: ocaml-lablgtk2-devel >= 2.14.2
39 BuildRequires: ocaml-labltk-devel
40 BuildRequires: ocaml-pcre-devel
41 BuildRequires: ocaml-ssl-devel
42 BuildRequires: ocaml-zip-devel
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
59 Group: Development/Libraries
62 ocaml-net documentation.
64 %description doc -l pl.UTF-8
65 Dokumentacja dla pakietów ocaml-net.
68 Summary: Common Gateway Interface library
69 Summary(pl.UTF-8): Biblioteka do tworzenia skryptów CGI
70 License: LGPL v2+ (mod_caml), BSD-like (the rest)
71 Group: Development/Libraries
72 Requires: %{name}-netplex-devel = %{version}-%{release}
73 Requires: %{name}-netstring-devel = %{version}-%{release}
74 Requires: %{name}-netsys-devel = %{version}-%{release}
75 Obsoletes: ocaml-net-cgi-devel
78 %description netcgi-devel
79 Common Gateway Interface library, part of Ocamlnet. This package
80 contains files needed to develop OCaml programs using netcgi library.
82 %description netcgi-devel -l pl.UTF-8
83 Biblioteka do tworzenia skryptów CGI, część pakietu Ocamlnet. Ten
84 pakiet zawiera pliki niezbędne do tworzenia programów używających
87 %package -n apache-mod_netcgi
88 Summary: Apache module
89 Summary(pl.UTF-8): Moduł Apache'a
90 Group: Networking/Daemons/HTTP
91 Requires: apache(modules-api) = %apache_modules_api
93 %description -n apache-mod_netcgi
95 %description -n apache-mod_netcgi -l pl.UTF-8
98 Summary: Event queue library for OCaml
99 Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla
101 Group: Development/Libraries
102 Requires: %{name}-netsys-devel = %{version}-%{release}
104 Obsoletes: ocaml-equeue-devel
106 %description equeue-devel
107 Equeue provides a generic event queue module, and a specific module
108 for file descriptor events.
110 This package contains files needed to develop OCaml programs using
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.
117 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
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
124 Group: Development/Libraries
125 Requires: %{name}-equeue-devel = %{version}-%{release}
126 Requires: ocaml-lablgtk2-devel
129 %description equeue-gtk2-devel
130 Equeue provides a generic event queue module, and a specific module
131 for file descriptor events.
133 This package contains files needed to develop OCaml programs using
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.
140 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
141 biblioteki equeue GTK2.
144 Summary: Event queue library for OCaml, SSL support
145 Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla, wsparcie dla SSL
148 %requires_eq ocaml-runtime
150 %description equeue-ssl
151 This package makes it possible to let Equeue cooperate with the event
152 queue implementation of SSL.
154 This package contains files needed to run bytecode executables using
157 %description equeue-ssl -l pl.UTF-8
158 Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
161 Ten pakiet zawiera moduł potrzebny do uruchamiania programów
162 używających biblioteki equeue-ssl.
164 %package equeue-ssl-devel
165 Summary: Equeue SSL support - development part
166 Summary(pl.UTF-8): Wsparcie dla SSL-a w equeue - cześć programistyczna
168 Group: Development/Libraries
169 Requires: %{name}-equeue-devel = %{version}-%{release}
170 Requires: %{name}-equeue-ssl = %{version}-%{release}
171 %requires_eq ocaml-ssl-devel
174 %description equeue-ssl-devel
175 This package makes it possible to let Equeue cooperate with the event
176 queue implementation of SSL.
178 This package contains files needed to develop OCaml programs using
181 %description equeue-ssl-devel -l pl.UTF-8
182 Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
185 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
186 biblioteki equeue-ssl.
189 Summary: Event queue library for OCaml, Tcl support
190 Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla, wsparcie dla Tcl
193 %requires_eq ocaml-runtime
194 %requires_eq ocaml-labltk
195 Obsoletes: ocaml-equeue-tcl
197 %description equeue-tcl
198 This package makes it possible to let Equeue cooperate with the event
199 queue implementation of Tcl.
201 This package contains files needed to run bytecode executables using
204 %description equeue-tcl -l pl.UTF-8
205 Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
208 Ten pakiet zawiera moduły potrzebne do uruchamiania programów
209 używających biblioteki equeue-tcl.
211 %package equeue-tcl-devel
212 Summary: Equeue Tcl support - development part
213 Summary(pl.UTF-8): Wsparcie dla Tcl-a w equeue - cześć programistyczna
215 Group: Development/Libraries
216 Requires: %{name}-equeue-devel = %{version}-%{release}
217 Requires: %{name}-equeue-tcl = %{version}-%{release}
218 %requires_eq ocaml-labltk-devel
220 Obsoletes: ocaml-equeue-tcl-devel
222 %description equeue-tcl-devel
223 This package makes it possible to let Equeue cooperate with the event
224 queue implementation of Tcl.
226 This package contains files needed to develop OCaml programs using
229 %description equeue-tcl-devel -l pl.UTF-8
230 Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń
233 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
234 biblioteki equeue-tcl.
236 %package netcamlbox-devel
237 Summary: Fast IPC mechanism for OCaml
238 Summary(pl.UTF-8): Szybki mechanizm IPC dla OCamla
240 Group: Development/Libraries
241 Requires: %{name}-netsys-devel = %{version}-%{release}
244 %description netcamlbox-devel
245 Camlboxes are a fast IPC mechanism to send Ocaml values from one
246 process to another. Source and destination processes must run on the
247 same machine (no network). The Ocaml value is copied to a shared
248 memory object where it can be directly accessed by the receiver
249 without unmarshalling step. This means the sender writes the value
250 into the shared memory in a format that can immediately interpreted by
253 This package contains files needed to develop OCaml programs using
256 %description netcamlbox-devel -l pl.UTF-8
257 Camlboxy są szybkim mechanizmem IPC do przesyłania danych Ocamla
258 pomiędzy procesami. Nadawca i odbiorca muszą być uruchomione na tej
259 samej maszynie. Dane Ocamla są kopiowane do segmentu pamięci
260 dzielonej, gdzie mogą byc bezpośrednio odczytywane przez odbiorcę.
262 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
263 biblioteki netcamlbox.
265 %package netclient-devel
266 Summary: HTTP 1.1 client for OCaml
267 Summary(pl.UTF-8): Klient HTTP 1.1 dla OCamla
269 Group: Development/Libraries
270 Requires: %{name}-equeue-devel = %{version}-%{release}
271 Requires: %{name}-netstring-devel = %{version}-%{release}
273 Obsoletes: ocaml-netclient-devel
275 %description netclient-devel
276 Implements much of HTTP/1.1. Implements the following advanced
277 features: chunked messages; persistent connections; connections in
278 pipelining mode ("full duplex" connections); modular authentication
279 methods, currently Basic and Digest; event-driven implementation;
280 allows concurrent service for several network connections.
282 This package contains files needed to develop OCaml programs using
285 %description netclient-devel -l pl.UTF-8
286 Biblioteka netclient implementuje większość HTTP/1.1, a także
287 następujące zaawansowane właściwości: komunikaty w kawałkach;
288 połączenia stałe; połączenia w trybie "full duplex"; modularne metody
289 uwierzytelniania, obecnie Basic i Digest; implementacja oparta na
290 zdarzeniach; umożliwia jednoczesną obsługę kilku połączeń.
292 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
293 biblioteki netclient.
295 %package netgssapi-devel
296 Summary: GSS-API generic definition
297 Summary(pl.UTF-8): Biblioteka do obsługi protokołu GSSAPI
299 Group: Development/Libraries
300 Requires: %{name}-netstring-devel = %{version}-%{release}
301 Requires: %{name}-netsys-devel = %{version}-%{release}
304 %description netgssapi-devel
305 GSSAPI library, part of Ocamlnet. This package contains the files
306 needed to develop OCaml programs using netgssapi library.
308 %description netgssapi-devel -l pl.UTF-8
309 Biblioteka do obsługi protokołu GSSAPI, część pakietu Ocamlnet. Ten
310 pakiet zawiera pliki niezbędne do tworzenia programów używających
311 biblioteki netgssapi.
313 %package nethttpd-devel
314 Summary: HTTPd library
315 Summary(pl.UTF-8): Biblioteka do obsługi protokołu HTTP
317 Group: Development/Libraries
318 Requires: %{name}-equeue-devel = %{version}-%{release}
319 Requires: %{name}-netcgi-devel = %{version}-%{release}
320 Requires: %{name}-netplex-devel = %{version}-%{release}
321 %requires_eq ocaml-pcre-devel
324 %description nethttpd-devel
325 HTTPd library, part of Ocamlnet. This package contains the files
326 needed to develop OCaml programs using nethttpd library.
328 %description nethttpd-devel -l pl.UTF-8
329 Biblioteka do obsługi protokołu HTTP, część pakietu Ocamlnet. Ten
330 pakiet zawiera pliki niezbędne do tworzenia programów używających
333 %package netmech-scram-devel
334 Summary: SCRAM mechanism for authentication
335 Summary(pl.UTF-8): Mechanizm autentykacji SCRAM
337 Group: Development/Libraries
338 Requires: %{name}-netcamlbox-devel = %{version}-%{release}
339 Requires: %{name}-netplex-devel = %{version}-%{release}
342 %description netmech-scram-devel
343 Netmech-scram library, part of Ocamlnet. This package contains the
344 files needed to develop OCaml programs using netmech-scram library.
346 %description netmech-scram-devel -l pl.UTF-8
347 Biblioteka do obsługi wieloprocesorowych obliczeń, część pakietu
348 Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów
349 używających biblioteki netmech-scram.
351 %package netmulticore-devel
352 Summary: Multi-processing for compute jobs
353 Summary(pl.UTF-8): Obsługa wieloprocesorowych obliczeń
355 Group: Development/Libraries
356 Requires: %{name}-netcamlbox-devel = %{version}-%{release}
357 Requires: %{name}-netplex-devel = %{version}-%{release}
360 %description netmulticore-devel
361 Netmcore library, part of Ocamlnet. This package contains the files
362 needed to develop OCaml programs using netmulticore library.
364 %description netmulticore-devel -l pl.UTF-8
365 Biblioteka do obsługi wieloprocesorowych obliczeń, część pakietu
366 Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów
367 używających biblioteki netmulticore.
370 Summary: Server framework
371 Summary(pl.UTF-8): Szkielet serwerowy
374 %requires_eq ocaml-runtime
375 %requires_eq ocaml-labltk
380 This package contains files needed to run bytecode executables using
383 %description netplex -l pl.UTF-8
386 Ten pakiet zawiera moduły potrzebne do uruchamiania programów
387 używających biblioteki netplex.
389 %package netplex-devel
390 Summary: Server framework - development part
391 Summary(pl.UTF-8): Szkielet serwerowy - cześć programistyczna
393 Group: Development/Libraries
394 Requires: %{name}-equeue-devel = %{version}-%{release}
395 Requires: %{name}-netplex = %{version}-%{release}
396 Requires: %{name}-netstring-devel = %{version}-%{release}
397 Requires: %{name}-netsys-devel = %{version}-%{release}
398 Requires: %{name}-rpc-devel = %{version}-%{release}
401 %description netplex-devel
404 This package contains files needed to develop OCaml programs using
407 %description netplex-devel -l pl.UTF-8
410 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
413 %package netshm-devel
414 Summary: Shared memory support - development package
415 Summary(pl.UTF-8): Obsługa pamięci dzielonej - pakiet programistyczny
417 Group: Development/Libraries
418 Requires: %{name}-netsys-devel = %{version}-%{release}
421 %description netshm-devel
422 Shared memory support.
424 This package contains files needed to develop OCaml programs using
427 %description netshm-devel -l pl.UTF-8
428 Obsługa pamięci dzielonej.
430 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
434 Summary: String processing library
435 Summary(pl.UTF-8): Biblioteka do przetwarzania napisów
438 Requires: %{name}-netsys-devel = %{version}-%{release}
439 %requires_eq ocaml-pcre-devel
442 %description netstring
443 String processing library, part of Ocamlnet.
445 %description netstring -l pl.UTF-8
446 Biblioteka do przetwarzania napisów, część pakietu Ocamlnet.
448 %package netstring-devel
449 Summary: String processing library
450 Summary(pl.UTF-8): Biblioteka do przetwarzania napisów
452 Group: Development/Libraries
453 Requires: %{name}-netstring = %{version}-%{release}
454 Requires: %{name}-netsys-devel = %{version}-%{release}
455 %requires_eq ocaml-pcre-devel
458 %description netstring-devel
459 String processing library, part of Ocamlnet. This package contains
460 files needed to develop OCaml programs using netstring library.
462 %description netstring-devel -l pl.UTF-8
463 Biblioteka do przetwarzania napisów, część pakietu Ocamlnet. Ten
464 pakiet zawiera pliki niezbędne do tworzenia programów używających
465 biblioteki netstring.
468 Summary: OS-specific functions
469 Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego
472 %requires_eq ocaml-runtime
475 OS-specific functions.
477 This package contains files needed to run bytecode executables using
480 %description netsys -l pl.UTF-8
481 Funkcje specyficzne dla systemu operacyjnego.
483 Ten pakiet zawiera moduły potrzebne do uruchamiania programów
484 używających biblioteki netsys.
486 %package netsys-devel
487 Summary: OS-specific functions - development part
488 Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego - cześć programistyczna
490 Group: Development/Libraries
491 Requires: %{name}-netsys = %{version}-%{release}
494 %description netsys-devel
495 OS-specific functions.
497 This package contains files needed to develop OCaml programs using
500 %description netsys-devel -l pl.UTF-8
501 Funkcje specyficzne dla systemu operacyjnego.
503 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
506 %package netzip-devel
507 Summary: Gzip channels - development part
508 Summary(pl.UTF-8): Funkcje do kompresji kanałow - cześć programistyczna
510 Group: Development/Libraries
511 Requires: %{name}-netstring-devel = %{version}-%{release}
514 %description netzip-devel
515 Gzip channels functions.
517 This package contains files needed to develop OCaml programs using
520 %description netzip-devel -l pl.UTF-8
521 Funkcje do kompresji kanałow.
523 Ten pakiet zawiera pliki niezbędne do tworzenia programów używających
527 Summary: Post Office Protocol (POP3) library
528 Summary(pl.UTF-8): Biblioteka do obsługi POP3
530 Group: Development/Libraries
531 Requires: %{name}-netstring-devel = %{version}-%{release}
534 %description pop3-devel
535 Post Office Protocol (POP3) library, part of Ocamlnet. This package
536 contains files needed to develop OCaml programs using pop library.
538 %description pop3-devel -l pl.UTF-8
539 Biblioteka do obsługi POP3, część pakietu Ocamlnet. Ten pakiet zawiera
540 pliki niezbędne do tworzenia programów używających biblioteki pop.
543 Summary: Remote Procedure Call (RPC) libraries
544 Summary(pl.UTF-8): Biblioteki do obsługi RPC
546 Group: Development/Libraries
547 Requires: %{name}-equeue-ssl = %{version}-%{release}
551 Remote Procedure Call (RPC) libraries.
553 %description rpc -l pl.UTF-8
554 Biblioteki do obsługi RPC.
557 Summary: Remote Procedure Call (RPC) libraries - development part
558 Summary(pl.UTF-8): Biblioteki do obsługi RPC - część programistyczna
560 Group: Development/Libraries
561 Requires: %{name}-equeue-ssl-devel = %{version}-%{release}
562 Requires: %{name}-rpc = %{version}-%{release}
565 %description rpc-devel
566 Remote Procedure Call (RPC) libraries - development part.
568 %description rpc-devel -l pl.UTF-8
569 Biblioteki do obsługi RPC - część programistyczna.
572 Summary: Unix shell functions
573 Summary(pl.UTF-8): Funkcje powłoki uniksowej
575 Group: Development/Libraries
576 Requires: %{name}-equeue-devel = %{version}-%{release}
577 Requires: %{name}-netsys-devel = %{version}-%{release}
580 %description shell-devel
581 Unix shell functions.
583 %description shell-devel -l pl.UTF-8
584 Funkcje powłoki uniksowej.
587 Summary: Simple Mail Transfer Protocol (SMTP) library
588 Summary(pl.UTF-8): Biblioteka do obsługi SMTP
590 Group: Development/Libraries
591 Requires: %{name}-netstring-devel = %{version}-%{release}
594 %description smtp-devel
595 Interface for the Simple Mail Tranfer Protocol (SMTP) as specified by
598 %description smtp-devel -l pl.UTF-8
599 Interfejs dla protokołu SMTP opisanego w RFC 2821.
602 %setup -q -n ocamlnet-%{version}
608 # no %%configure, please
622 -equeue-tcl-libs "-ltcl" \
627 %{__make} -j1 all %{?with_ocaml_opt:opt}
630 rm -rf $RPM_BUILD_ROOT
631 install -d $RPM_BUILD_ROOT{%{_libdir}/ocaml/stublibs,%{_apachepkglibdir},%{_apachesysconfdir}}
633 %{__make} -j1 install \
634 OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
635 DESTDIR=$RPM_BUILD_ROOT
638 for f in e* n* p* r* shell smtp ; do
639 [ -d $RPM_BUILD_ROOT%{_libdir}/ocaml/$f ] || continue
640 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f
641 mv $RPM_BUILD_ROOT%{_libdir}/ocaml/$f/META \
642 $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/
643 echo "directory = \"+$f\"" \
644 >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/META
649 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/netcgi2-apache/500netcgi_apache.info
650 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/mod_netcgi_apache.so*
652 install -p src/netcgi2-apache/mod_netcgi_apache.so $RPM_BUILD_ROOT%{_apachepkglibdir}/mod_netcgi.so
653 cat <<EOF >$RPM_BUILD_ROOT%{_apachesysconfdir}/90_mod_netcgi.conf
654 LoadModule netcgi_module modules/mod_netcgi.so
656 <IfModule netcgi_module>
657 NetcgiLoad pcre/pcre.cma
658 NetcgiLoad netsys/netsys.cma
659 NetcgiLoad netstring/netstring.cma
661 NetcgiLoad netcgi2/netcgi.cma
662 NetcgiLoad netcgi2-apache/netcgi_apache.cma
664 NetcgiHandler Netcgi_apache.bytecode
665 AddHandler ocaml-bytecode .cma
667 # Alias /caml-bin/ /path/to/your/scripts/
668 # <Location /caml-bin>
669 # SetHandler ocaml-bytecode
670 # NetcgiHandler Netcgi_apache.bytecode
679 rm $RPM_BUILD_ROOT%{_libdir}/ocaml/*/*.mli
681 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-{netcgi,equeue,netcamlbox,netmulticore,netclient,nethttpd,pop3,rpc}-%{version}
682 cp -r examples/camlbox/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcamlbox-%{version}
683 cp -r examples/cgi/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcgi-%{version}
684 cp -r examples/equeue/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-equeue-%{version}
685 cp -r examples/multicore/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netmulticore-%{version}
686 cp -r examples/netclient/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netclient-%{version}
687 cp -r examples/nethttpd/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-nethttpd-%{version}
688 cp -r examples/pop/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-pop3-%{version}
689 cp -r examples/rpc/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-rpc-%{version}
692 rm -rf $RPM_BUILD_ROOT
695 %defattr(644,root,root,755)
696 %doc LICENSE* ChangeLog RELNOTES doc/html-main
699 %defattr(644,root,root,755)
700 %dir %{_libdir}/ocaml/netcgi*
701 %{_libdir}/ocaml/netcgi*/*.cm[ixao]*
702 %if %{with ocaml_opt}
703 %{_libdir}/ocaml/netcgi*/*.a
705 %{_libdir}/ocaml/site-lib/*cgi*
706 %{_examplesdir}/%{name}-netcgi-%{version}
709 %files -n apache-mod_netcgi
710 %defattr(644,root,root,755)
711 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_apachesysconfdir}/*_mod_netcgi.conf
712 %attr(755,root,root) %{_apachepkglibdir}/mod_netcgi.so
716 %defattr(644,root,root,755)
717 %dir %{_libdir}/ocaml/equeue
718 %{_libdir}/ocaml/equeue/*.cm[ixao]*
719 %if %{with ocaml_opt}
720 %{_libdir}/ocaml/equeue/*.a
722 %{_libdir}/ocaml/site-lib/equeue
723 %{_examplesdir}/%{name}-equeue-%{version}
725 %files equeue-gtk2-devel
726 %defattr(644,root,root,755)
727 %dir %{_libdir}/ocaml/equeue-gtk2
728 %{_libdir}/ocaml/equeue-gtk2/*.cm[ixao]*
729 %if %{with ocaml_opt}
730 %{_libdir}/ocaml/equeue-gtk2/*.a
732 %{_libdir}/ocaml/site-lib/equeue-gtk2
735 %defattr(644,root,root,755)
736 %dir %{_libdir}/ocaml/equeue-ssl
737 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllequeue_ssl.so
738 %{_libdir}/ocaml/stublibs/dllequeue_ssl.so.owner
740 %files equeue-ssl-devel
741 %defattr(644,root,root,755)
742 %{_libdir}/ocaml/equeue-ssl/*.cm[ixao]*
743 %{_libdir}/ocaml/equeue-ssl/libequeue_ssl*.a
744 %if %{with ocaml_opt}
745 %{_libdir}/ocaml/equeue-ssl/equeue_ssl*.a
747 %{_libdir}/ocaml/site-lib/equeue-ssl
750 %defattr(644,root,root,755)
751 %dir %{_libdir}/ocaml/equeue-tcl
752 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllequeue_tcl.so
753 %{_libdir}/ocaml/stublibs/dllequeue_tcl.so.owner
755 %files equeue-tcl-devel
756 %defattr(644,root,root,755)
757 %{_libdir}/ocaml/equeue-tcl/*.cm[ixao]*
758 %{_libdir}/ocaml/equeue-tcl/libequeue_tcl*.a
759 %if %{with ocaml_opt}
760 %{_libdir}/ocaml/equeue-tcl/equeue_tcl*.a
762 %{_libdir}/ocaml/site-lib/equeue-tcl
764 %files netcamlbox-devel
765 %defattr(644,root,root,755)
766 %dir %{_libdir}/ocaml/netcamlbox
767 %{_libdir}/ocaml/netcamlbox/*.cm[ixao]*
768 %if %{with ocaml_opt}
769 %{_libdir}/ocaml/netcamlbox/*.a
771 %{_libdir}/ocaml/site-lib/netcamlbox
772 %{_examplesdir}/%{name}-netcamlbox-%{version}
774 %files netclient-devel
775 %defattr(644,root,root,755)
776 %dir %{_libdir}/ocaml/netclient
777 %{_libdir}/ocaml/netclient/*.cm[ixao]*
778 %if %{with ocaml_opt}
779 %{_libdir}/ocaml/netclient/*.a
781 %{_libdir}/ocaml/site-lib/netclient
782 %{_examplesdir}/%{name}-netclient-%{version}
784 %files netgssapi-devel
785 %defattr(644,root,root,755)
786 %dir %{_libdir}/ocaml/netgssapi
787 %{_libdir}/ocaml/netgssapi/*.cm[ixao]*
788 %if %{with ocaml_opt}
789 %{_libdir}/ocaml/netgssapi/*.a
791 %{_libdir}/ocaml/site-lib/netgssapi
793 %files nethttpd-devel
794 %defattr(644,root,root,755)
795 %dir %{_libdir}/ocaml/nethttpd
796 %{_libdir}/ocaml/nethttpd/*.cm[ixa]*
797 %if %{with ocaml_opt}
798 %{_libdir}/ocaml/nethttpd/*.a
800 %{_libdir}/ocaml/site-lib/nethttpd
801 %{_examplesdir}/%{name}-nethttpd-%{version}
803 %files netmech-scram-devel
804 %defattr(644,root,root,755)
805 %dir %{_libdir}/ocaml/netmech-scram
806 %{_libdir}/ocaml/netmech-scram/*.cm[ixa]*
807 %if %{with ocaml_opt}
808 %{_libdir}/ocaml/netmech-scram/*.a
810 %{_libdir}/ocaml/site-lib/netmech-scram
812 %files netmulticore-devel
813 %defattr(644,root,root,755)
814 %dir %{_libdir}/ocaml/netmulticore
815 %{_libdir}/ocaml/netmulticore/*.cm[ixa]*
816 %if %{with ocaml_opt}
817 %{_libdir}/ocaml/netmulticore/*.a
819 %{_libdir}/ocaml/site-lib/netmulticore
820 %{_examplesdir}/%{name}-netmulticore-%{version}
823 %defattr(644,root,root,755)
824 %attr(755,root,root) %{_bindir}/netplex-admin
825 %dir %{_libdir}/ocaml/netplex
826 %if %{with ocaml_opt}
827 %{_libdir}/ocaml/netplex/*.o
831 %defattr(644,root,root,755)
832 %{_libdir}/ocaml/netplex/netplex-packlist
833 %{_libdir}/ocaml/netplex/*.cm[ixao]*
834 %if %{with ocaml_opt}
835 %{_libdir}/ocaml/netplex/*.a
837 %{_libdir}/ocaml/site-lib/netplex
840 %defattr(644,root,root,755)
841 %dir %{_libdir}/ocaml/netshm
842 %{_libdir}/ocaml/netshm/*.cm[ixao]*
843 %if %{with ocaml_opt}
844 %{_libdir}/ocaml/netshm/*.a
846 %{_libdir}/ocaml/site-lib/netshm
849 %defattr(644,root,root,755)
850 %dir %{_libdir}/ocaml/netstring
851 %if %{with ocaml_opt}
852 %{_libdir}/ocaml/netstring/*.o
854 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetaccel_c.so
855 %{_libdir}/ocaml/stublibs/dllnetaccel_c.so.owner
857 %files netstring-devel
858 %defattr(644,root,root,755)
859 %{_libdir}/ocaml/netstring/netdb-packlist
860 %{_libdir}/ocaml/netstring/*.cm[ixao]*
861 %{_libdir}/ocaml/netstring/libnetaccel_c.a
862 %if %{with ocaml_opt}
863 %{_libdir}/ocaml/netstring/netstring*.a
865 %{_libdir}/ocaml/site-lib/netstring
868 %defattr(644,root,root,755)
869 %dir %{_libdir}/ocaml/netsys
870 %{_libdir}/ocaml/netsys/*.o
871 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetsys.so
872 %{_libdir}/ocaml/stublibs/dllnetsys.so.owner
875 %defattr(644,root,root,755)
876 %{_libdir}/ocaml/netsys/*.cm[ixao]*
877 %{_libdir}/ocaml/netsys/libnetsys*.a
878 %if %{with ocaml_opt}
879 %{_libdir}/ocaml/netsys/netsys*.a
881 %{_libdir}/ocaml/netsys/netsys_c_event.h
882 %{_libdir}/ocaml/site-lib/netsys
885 %defattr(644,root,root,755)
886 %dir %{_libdir}/ocaml/netzip
887 %{_libdir}/ocaml/netzip/*.cm[ixao]*
888 %if %{with ocaml_opt}
889 %{_libdir}/ocaml/netzip/*.a
891 %{_libdir}/ocaml/site-lib/netzip
894 %defattr(644,root,root,755)
895 %dir %{_libdir}/ocaml/pop
896 %{_libdir}/ocaml/pop/*.cm[ixao]*
897 %if %{with ocaml_opt}
898 %{_libdir}/ocaml/pop/*.a
900 %{_libdir}/ocaml/site-lib/pop
901 %{_examplesdir}/%{name}-pop3-%{version}
904 %defattr(644,root,root,755)
905 %attr(755,root,root) %{_bindir}/ocamlrpcgen
906 %dir %{_libdir}/ocaml/rpc-auth-local
907 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllrpc_auth_local.so
908 %{_libdir}/ocaml/stublibs/dllrpc_auth_local.so.owner
911 %defattr(644,root,root,755)
912 %dir %{_libdir}/ocaml/rpc
913 %dir %{_libdir}/ocaml/rpc-auth-dh
914 %dir %{_libdir}/ocaml/rpc-generator
915 %dir %{_libdir}/ocaml/rpc-ssl
916 %{_libdir}/ocaml/rpc-generator/rpcgen-packlist
917 %{_libdir}/ocaml/rpc*/*.cm[ixao]*
918 %{_libdir}/ocaml/rpc*/librpc_auth_local*.a
919 %if %{with ocaml_opt}
920 %{_libdir}/ocaml/rpc*/rpc*.a
922 %{_libdir}/ocaml/site-lib/rpc*
923 %{_examplesdir}/%{name}-rpc-%{version}
926 %defattr(644,root,root,755)
927 %dir %{_libdir}/ocaml/shell
928 %{_libdir}/ocaml/shell/*.cm[ixao]*
929 %if %{with ocaml_opt}
930 %{_libdir}/ocaml/shell/*.a
932 %{_libdir}/ocaml/site-lib/shell
935 %defattr(644,root,root,755)
936 %dir %{_libdir}/ocaml/smtp
937 %{_libdir}/ocaml/smtp/*.cm[ixao]*
938 %if %{with ocaml_opt}
939 %{_libdir}/ocaml/smtp/*.a
941 %{_libdir}/ocaml/site-lib/smtp