LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ocaml-ocamlnet.spec of Package ocaml-ocamlnet (Project home:mvdlinde_ger:arch)

#
# spec file for package ocaml-ocamlnet
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define upstreamname ocamlnet
Name:           ocaml-ocamlnet
Version:        4.1.5
Release:        0
%{?ocaml_preserve_bytecode}
Summary:        Ocamlnet - String processing library
License:        SUSE-Permissive and GPL-2.0 and LGPL-2.1+
Group:          Development/Languages/OCaml
Url:            http://projects.camlcity.org/projects/ocamlnet.html
Source0:        %{upstreamname}-%{version}.tar.gz
Patch0:         ocamlnet.HAVE_GPROF.patch
Patch1:         ocamlnet_setlocalldconf.patch
BuildRequires:  libopenssl-devel
BuildRequires:  ncurses-devel
BuildRequires:  ocaml
BuildRequires:  ocaml-camlp4-devel
BuildRequires:  ocaml-camlzip-devel
BuildRequires:  ocaml-findlib
BuildRequires:  ocamlfind(bigarray)
BuildRequires:  ocamlfind(bytes)
BuildRequires:  ocamlfind(pcre)
BuildRequires:  ocamlfind(stdlib)
BuildRequires:  ocamlfind(str)
BuildRequires:  ocamlfind(unix)
BuildRequires:  ocaml-oasis
BuildRequires:  ocaml-rpm-macros >= 4.03
BuildRequires:  pcre-devel
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  pkgconfig(krb5)
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Internet protocols (http, cgi, email etc.) and helper data structures
(mail messages, character sets, etc.)

Ocamlnet is an enhanced system platform library for Ocaml. As the name
suggests, large parts of it have to do with network programming, but it is
actually not restricted to this. Other parts deal with the management of
multiple worker processes, and the interaction with other programs running
on the same machine. You can also view Ocamlnet as an extension of the system
interface as provided by the Unix module of the standard library.

%package equeue
Summary:        OCaml event system devel
Group:          Development/Languages/OCaml

%description equeue
Equeue implements generic event queues.

%package equeue-devel
Summary:        OCaml event system devel
Group:          Development/Languages/OCaml

%description equeue-devel
Equeue implements generic event queues.

%package netcamlbox
Summary:        OCaml IPC devel
Group:          Development/Languages/OCaml

%description netcamlbox
Camlboxes are a fast IPC mechanism to send Ocaml values from one process
to another.

%package netcamlbox-devel
Summary:        OCaml IPC devel
Group:          Development/Languages/OCaml

%description netcamlbox-devel
Camlboxes are a fast IPC mechanism to send Ocaml values from one process
to another.

%package netcgi2
Summary:        OCaml Classical CGI connector
Group:          Development/Languages/OCaml

%description netcgi2
OCaml Classical CGI connector.

%package netcgi2-devel
Summary:        OCaml Classical CGI connector
Group:          Development/Languages/OCaml

%description netcgi2-devel
OCaml Classical CGI connector.

%package netcgi2-plex-devel
Summary:        OCaml netcgi2-plex
Group:          Development/Languages/OCaml

%description netcgi2-plex-devel
netcgi2-plex

%package netclient
Summary:        OCaml ftp, http, telnet
Group:          Development/Languages/OCaml
Provides:       ocaml-ocamlnet-pop = %{version}
Obsoletes:      ocaml-ocamlnet-pop < %{version}
Provides:       ocaml-ocamlnet-smtp = %{version}
Obsoletes:      ocaml-ocamlnet-smtp < %{version}

%description netclient
OCaml ftp, http, telnet clients

%package netclient-devel
Summary:        OCaml ftp, http, telnet
Group:          Development/Languages/OCaml
Provides:       ocaml-ocamlnet-pop-devel = %{version}
Obsoletes:      ocaml-ocamlnet-pop-devel < %{version}
Provides:       ocaml-ocamlnet-smtp-devel = %{version}
Obsoletes:      ocaml-ocamlnet-smtp-devel < %{version}

