# # Conditional build: %bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built) %bcond_with apache # build apache module # not yet available on x32 (ocaml 4.02.1), remove when upstream will support it %ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9 %undefine with_ocaml_opt %endif %define apxs /usr/sbin/apxs %define apache /usr/sbin/httpd Summary: Modules for Internet programming in OCaml Summary(pl.UTF-8): Moduły ułatwiające pisanie programów internetowych w OCamlu Name: ocaml-net Version: 4.1.8 Release: 2 License: GPL v2+ (nethttpd), LGPL v2+ (mod_caml), BSD-like (the rest) Group: Libraries Source0: http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz # Source0-md5: 0a76da5734e1861175f575c4e4ed3896 Patch0: %{name}-buildfix.patch Patch1: %{name}-lablgtk2.patch Patch2: %{name}-apache-link.patch URL: http://projects.camlcity.org/projects/ocamlnet.html %if %{with apache} BuildRequires: %{apache} BuildRequires: %{apxs} BuildRequires: apache-devel >= 2.0 %endif BuildRequires: ncurses-devel BuildRequires: ocaml >= 1:3.09.2 BuildRequires: ocaml-camlp4 BuildRequires: ocaml-cryptokit-devel BuildRequires: ocaml-findlib BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-lablgtk2-devel >= 2.14.2 BuildRequires: ocaml-labltk-devel BuildRequires: ocaml-pcre-devel BuildRequires: ocaml-ssl-devel BuildRequires: ocaml-zip-devel BuildRequires: tcl-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _apachepkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) %define _apachesysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d %description Modules for Internet programming in OCaml. %description -l pl.UTF-8 Moduły ułatwiające pisanie programów internetowych w OCamlu. %package doc Summary: ocaml-net documentation Summary(pl.UTF-8): Dokumentacja dla pakietów ocaml-net License: BSD-like Group: Development/Libraries %description doc ocaml-net documentation. %description doc -l pl.UTF-8 Dokumentacja dla pakietów ocaml-net. %package netcgi-devel Summary: Common Gateway Interface library Summary(pl.UTF-8): Biblioteka do tworzenia skryptów CGI License: LGPL v2+ (mod_caml), BSD-like (the rest) Group: Development/Libraries Requires: %{name}-netplex-devel = %{version}-%{release} Requires: %{name}-netstring-devel = %{version}-%{release} Requires: %{name}-netsys-devel = %{version}-%{release} Obsoletes: ocaml-net-cgi-devel %requires_eq ocaml %description netcgi-devel Common Gateway Interface library, part of Ocamlnet. This package contains files needed to develop OCaml programs using netcgi library. %description netcgi-devel -l pl.UTF-8 Biblioteka do tworzenia skryptów CGI, część pakietu Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netcgi. %package -n apache-mod_netcgi Summary: Apache module Summary(pl.UTF-8): Moduł Apache'a Group: Networking/Daemons/HTTP Requires: apache(modules-api) = %apache_modules_api %description -n apache-mod_netcgi %description -n apache-mod_netcgi -l pl.UTF-8 %package equeue-devel Summary: Event queue library for OCaml Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla License: BSD-like Group: Development/Libraries Requires: %{name}-netsys-devel = %{version}-%{release} %requires_eq ocaml Obsoletes: ocaml-equeue-devel %description equeue-devel Equeue provides a generic event queue module, and a specific module for file descriptor events. This package contains files needed to develop OCaml programs using equeue library. %description equeue-devel -l pl.UTF-8 Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również modułu obsługi zdarzeń na deskryptorach plików. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki equeue. %package equeue-gtk2-devel Summary: GTK2 event queue library for OCaml Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń GTK2 dla OCamla License: BSD-like Group: Development/Libraries Requires: %{name}-equeue-devel = %{version}-%{release} Requires: ocaml-lablgtk2-devel %requires_eq ocaml %description equeue-gtk2-devel Equeue provides a generic event queue module, and a specific module for file descriptor events. This package contains files needed to develop OCaml programs using GTK2 equeue library. %description equeue-gtk2-devel -l pl.UTF-8 Equeue dostarcza ogólnego modułu obsługi kolejki zdarzeń jak również modułu obsługi zdarzeń na deskryptorach plików. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki equeue GTK2. %package equeue-tcl Summary: Event queue library for OCaml, Tcl support Summary(pl.UTF-8): Biblioteka obsługująca kolejkę zdarzeń dla OCamla, wsparcie dla Tcl License: BSD-like Group: Libraries %requires_eq ocaml-runtime %requires_eq ocaml-labltk Obsoletes: ocaml-equeue-tcl %description equeue-tcl This package makes it possible to let Equeue cooperate with the event queue implementation of Tcl. This package contains files needed to run bytecode executables using equeue-tcl library. %description equeue-tcl -l pl.UTF-8 Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń w Tcl. Ten pakiet zawiera moduły potrzebne do uruchamiania programów używających biblioteki equeue-tcl. %package equeue-tcl-devel Summary: Equeue Tcl support - development part Summary(pl.UTF-8): Wsparcie dla Tcl-a w equeue - cześć programistyczna License: BSD-like Group: Development/Libraries Requires: %{name}-equeue-devel = %{version}-%{release} Requires: %{name}-equeue-tcl = %{version}-%{release} %requires_eq ocaml-labltk-devel %requires_eq ocaml Obsoletes: ocaml-equeue-tcl-devel %description equeue-tcl-devel This package makes it possible to let Equeue cooperate with the event queue implementation of Tcl. This package contains files needed to develop OCaml programs using this library. %description equeue-tcl-devel -l pl.UTF-8 Pakiet ten umożliwia współpracę Equeue z implementacją kolejki zdarzeń w Tcl. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki equeue-tcl. %package netcamlbox-devel Summary: Fast IPC mechanism for OCaml Summary(pl.UTF-8): Szybki mechanizm IPC dla OCamla License: BSD-like Group: Development/Libraries Requires: %{name}-netsys-devel = %{version}-%{release} %requires_eq ocaml %description netcamlbox-devel Camlboxes are a fast IPC mechanism to send Ocaml values from one process to another. Source and destination processes must run on the same machine (no network). The Ocaml value is copied to a shared memory object where it can be directly accessed by the receiver without unmarshalling step. This means the sender writes the value into the shared memory in a format that can immediately interpreted by the receiver. This package contains files needed to develop OCaml programs using netcamlbox library. %description netcamlbox-devel -l pl.UTF-8 Camlboxy są szybkim mechanizmem IPC do przesyłania danych Ocamla pomiędzy procesami. Nadawca i odbiorca muszą być uruchomione na tej samej maszynie. Dane Ocamla są kopiowane do segmentu pamięci dzielonej, gdzie mogą byc bezpośrednio odczytywane przez odbiorcę. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netcamlbox. %package netclient-devel Summary: HTTP 1.1 client for OCaml Summary(pl.UTF-8): Klient HTTP 1.1 dla OCamla License: BSD-like Group: Development/Libraries Requires: %{name}-equeue-devel = %{version}-%{release} Requires: %{name}-netstring-devel = %{version}-%{release} %requires_eq ocaml Obsoletes: ocaml-netclient-devel %description netclient-devel Implements much of HTTP/1.1. Implements the following advanced features: chunked messages; persistent connections; connections in pipelining mode ("full duplex" connections); modular authentication methods, currently Basic and Digest; event-driven implementation; allows concurrent service for several network connections. This package contains files needed to develop OCaml programs using netclient library. %description netclient-devel -l pl.UTF-8 Biblioteka netclient implementuje większość HTTP/1.1, a także następujące zaawansowane właściwości: komunikaty w kawałkach; połączenia stałe; połączenia w trybie "full duplex"; modularne metody uwierzytelniania, obecnie Basic i Digest; implementacja oparta na zdarzeniach; umożliwia jednoczesną obsługę kilku połączeń. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netclient. %package netgss-system Summary: GSS-API generic definition Summary(pl.UTF-8): Biblioteka do obsługi protokołu GSSAPI License: GPL v2+ Group: Libraries Requires: %{name}-netstring = %{version}-%{release} Requires: %{name}-netsys = %{version}-%{release} %requires_eq ocaml %description netgss-system GSSAPI library, part of Ocamlnet. This package contains the files needed to develop OCaml programs using netgss-system library. %description netgss-system -l pl.UTF-8 Biblioteka do obsługi protokołu GSSAPI, część pakietu Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netgss-system. %package netgss-system-devel Summary: GSS-API generic definition Summary(pl.UTF-8): Biblioteka do obsługi protokołu GSSAPI License: GPL v2+ Group: Development/Libraries Requires: %{name}-netgss-system-devel = %{version}-%{release} Requires: %{name}-netstring-devel = %{version}-%{release} Requires: %{name}-netsys-devel = %{version}-%{release} %requires_eq ocaml %description netgss-system-devel GSSAPI library, part of Ocamlnet. This package contains the files needed to develop OCaml programs using netgss-system library. %description netgss-system-devel -l pl.UTF-8 Biblioteka do obsługi protokołu GSSAPI, część pakietu Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netgss-system. %package nethttpd-devel Summary: HTTPd library Summary(pl.UTF-8): Biblioteka do obsługi protokołu HTTP License: GPL v2+ Group: Development/Libraries Requires: %{name}-equeue-devel = %{version}-%{release} Requires: %{name}-netcgi-devel = %{version}-%{release} Requires: %{name}-netplex-devel = %{version}-%{release} %requires_eq ocaml-pcre-devel %requires_eq ocaml %description nethttpd-devel HTTPd library, part of Ocamlnet. This package contains the files needed to develop OCaml programs using nethttpd library. %description nethttpd-devel -l pl.UTF-8 Biblioteka do obsługi protokołu HTTP, część pakietu Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki nethttpd. %package netmulticore-devel Summary: Multi-processing for compute jobs Summary(pl.UTF-8): Obsługa wieloprocesorowych obliczeń License: GPL v2+ Group: Development/Libraries Requires: %{name}-netcamlbox-devel = %{version}-%{release} Requires: %{name}-netplex-devel = %{version}-%{release} %requires_eq ocaml %description netmulticore-devel Netmcore library, part of Ocamlnet. This package contains the files needed to develop OCaml programs using netmulticore library. %description netmulticore-devel -l pl.UTF-8 Biblioteka do obsługi wieloprocesorowych obliczeń, część pakietu Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netmulticore. %package netplex Summary: Server framework Summary(pl.UTF-8): Szkielet serwerowy License: BSD-like Group: Libraries %requires_eq ocaml-runtime %requires_eq ocaml-labltk %description netplex Server framework. This package contains files needed to run bytecode executables using netplex library. %description netplex -l pl.UTF-8 Szkielet serwerowy. Ten pakiet zawiera moduły potrzebne do uruchamiania programów używających biblioteki netplex. %package netplex-devel Summary: Server framework - development part Summary(pl.UTF-8): Szkielet serwerowy - cześć programistyczna License: BSD-like Group: Development/Libraries Requires: %{name}-equeue-devel = %{version}-%{release} Requires: %{name}-netplex = %{version}-%{release} Requires: %{name}-netstring-devel = %{version}-%{release} Requires: %{name}-netsys-devel = %{version}-%{release} Requires: %{name}-rpc-devel = %{version}-%{release} %requires_eq ocaml %description netplex-devel Server framework. This package contains files needed to develop OCaml programs using netplex library. %description netplex-devel -l pl.UTF-8 Szkielet serwerowy. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netplex. %package netshm-devel Summary: Shared memory support - development package Summary(pl.UTF-8): Obsługa pamięci dzielonej - pakiet programistyczny License: BSD-like Group: Development/Libraries Requires: %{name}-netsys-devel = %{version}-%{release} %requires_eq ocaml %description netshm-devel Shared memory support. This package contains files needed to develop OCaml programs using netshm library. %description netshm-devel -l pl.UTF-8 Obsługa pamięci dzielonej. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netshm. %package netstring Summary: String processing library Summary(pl.UTF-8): Biblioteka do przetwarzania napisów License: BSD-like Group: Libraries Requires: %{name}-netsys-devel = %{version}-%{release} %requires_eq ocaml-pcre-devel %requires_eq ocaml %description netstring String processing library, part of Ocamlnet. %description netstring -l pl.UTF-8 Biblioteka do przetwarzania napisów, część pakietu Ocamlnet. %package netstring-devel Summary: String processing library Summary(pl.UTF-8): Biblioteka do przetwarzania napisów License: BSD-like Group: Development/Libraries Requires: %{name}-netstring = %{version}-%{release} Requires: %{name}-netsys-devel = %{version}-%{release} %requires_eq ocaml-pcre-devel %requires_eq ocaml %description netstring-devel String processing library, part of Ocamlnet. This package contains files needed to develop OCaml programs using netstring library. %description netstring-devel -l pl.UTF-8 Biblioteka do przetwarzania napisów, część pakietu Ocamlnet. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netstring. %package netsys Summary: OS-specific functions Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego License: BSD-like Group: Libraries %requires_eq ocaml-runtime %description netsys OS-specific functions. This package contains files needed to run bytecode executables using netsys library. %description netsys -l pl.UTF-8 Funkcje specyficzne dla systemu operacyjnego. Ten pakiet zawiera moduły potrzebne do uruchamiania programów używających biblioteki netsys. %package netsys-devel Summary: OS-specific functions - development part Summary(pl.UTF-8): Funkcje specyficzne dla systemu operacyjnego - cześć programistyczna License: BSD-like Group: Development/Libraries Requires: %{name}-netsys = %{version}-%{release} %requires_eq ocaml %description netsys-devel OS-specific functions. This package contains files needed to develop OCaml programs using netsys library. %description netsys-devel -l pl.UTF-8 Funkcje specyficzne dla systemu operacyjnego. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netsys. %package netzip-devel Summary: Gzip channels - development part Summary(pl.UTF-8): Funkcje do kompresji kanałow - cześć programistyczna License: BSD-like Group: Development/Libraries Requires: %{name}-netstring-devel = %{version}-%{release} %requires_eq ocaml %description netzip-devel Gzip channels functions. This package contains files needed to develop OCaml programs using netzip library. %description netzip-devel -l pl.UTF-8 Funkcje do kompresji kanałow. Ten pakiet zawiera pliki niezbędne do tworzenia programów używających biblioteki netzip. %package rpc Summary: Remote Procedure Call (RPC) libraries Summary(pl.UTF-8): Biblioteki do obsługi RPC License: BSD-like Group: Development/Libraries %requires_eq ocaml %description rpc Remote Procedure Call (RPC) libraries. %description rpc -l pl.UTF-8 Biblioteki do obsługi RPC. %package rpc-devel Summary: Remote Procedure Call (RPC) libraries - development part Summary(pl.UTF-8): Biblioteki do obsługi RPC - część programistyczna License: BSD-like Group: Development/Libraries Requires: %{name}-rpc = %{version}-%{release} %requires_eq ocaml %description rpc-devel Remote Procedure Call (RPC) libraries - development part. %description rpc-devel -l pl.UTF-8 Biblioteki do obsługi RPC - część programistyczna. %package shell-devel Summary: Unix shell functions Summary(pl.UTF-8): Funkcje powłoki uniksowej License: BSD-like Group: Development/Libraries Requires: %{name}-equeue-devel = %{version}-%{release} Requires: %{name}-netsys-devel = %{version}-%{release} %requires_eq ocaml %description shell-devel Unix shell functions. %description shell-devel -l pl.UTF-8 Funkcje powłoki uniksowej. %package netunidata-devel Summary: Unicode lookup tables License: BSD-like Group: Development/Libraries Requires: %{name}-netstring-devel = %{version}-%{release} Requires: %{name}-netunidata-devel = %{version}-%{release} %requires_eq ocaml %description netunidata-devel Unicode lookup tables. %prep %setup -q -n ocamlnet-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build # no %%configure, please ./configure \ -datadir %{_datadir}/%{name} \ -disable-gtk \ -enable-gtk2 \ -enable-zip \ -enable-gssapi \ %if %{with apache} -enable-apache \ %else -disable-apache \ %endif -enable-tcl \ -equeue-tcl-libs "-ltcl" \ -with-nethttpd \ -apxs %{apxs} \ -apache %{apache} %{__make} -j1 all %{?with_ocaml_opt:opt} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_libdir}/ocaml/stublibs,%{_apachepkglibdir},%{_apachesysconfdir}} %{__make} -j1 install \ OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \ DESTDIR=$RPM_BUILD_ROOT %if %{with apache} %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/netcgi2-apache/500netcgi_apache.info %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/mod_netcgi_apache.so* install -p src/netcgi2-apache/mod_netcgi_apache.so $RPM_BUILD_ROOT%{_apachepkglibdir}/mod_netcgi.so cat <$RPM_BUILD_ROOT%{_apachesysconfdir}/90_mod_netcgi.conf LoadModule netcgi_module modules/mod_netcgi.so NetcgiLoad pcre/pcre.cma NetcgiLoad netsys/netsys.cma NetcgiLoad netstring/netstring.cma NetcgiLoad str.cma NetcgiLoad netcgi2/netcgi.cma NetcgiLoad netcgi2-apache/netcgi_apache.cma NetcgiHandler Netcgi_apache.bytecode AddHandler ocaml-bytecode .cma # Alias /caml-bin/ /path/to/your/scripts/ # # SetHandler ocaml-bytecode # NetcgiHandler Netcgi_apache.bytecode # Options ExecCGI # Allow from all # EOF %endif # not sure about *.o rm $RPM_BUILD_ROOT%{_libdir}/ocaml/*/*.mli install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-{netcgi,equeue,netcamlbox,netmulticore,netclient,nethttpd,rpc}-%{version} cp -r examples/camlbox/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcamlbox-%{version} cp -r examples/cgi/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netcgi-%{version} cp -r examples/equeue/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-equeue-%{version} cp -r examples/multicore/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netmulticore-%{version} cp -r examples/netclient/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-netclient-%{version} cp -r examples/nethttpd/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-nethttpd-%{version} cp -r examples/rpc/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-rpc-%{version} %clean rm -rf $RPM_BUILD_ROOT %files doc %defattr(644,root,root,755) %doc LICENSE* ChangeLog RELNOTES doc/html-main %files netcgi-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netcgi* %{_libdir}/ocaml/netcgi*/META %{_libdir}/ocaml/netcgi*/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/netcgi*/*.a %endif %{_examplesdir}/%{name}-netcgi-%{version} %if %{with apache} %files -n apache-mod_netcgi %defattr(644,root,root,755) %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_apachesysconfdir}/*_mod_netcgi.conf %attr(755,root,root) %{_apachepkglibdir}/mod_netcgi.so %endif %files equeue-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/equeue %{_libdir}/ocaml/equeue/META %{_libdir}/ocaml/equeue/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/equeue/*.a %endif %{_examplesdir}/%{name}-equeue-%{version} %files equeue-gtk2-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/equeue-gtk2 %{_libdir}/ocaml/equeue-gtk2/META %{_libdir}/ocaml/equeue-gtk2/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/equeue-gtk2/*.a %endif %files equeue-tcl %defattr(644,root,root,755) %dir %{_libdir}/ocaml/equeue-tcl %{_libdir}/ocaml/equeue-tcl/META %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllequeue_tcl.so %{_libdir}/ocaml/stublibs/dllequeue_tcl.so.owner %files equeue-tcl-devel %defattr(644,root,root,755) %{_libdir}/ocaml/equeue-tcl/*.cm[ixao]* %{_libdir}/ocaml/equeue-tcl/libequeue_tcl*.a %if %{with ocaml_opt} %{_libdir}/ocaml/equeue-tcl/equeue_tcl*.a %endif %files netcamlbox-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netcamlbox %{_libdir}/ocaml/netcamlbox/META %{_libdir}/ocaml/netcamlbox/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/netcamlbox/*.a %endif %{_examplesdir}/%{name}-netcamlbox-%{version} %files netclient-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netclient %{_libdir}/ocaml/netclient/META %{_libdir}/ocaml/netclient/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/netclient/*.a %endif %{_examplesdir}/%{name}-netclient-%{version} %files netgss-system %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netgss-system %{_libdir}/ocaml/netgss-system/META %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetgss-system.so %{_libdir}/ocaml/stublibs/dllnetgss-system.so.owner %files netgss-system-devel %defattr(644,root,root,755) %{_libdir}/ocaml/netgss-system/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/netgss-system/netgss-system*.a %endif %{_libdir}/ocaml/netgss-system/libnetgss-system*.a %files nethttpd-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/nethttpd %{_libdir}/ocaml/nethttpd/META %{_libdir}/ocaml/nethttpd/*.cm[ixa]* %if %{with ocaml_opt} %{_libdir}/ocaml/nethttpd/*.a %endif %{_examplesdir}/%{name}-nethttpd-%{version} %files netmulticore-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netmulticore %{_libdir}/ocaml/netmulticore/META %{_libdir}/ocaml/netmulticore/*.cm[ixa]* %if %{with ocaml_opt} %{_libdir}/ocaml/netmulticore/*.a %endif %{_examplesdir}/%{name}-netmulticore-%{version} %files netplex %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/netplex-admin %dir %{_libdir}/ocaml/netplex %{_libdir}/ocaml/netplex/META %if %{with ocaml_opt} %{_libdir}/ocaml/netplex/*.o %endif %files netplex-devel %defattr(644,root,root,755) %{_libdir}/ocaml/netplex/netplex-packlist %{_libdir}/ocaml/netplex/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/netplex/*.a %endif %files netshm-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netshm %{_libdir}/ocaml/netshm/META %{_libdir}/ocaml/netshm/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/netshm/*.a %endif %files netstring %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netstring %{_libdir}/ocaml/netstring/META %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetaccel_c.so %{_libdir}/ocaml/stublibs/dllnetaccel_c.so.owner %if %{with ocaml_opt} %{_libdir}/ocaml/netstring/*.o %endif %files netstring-devel %defattr(644,root,root,755) %{_libdir}/ocaml/netstring/*.cm[ixao]* %{_libdir}/ocaml/netstring/libnetaccel_c.a %if %{with ocaml_opt} %{_libdir}/ocaml/netstring/netstring*.a %endif %files netsys %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netsys %{_libdir}/ocaml/netsys/META %{_libdir}/ocaml/netsys/*.o %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllnetsys.so %{_libdir}/ocaml/stublibs/dllnetsys.so.owner %files netsys-devel %defattr(644,root,root,755) %{_libdir}/ocaml/netsys/*.cm[ixao]* %{_libdir}/ocaml/netsys/libnetsys*.a %if %{with ocaml_opt} %{_libdir}/ocaml/netsys/netsys*.a %endif %{_libdir}/ocaml/netsys/netsys_c_event.h %files netzip-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netzip %{_libdir}/ocaml/netzip/META %{_libdir}/ocaml/netzip/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/netzip/*.a %endif %files rpc %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/ocamlrpcgen %dir %{_libdir}/ocaml/rpc-auth-local %{_libdir}/ocaml/rpc-auth-local/META %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllrpc_auth_local.so %{_libdir}/ocaml/stublibs/dllrpc_auth_local.so.owner %files rpc-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/rpc %{_libdir}/ocaml/rpc/META %dir %{_libdir}/ocaml/rpc-generator %{_libdir}/ocaml/rpc-generator/META %{_libdir}/ocaml/rpc-generator/rpcgen-packlist %{_libdir}/ocaml/rpc*/*.cm[ixao]* %{_libdir}/ocaml/rpc*/librpc_auth_local*.a %if %{with ocaml_opt} %{_libdir}/ocaml/rpc*/rpc*.a %endif %{_examplesdir}/%{name}-rpc-%{version} %files shell-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/shell %{_libdir}/ocaml/shell/META %{_libdir}/ocaml/shell/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/shell/*.a %endif %files netunidata-devel %defattr(644,root,root,755) %dir %{_libdir}/ocaml/netunidata %{_libdir}/ocaml/netunidata/META %{_libdir}/ocaml/netunidata/*.cm[ixao]* %if %{with ocaml_opt} %{_libdir}/ocaml/netunidata/*.a %{_libdir}/ocaml/netunidata/*.o %endif %{_datadir}/ocaml-net