Package ocaml-ocamlnet: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | Name: ocaml-ocamlnet Version: 4.1.9 Release: alt3 Summary: Network protocols for OCaml License: BSD Group: Development/ML Url: https://projects.camlcity.org/projects/ocamlnet.html VCS: https://gitlab.com/gerdstolpmann/lib-ocamlnet3.git Source0:%name-%version.tar BuildPreReq: /dev/shm BuildRequires: ocaml >= 4.04 BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-labltk-devel BuildRequires: ocaml-pcre-devel BuildRequires: ocaml-zip-devel BuildRequires: libgnutls-devel libnettle-devel BuildRequires: libkrb5-devel BuildRequires: libncurses-devel BuildRequires: tcl-devel BuildRequires(pre): rpm-build-ocaml >= 1.6.1 %global __ocaml_requires_opts -i Asttypes -i Outcometree -i Parsetree %description Ocamlnet is an ongoing effort to collect modules, classes and functions that are useful to implement network protocols. Since version 2.2, Ocamlnet incorporates the Equeue, RPC, and Netclient libraries, so it now really a big player. In detail, the following features are available: * netstring is about processing strings that occur in network context. Features: MIME encoding/decoding, Date/time parsing, Character encoding conversion, HTML parsing and printing, URL parsing and printing, OO-representation of channels, and a lot more. * netcgi2 focuses on portable web applications. * rpc implements ONCRPC (alias SunRPC), the remote procedure call technology behind NFS and other Unix services. * netplex is a generic server framework. It can be used to build stand-alone server programs from individual components like those from netcgi2, nethttpd, and rpc. * netclient implements clients for HTTP (version 1.1, of course), FTP (currently partially), and Telnet. * equeue is an event queue used for many protocol implementations. It makes it possible to run several clients and/or servers in parallel without having to use multi-threading or multi-processing. * shell is about calling external commands like a Unix shell does. * netshm provides shared memory for IPC purposes. * netsys contains bindings for system functions missing in core OCaml. * netsmtp and netpop are client implementations of the SMTP and POP3 protocols. * Bindings for GnuTLS and GSSAPI (TLS/HTTPS support). %package devel Summary: Development files for %name Requires: %name = %version-%release Group: Development/ML %description devel The %name-devel package contains libraries and signature files for developing applications that use %name. %package nethttpd Summary: Ocamlnet HTTP daemon License: GPLv2+ Requires: %name = %version-%release Group: Development/ML %description nethttpd Nethttpd is a web server component (HTTP server implementation). It can be used for web applications without using an extra web server, or for serving web services. %package nethttpd-devel Summary: Development files for %name-nethttpd License: GPLv2+ Requires: %name-nethttpd = %version-%release Group: Development/ML %description nethttpd-devel The %name-nethttpd-devel package contains libraries and signature files for developing applications that use %name-nethttpd. %prep %setup %build ./configure \ -bindir %_bindir \ -datadir %_datadir/%name \ -disable-apache \ -enable-pcre \ -disable-gtk2 \ -enable-gnutls \ -enable-gssapi \ -enable-nethttpd \ -enable-tcl \ -enable-zip make all %ifarch %ocaml_native_arch make opt %endif %install export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%_libdir/ocaml mkdir -p $OCAMLFIND_DESTDIR mkdir -p $OCAMLFIND_DESTDIR/stublibs make install # rpc-generator/dummy.mli is empty and according to Gerd Stolpmann can # be deleted safely. This avoids an rpmlint warning. rm -f $RPM_BUILD_ROOT%_libdir/ocaml/rpc-generator/dummy.mli # NB. Do NOT strip the binaries and prevent prelink from stripping them too. # See comment at top of spec file. mkdir -p $RPM_BUILD_ROOT/etc/prelink.conf.d echo -e '-b /usr/bin/netplex-admin\n-b /usr/bin/ocamlrpcgen' \ > $RPM_BUILD_ROOT/etc/prelink.conf.d/ocaml-ocamlnet.conf %ocaml_find_files %files -f ocaml-files.runtime %doc ChangeLog RELNOTES %_datadir/%name/ %_bindir/netplex-admin %_bindir/ocamlrpcgen %config(noreplace) /etc/prelink.conf.d/ocaml-ocamlnet.conf %exclude %_libdir/ocaml/nethttpd %files devel -f ocaml-files.devel %doc ChangeLog RELNOTES %exclude %_libdir/ocaml/nethttpd %files nethttpd %doc ChangeLog RELNOTES %_libdir/ocaml/nethttpd/* %ifarch %ocaml_native_arch %exclude %_libdir/ocaml/nethttpd/*.a %exclude %_libdir/ocaml/nethttpd/*.cmxa %endif %exclude %_libdir/ocaml/nethttpd/*.mli %files nethttpd-devel %doc ChangeLog RELNOTES %ifarch %ocaml_native_arch %_libdir/ocaml/nethttpd/*.a %_libdir/ocaml/nethttpd/*.cmxa %endif %_libdir/ocaml/nethttpd/*.mli %changelog * Fri Nov 24 2023 Anton Farygin <rider@altlinux.ru> 4.1.9-alt3 - fixed build with bytecode-only ocaml * Wed Nov 03 2021 Anton Farygin <rider@altlinux.ru> 4.1.9-alt2 - disabled gtk2 support * Tue Apr 13 2021 Anton Farygin <rider@altlinux.org> 4.1.9-alt1 - 4.1.9 * Tue Sep 08 2020 Anton Farygin <rider@altlinux.ru> 4.1.8-alt1 - 4.1.8 * Wed Feb 26 2020 Anton Farygin <rider@altlinux.ru> 4.1.7-alt1 - 4.1.7 * Fri Aug 02 2019 Anton Farygin <rider@altlinux.ru> 4.1.6-alt4 - rebuilt with ocaml-4.08 * Thu Oct 18 2018 Anton Farygin <rider@altlinux.ru> 4.1.6-alt3 - rebuilt with ocaml-4.07.1 * Wed Sep 05 2018 Anton Farygin <rider@altlinux.ru> 4.1.6-alt2 - rebuilt with ocaml 4.07 * Sat May 19 2018 Anton Farygin <rider@altlinux.ru> 4.1.6-alt1 - 4.1.6 * Tue Jul 11 2017 Anton Farygin <rider@altlinux.ru> 4.1.2-alt3 - rebuild with ocaml 4.04.2 * Wed May 03 2017 Anton Farygin <rider@altlinux.ru> 4.1.2-alt2 - rebuild with ocaml 4.04.1 * Wed Apr 19 2017 Anton Farygin <rider@altlinux.ru> 4.1.2-alt1 - first build for ALT, based on RH spec |