%description netclient-devel
OCaml ftp, http, telnet clients

%package netgss-system
Summary:        OCaml netgss-system
Group:          Development/Languages/OCaml

%description netgss-system
netgss-system

%package netgss-system-devel
Summary:        OCaml netgss-system
Group:          Development/Languages/OCaml
Requires:       %{name}-netgss-system = %{version}

%description netgss-system-devel
netgss-system

%package nethttpd-devel
Summary:        OCaml http definitions
Group:          Development/Languages/OCaml

%description nethttpd-devel
OCaml http definitions can be used by the server or client

%package netmulticore-devel
Summary:        OCaml Multi-processing for compute jobs
Group:          Development/Languages/OCaml

%description netmulticore-devel
This library allows the development of parallel algorithms that
can take advantage of multiple CPU cores. It does not use Ocaml's
multi-threading feature because this would implicitly serialize all
computations. Instead, independent processes are created, and the
communication between processes is made as cheap and unproblematic
as possible.

%package netplex
Summary:        OCaml server framework
Group:          Development/Languages/OCaml

%description netplex
Netplex is a generic (stream) server framework. This means, Netplex does a
lot of things for a network service that are always the same, regardless
of the kind of service:

  Creation of server sockets
  Accepting new network connections
  Organizing multiple threads of execution - either by multiple processes,
      multiple POSIX threads, or multiplexing
  Workload management
  Writing log files
  Broadcasting messages to all server components
  Support for a configuration file format

Netplex currently only supports stream sockets (TCP or Unix Domain).

%package netplex-devel
Summary:        OCaml server framework devel
Group:          Development/Languages/OCaml

%description netplex-devel
Development files for ocaml-ocamlnet-netplex

%package netshm
Summary:        OCaml shared memory
Group:          Development/Languages/OCaml

%description netshm
Shared memory for OCaml programs using multi-processing

%package netshm-devel
Summary:        OCaml shared memory
Group:          Development/Languages/OCaml

%description netshm-devel
Shared memory for OCaml programs using multi-processing

%package netstring
Summary:        OCaml system calls
Group:          Development/Languages/OCaml

%description netstring
OCaml system calls missing in the Unix module

%package netstring-devel
Summary:        OCaml system calls
Group:          Development/Languages/OCaml
Requires:       %{name}-netstring = %{version}

%description netstring-devel
OCaml system calls missing in the Unix module

%package netstring-pcre-devel
Summary:        OCaml netstring-pcre
Group:          Development/Languages/OCaml

%description netstring-pcre-devel
netstring-pcre

%package netsys
Summary:        OCaml system calls
Group:          Development/Languages/OCaml

%description netsys
OCaml system calls missing in the Unix module

%package netsys-devel
Summary:        OCaml system calls
Group:          Development/Languages/OCaml
Requires:       %{name}-netsys = %{version}

%description netsys-devel
OCaml system calls missing in the Unix module

%package nettls-gnutls
Summary:        OCaml nettls-gnutls
Group:          Development/Languages/OCaml
Provides:       ocaml-ocamlnet-netgssapi = %{version}
Obsoletes:      ocaml-ocamlnet-netgssapi < %{version}
%description nettls-gnutls
nettls-gnutls

%package nettls-gnutls-devel
Summary:        OCaml nettls-gnutls
Group:          Development/Languages/OCaml
Requires:       %{name}-nettls-gnutls = %{version}
Provides:       ocaml-ocamlnet-netgssapi-devel = %{version}
Obsoletes:      ocaml-ocamlnet-netgssapi-devel < %{version}

%description nettls-gnutls-devel
nettls-gnutls

%package netunidata-devel
Summary:        OCaml netunidata
Group:          Development/Languages/OCaml

%description netunidata-devel
netunidata

%package netzip
Summary:        OCaml gzip channel
Group:          Development/Languages/OCaml

%description netzip
OCaml gzip object channel

%package netzip-devel
Summary:        OCaml gzip channel
Group:          Development/Languages/OCaml

%description netzip-devel
OCaml gzip object channel

%package rpc
Summary:        OCaml rpc
Group:          Development/Languages/OCaml

%description rpc
OCaml Remote Procedure Call implementation

%package rpc-devel
Summary:        OCaml rpc
Group:          Development/Languages/OCaml

%description rpc-devel
Development files for ocaml-ocamlnet-rpc

%package rpc-auth-local
Summary:        OCaml rpc-auth-local
Group:          Development/Languages/OCaml
%description rpc-auth-local
rpc-auth-local

%package rpc-auth-local-devel
Summary:        OCaml rpc-auth-local
Group:          Development/Languages/OCaml
Requires:       %{name}-rpc-auth-local = %{version}

%description rpc-auth-local-devel
rpc-auth-local

%package rpc-generator-devel
Summary:        OCaml rpc-generator
Group:          Development/Languages/OCaml

%description rpc-generator-devel
rpc-generator

%package shell
Summary:        OCaml shell interface
Group:          Development/Languages/OCaml

%description shell
Calls external programs, creates pipelines, etc. (simplified interface)

%package shell-devel
Summary:        OCaml shell interface
Group:          Development/Languages/OCaml

%description shell-devel
Calls external programs, creates pipelines, etc. (simplified interface)

%prep
%setup -q -n %{upstreamname}-%{version}
%patch0 -p1
%patch1 -p1

%build
%oasis_setup
ocaml setup.ml \
	-configure \
	-disable-apache \
	-disable-full-pcre \
	-enable-gnutls \
	-enable-gssapi \
	-disable-gtk \
	-disable-gtk2 \
	-enable-nethttpd \
	-enable-pcre \
	-disable-tcl \
	-enable-zip \
	--prefix %{_prefix} \
	--destdir %{buildroot}
%ocaml_oasis_build
%ocaml_oasis_doc

%install
%ocaml_oasis_findlib_install
# install docs manually
mkdir -p %{buildroot}%{_oasis_docdir_html}
cp -av doc/html-main/* %{buildroot}%{_oasis_docdir_html}
#
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
libpkgs="
netgss-system
netstring
netsys
nettls-gnutls
rpc-auth-local
"
for pkg in $libpkgs
do
tee %{buildroot}/etc/ld.so.conf.d/%{name}-${pkg}.conf <<_EOF_
%{_libdir}/ocaml/${pkg}
_EOF_
done
#

%post   -n %{name}-netgss-system  -p /sbin/ldconfig
%postun -n %{name}-netgss-system  -p /sbin/ldconfig
%post   -n %{name}-netstring      -p /sbin/ldconfig
%postun -n %{name}-netstring      -p /sbin/ldconfig
%post   -n %{name}-netsys         -p /sbin/ldconfig
%postun -n %{name}-netsys         -p /sbin/ldconfig
%post   -n %{name}-nettls-gnutls  -p /sbin/ldconfig
%postun -n %{name}-nettls-gnutls  -p /sbin/ldconfig
%post   -n %{name}-rpc-auth-local -p /sbin/ldconfig
%postun -n %{name}-rpc-auth-local -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc ChangeLog INSTALL LICENSE LICENSE.GPL LICENSE.LGPL RELNOTES
%{oasis_docdir_html}

%files equeue
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/equeue

%files equeue-devel
%defattr(-,root,root,-)
%doc src/equeue/*.txt
%dir %{_libdir}/ocaml/equeue
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/equeue/*.a
%{_libdir}/ocaml/equeue/*.cmxa
%{_libdir}/ocaml/equeue/*.cmxs
%endif
%{_libdir}/ocaml/equeue/*.cma
%{_libdir}/ocaml/equeue/*.cmi
%{_libdir}/ocaml/equeue/*.mli
%{_libdir}/ocaml/equeue/META

%files netcamlbox
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netcamlbox

%files netcamlbox-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netcamlbox
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netcamlbox/*.a
%{_libdir}/ocaml/netcamlbox/*.cmxa
%{_libdir}/ocaml/netcamlbox/*.cmxs
%endif
%{_libdir}/ocaml/netcamlbox/*.cma
%{_libdir}/ocaml/netcamlbox/*.cmi
%{_libdir}/ocaml/netcamlbox/*.mli
%{_libdir}/ocaml/netcamlbox/META

%files netcgi2
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netcgi2

%files netcgi2-devel
%defattr(-,root,root,-)
%doc src/netcgi2/*.txt
%dir %{_libdir}/ocaml/netcgi2
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netcgi2/*.a
%{_libdir}/ocaml/netcgi2/*.cmxa
%{_libdir}/ocaml/netcgi2/*.cmxs
%endif
%{_libdir}/ocaml/netcgi2/*.cma
%{_libdir}/ocaml/netcgi2/*.cmi
%{_libdir}/ocaml/netcgi2/*.mli
%{_libdir}/ocaml/netcgi2/META

%files netcgi2-plex-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netcgi2-plex
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netcgi2-plex/*.a
%{_libdir}/ocaml/netcgi2-plex/*.cmxa
%{_libdir}/ocaml/netcgi2-plex/*.cmxs
%endif
%{_libdir}/ocaml/netcgi2-plex/*.cma
%{_libdir}/ocaml/netcgi2-plex/*.cmi
%{_libdir}/ocaml/netcgi2-plex/*.mli
%{_libdir}/ocaml/netcgi2-plex/META

%files netclient
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netclient

%files netclient-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netclient
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netclient/*.a
%{_libdir}/ocaml/netclient/*.cmxa
%{_libdir}/ocaml/netclient/*.cmxs
%endif
%{_libdir}/ocaml/netclient/*.cma
%{_libdir}/ocaml/netclient/*.cmi
%{_libdir}/ocaml/netclient/*.mli
%{_libdir}/ocaml/netclient/META

%files netgss-system
/etc/ld.so.conf.d/%{name}-netgss-system.conf
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/netgss-system
%{_libdir}/ocaml/netgss-system/*.so

%files netgss-system-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netgss-system
%{_libdir}/ocaml/netgss-system/*.a
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netgss-system/*.cmxa
%{_libdir}/ocaml/netgss-system/*.cmxs
%endif
%{_libdir}/ocaml/netgss-system/*.cma
%{_libdir}/ocaml/netgss-system/*.cmi
%{_libdir}/ocaml/netgss-system/*.mli
%{_libdir}/ocaml/netgss-system/META

%files nethttpd-devel
%defattr(-,root,root,-)
%doc src/nethttpd/*.txt
%dir %{_libdir}/ocaml/nethttpd
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/nethttpd/*.a
%{_libdir}/ocaml/nethttpd/*.cmxa
%{_libdir}/ocaml/nethttpd/*.cmxs
%endif
%{_libdir}/ocaml/nethttpd/*.cma
%{_libdir}/ocaml/nethttpd/*.cmi
%{_libdir}/ocaml/nethttpd/*.mli
%{_libdir}/ocaml/nethttpd/META
%{_libdir}/ocaml/nethttpd/LICENSE

%files netmulticore-devel
%defattr(-,root,root,-)
%doc src/netmulticore/*.txt
%dir %{_libdir}/ocaml/netmulticore
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netmulticore/*.a
%{_libdir}/ocaml/netmulticore/*.cmxa
%{_libdir}/ocaml/netmulticore/*.cmxs
%endif
%{_libdir}/ocaml/netmulticore/*.cma
%{_libdir}/ocaml/netmulticore/*.cmi
%{_libdir}/ocaml/netmulticore/*.mli
%{_libdir}/ocaml/netmulticore/META

%files netplex
%defattr(-,root,root,-)
%{_bindir}/netplex-admin

%files netplex-devel
%defattr(-,root,root,-)
%doc src/netplex/*.txt
%dir %{_libdir}/ocaml/netplex
%{_libdir}/ocaml/netplex/netplex-packlist
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netplex/*.a
%{_libdir}/ocaml/netplex/*.cmx
%{_libdir}/ocaml/netplex/*.cmxa
%{_libdir}/ocaml/netplex/*.cmxs
%{_libdir}/ocaml/netplex/*.o
%endif
%{_libdir}/ocaml/netplex/*.cma
%{_libdir}/ocaml/netplex/*.cmi
%{_libdir}/ocaml/netplex/*.cmo
%{_libdir}/ocaml/netplex/*.mli
%{_libdir}/ocaml/netplex/META

%files netshm
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netshm

%files netshm-devel
%defattr(-,root,root,-)
%doc src/netshm/*.txt
%dir %{_libdir}/ocaml/netshm
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netshm/*.a
%{_libdir}/ocaml/netshm/*.cmxa
%{_libdir}/ocaml/netshm/*.cmxs
%endif
%{_libdir}/ocaml/netshm/*.cma
%{_libdir}/ocaml/netshm/*.cmi
%{_libdir}/ocaml/netshm/*.mli
%{_libdir}/ocaml/netshm/META

%files netstring
%defattr(-,root,root,-)
/etc/ld.so.conf.d/%{name}-netstring.conf
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/netstring
%{_libdir}/ocaml/netstring/*.so

%files netstring-devel
%defattr(-,root,root,-)
%doc src/netstring/*.txt
%dir %{_libdir}/ocaml/netstring
%{_libdir}/ocaml/netstring/*.a
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netstring/*.o
%{_libdir}/ocaml/netstring/*.cmx
%{_libdir}/ocaml/netstring/*.cmxa
%{_libdir}/ocaml/netstring/*.cmxs
%endif
%{_libdir}/ocaml/netstring/*.cma
%{_libdir}/ocaml/netstring/*.cmi
%{_libdir}/ocaml/netstring/*.cmo
%{_libdir}/ocaml/netstring/*.mli
%{_libdir}/ocaml/netstring/META

%files netstring-pcre-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netstring-pcre
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netstring-pcre/*.a
%{_libdir}/ocaml/netstring-pcre/*.cmxa
%{_libdir}/ocaml/netstring-pcre/*.cmxs
%endif
%{_libdir}/ocaml/netstring-pcre/*.cma
%{_libdir}/ocaml/netstring-pcre/*.cmi
%{_libdir}/ocaml/netstring-pcre/*.mli
%{_libdir}/ocaml/netstring-pcre/META

%files netsys
%defattr(-,root,root,-)
/etc/ld.so.conf.d/%{name}-netsys.conf
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/netsys
%{_libdir}/ocaml/netsys/*.so

%files netsys-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netsys
%{_libdir}/ocaml/netsys/*.a
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netsys/*.cmx
%{_libdir}/ocaml/netsys/*.cmxa
%{_libdir}/ocaml/netsys/*.cmxs
%endif
%{_libdir}/ocaml/netsys/*.cma
%{_libdir}/ocaml/netsys/*.cmi
%{_libdir}/ocaml/netsys/*.cmo
%{_libdir}/ocaml/netsys/*.h
%{_libdir}/ocaml/netsys/*.mli
%{_libdir}/ocaml/netsys/*.o
%{_libdir}/ocaml/netsys/META

%files nettls-gnutls
%defattr(-,root,root,-)
/etc/ld.so.conf.d/%{name}-nettls-gnutls.conf
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/nettls-gnutls
%{_libdir}/ocaml/nettls-gnutls/*.so

%files nettls-gnutls-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/nettls-gnutls
%{_libdir}/ocaml/nettls-gnutls/*.a
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/nettls-gnutls/*.cmxa
%{_libdir}/ocaml/nettls-gnutls/*.cmxs
%endif
%{_libdir}/ocaml/nettls-gnutls/*.cma
%{_libdir}/ocaml/nettls-gnutls/*.cmi
%{_libdir}/ocaml/nettls-gnutls/*.mli
%{_libdir}/ocaml/nettls-gnutls/META

%files netunidata-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netunidata
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netunidata/*.a
%{_libdir}/ocaml/netunidata/*.cmx
%{_libdir}/ocaml/netunidata/*.cmxa
%{_libdir}/ocaml/netunidata/*.cmxs
%{_libdir}/ocaml/netunidata/*.o
%endif
%{_libdir}/ocaml/netunidata/*.cma
%{_libdir}/ocaml/netunidata/*.cmi
%{_libdir}/ocaml/netunidata/*.cmo
%{_libdir}/ocaml/netunidata/*.mli
%{_libdir}/ocaml/netunidata/*.netdb
%{_libdir}/ocaml/netunidata/META

%files netzip
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netzip

%files netzip-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/netzip
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/netzip/*.a
%{_libdir}/ocaml/netzip/*.cmxa
%{_libdir}/ocaml/netzip/*.cmxs
%endif
%{_libdir}/ocaml/netzip/*.cma
%{_libdir}/ocaml/netzip/*.cmi
%{_libdir}/ocaml/netzip/*.mli
%{_libdir}/ocaml/netzip/META

%files rpc
%defattr(-,root,root,-)
%{_bindir}/ocamlrpcgen

%files rpc-devel
%defattr(-,root,root,-)
%doc src/rpc/*.txt
%dir %{_libdir}/ocaml/rpc
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/rpc/*.a
%{_libdir}/ocaml/rpc/*.cmxa
%{_libdir}/ocaml/rpc/*.cmxs
%endif
%{_libdir}/ocaml/rpc/*.cma
%{_libdir}/ocaml/rpc/*.cmi
%{_libdir}/ocaml/rpc/*.mli
%{_libdir}/ocaml/rpc/META

%files rpc-auth-local
%defattr(-,root,root,-)
/etc/ld.so.conf.d/%{name}-rpc-auth-local.conf
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/rpc-auth-local
%{_libdir}/ocaml/rpc-auth-local/*.so

%files rpc-auth-local-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/rpc-auth-local
%{_libdir}/ocaml/rpc-auth-local/*.a
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/rpc-auth-local/*.cmxa
%{_libdir}/ocaml/rpc-auth-local/*.cmxs
%endif
%{_libdir}/ocaml/rpc-auth-local/*.cma
%{_libdir}/ocaml/rpc-auth-local/*.cmi
%{_libdir}/ocaml/rpc-auth-local/*.mli
%{_libdir}/ocaml/rpc-auth-local/META

%files rpc-generator-devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/rpc-generator
%{_libdir}/ocaml/rpc-generator/rpcgen-packlist
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/rpc-generator/*.a
%{_libdir}/ocaml/rpc-generator/*.cmxa
%{_libdir}/ocaml/rpc-generator/*.cmxs
%endif
%{_libdir}/ocaml/rpc-generator/*.cma
%{_libdir}/ocaml/rpc-generator/*.cmi
%{_libdir}/ocaml/rpc-generator/*.mli
%{_libdir}/ocaml/rpc-generator/META

%files shell
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/shell

%files shell-devel
%defattr(-,root,root,-)
%doc src/shell/*.txt
%dir %{_libdir}/ocaml/shell
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/shell/*.a
%{_libdir}/ocaml/shell/*.cmxa
%{_libdir}/ocaml/shell/*.cmxs
%endif
%{_libdir}/ocaml/shell/*.cma
%{_libdir}/ocaml/shell/*.cmi
%{_libdir}/ocaml/shell/*.mli
%{_libdir}/ocaml/shell/META

%changelog