Name: ocaml-ocamlnet Version: 4.1.9 Release: %mkrel 4 Summary: Network protocols for OCaml License: BSD Group: Development/OCaml URL: http://projects.camlcity.org/projects/ocamlnet.html Source: http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz BuildRequires: ocaml-compiler BuildRequires: ocaml-compiler-libs BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-pcre-devel BuildRequires: ocaml-camlzip-devel BuildRequires: gnutls-devel BuildRequires: krb5-devel BuildRequires: pkgconfig(libpcre) BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(tcl) %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. * netcgi1 and netcgi2 focus on portable web applications. netcgi1 is the older, backward-compatible version, whereas netcgi2 bases on a revised design, and is only partly backward-compatible. Supported are CGI, FastCGI, AJP (mod_jk), and SCGI. * 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 O'Caml. * 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} Group: Development/OCaml Requires: %{name} = %{version}-%{release} Requires: ocaml-pcre-devel Requires: pkgconfig(tcl) %description devel This package contains the development files needed to build applications using %{name}. %package gtk2 Summary: GTK2 development libraries for %{name} Group: Development/OCaml Requires: %{name} = %{version}-%{release} BuildRequires: ocaml-lablgtk2-devel Requires: ocaml-lablgtk2 %description gtk2 GTK2 development libraries for %{name}. %package gtk2-devel Summary: GTK2 development libraries for %{name} Group: Development/OCaml Requires: %{name}-gtk2 = %{version}-%{release} Requires: ocaml-lablgtk2-devel %description gtk2-devel This package contains the development files needed to build applications using %{name}-gtk2. %package doc Summary: Documentation for %{name} Group: Documentation BuildArch: noarch %description doc This package contains the HTML API documentation for %{name}. %package nethttpd Summary: Ocamlnet HTTP daemon License: GPLv2+ Group: Development/OCaml Requires: %{name} = %{version}-%{release} %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+ Group: Development/OCaml Requires: %{name}-nethttpd = %{version}-%{release} %description nethttpd-devel The %{name}-nethttpd-devel package contains libraries and signature files for developing applications that use %{name}-nethttpd. %prep %setup -q -n ocamlnet-%{version} %build %define ocamlnet_datadir %{_datadir}/%{name} # not an autoconf one ./configure \ -enable-tcl \ -equeue-tcl-libs -ltcl \ -bindir %{_bindir} \ -datadir %{ocamlnet_datadir} \ -disable-apache \ -enable-pcre \ -enable-gtk2 \ -enable-gnutls \ -enable-gssapi \ -enable-nethttpd \ -enable-tcl \ -enable-zip make all make opt %install install -d -m 755 %{buildroot}/%{_libdir}/ocaml install -d -m 755 %{buildroot}/%{_libdir}/ocaml/stublibs make install \ OCAMLFIND_INSTFLAGS="-destdir %{buildroot}/%{_libdir}/ocaml" \ OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml \ DESTDIR="%{buildroot}" # rpc-generator/dummy.mli is empty and according to Gerd Stolpmann can # be deleted safely. This avoids an rpmlint warning. rm -f %{buildroot}%{_libdir}/ocaml/rpc-generator/dummy.mli # Strip libraries. strip %{buildroot}%{_libdir}/ocaml/stublibs/*.so mv ChangeLog ChangeLog.old iconv -f iso-8859-1 -t utf-8 < ChangeLog.old > ChangeLog %files %doc ChangeLog LICENSE LICENSE.GPL LICENSE.LGPL RELNOTES %{_bindir}/* %{_libdir}/ocaml/equeue %exclude %{_libdir}/ocaml/equeue-gtk2 %{_libdir}/ocaml/equeue-tcl %{_libdir}/ocaml/netcamlbox %{_libdir}/ocaml/netcgi2 %{_libdir}/ocaml/netcgi2-plex %{_libdir}/ocaml/netclient %{_libdir}/ocaml/netgss-system %exclude %{_libdir}/ocaml/nethttpd %{_libdir}/ocaml/netmulticore %{_libdir}/ocaml/netplex %{_libdir}/ocaml/netshm %{_libdir}/ocaml/netstring %{_libdir}/ocaml/netstring-pcre %{_libdir}/ocaml/netsys %{_libdir}/ocaml/nettls-gnutls %{_libdir}/ocaml/netunidata %{_libdir}/ocaml/netzip %{_libdir}/ocaml/rpc %{_libdir}/ocaml/rpc-auth-local %{_libdir}/ocaml/rpc-generator %{_libdir}/ocaml/shell %{_libdir}/ocaml/stublibs/*.so* # Adjustment for -custom compilation %exclude %{_libdir}/ocaml/*/*.a %exclude %{_libdir}/ocaml/*/*.cmxa %exclude %{_libdir}/ocaml/*/*.cmx %exclude %{_libdir}/ocaml/*/*.o %exclude %{_libdir}/ocaml/*/*.mli %{ocamlnet_datadir} %files devel %{_libdir}/ocaml/*/*.cmxa %{_libdir}/ocaml/*/*.cmx %{_libdir}/ocaml/*/*.mli %{_libdir}/ocaml/*/*.a %{_libdir}/ocaml/netsys/netsys_oothr_mt_init.o %exclude %{_libdir}/ocaml/nethttpd %exclude %{_libdir}/ocaml/equeue-gtk2 %files gtk2 %{_libdir}/ocaml/equeue-gtk2/META %{_libdir}/ocaml/equeue-gtk2/*.cmi %{_libdir}/ocaml/equeue-gtk2/*.cma %files gtk2-devel %{_libdir}/ocaml/equeue-gtk2/*.cmxa %{_libdir}/ocaml/equeue-gtk2/*.mli %{_libdir}/ocaml/equeue-gtk2/*.a %files doc %doc doc/html-main/ %doc examples/ %files nethttpd %{_libdir}/ocaml/nethttpd %exclude %{_libdir}/ocaml/*/*.a %exclude %{_libdir}/ocaml/*/*.cmxa %exclude %{_libdir}/ocaml/*/*.mli %files nethttpd-devel %{_libdir}/ocaml/nethttpd/nethttpd*.a %{_libdir}/ocaml/nethttpd/nethttpd*.cmxa %{_libdir}/ocaml/nethttpd/nethttpd*.mli %changelog * Sun Oct 23 2022 pterjan <pterjan> 4.1.9-4.mga9 + Revision: 1898667 - Rebuild again for new ocaml-pcre, it was submitted a few minutes too early * Fri Oct 21 2022 pterjan <pterjan> 4.1.9-3.mga9 + Revision: 1898271 - Rebuild for new ocaml-pcre and ocaml-lablgtk2 * Thu May 19 2022 pterjan <pterjan> 4.1.9-2.mga9 + Revision: 1859012 - Rebuild for OCaml 4.14 * Mon May 16 2022 pterjan <pterjan> 4.1.9-1.mga9 + Revision: 1858376 - Update to 4.1.9 * Wed Apr 06 2022 umeabot <umeabot> 4.1.8-5.mga9 + Revision: 1845913 - Mageia 9 Mass Rebuild * Wed Oct 13 2021 tv <tv> 4.1.8-4.mga9 + Revision: 1750920 - Rebuild for ocaml 4.13.1 * Fri Mar 05 2021 tv <tv> 4.1.8-3.mga9 + Revision: 1698813 - rebuild for new ocamlzip * Wed Mar 03 2021 tv <tv> 4.1.8-2.mga9 + Revision: 1697381 - rebuild for ocaml-4.2-12 + guillomovitch <guillomovitch> - new version 4.1.8 * Sun Nov 29 2020 luigiwalser <luigiwalser> 4.1.6-11.mga8 + Revision: 1650433 - rebuild for nettle * Fri Feb 28 2020 umeabot <umeabot> 4.1.6-10.mga8 + Revision: 1551459 - Rebuild for ocaml 4.10.0 final * Wed Feb 19 2020 umeabot <umeabot> 4.1.6-9.mga8 + Revision: 1544389 - Mageia 8 Mass Rebuild * Sun Jan 26 2020 tv <tv> 4.1.6-8.mga8 + Revision: 1482995 - rebuild for ocaml-4.10 * Tue Oct 01 2019 daviddavid <daviddavid> 4.1.6-7.mga8 + Revision: 1448572 - rebuild for new nettle 3.5.1 * Wed Oct 24 2018 pterjan <pterjan> 4.1.6-6.mga7 + Revision: 1325036 - Rebuild for ocaml 4.07.1 + tv <tv> - rebuild with ocaml-4.07.1 * Sun Sep 23 2018 umeabot <umeabot> 4.1.6-3.mga7 + Revision: 1299907 - Mageia 7 Mass Rebuild * Mon Jul 30 2018 joequant <joequant> 4.1.6-2.mga7 + Revision: 1245923 - rebuild with new compiler * Tue Jun 12 2018 daviddavid <daviddavid> 4.1.6-1.mga7 + Revision: 1236493 - new version: 4.1.6 - remove merged upstream patch * Tue Dec 05 2017 tv <tv> 4.1.4-2.mga7 + Revision: 1181368 - don't require ocaml-cryptgps-devel as we build w/o it * Sun Nov 26 2017 tv <tv> 4.1.4-1.mga7 + Revision: 1179957 - reenable debuginfo - new release - rebuild for new ocaml * Fri Oct 06 2017 daviddavid <daviddavid> 3.7.7-4.mga7 + Revision: 1169359 - disable debug package - disable ssl support not yet compatible with openssl 1.1.0 * Thu Nov 24 2016 neoclust <neoclust> 3.7.7-3.mga6 + Revision: 1069805 - Rebuild against fixed ocaml * Mon Sep 26 2016 pterjan <pterjan> 3.7.7-2.mga6 + Revision: 1056427 - Rebuild for fix in ocaml * Tue Feb 16 2016 pterjan <pterjan> 3.7.7-1.mga6 + Revision: 961826 - Fix BuildRequires - Update to 3.7.7 + umeabot <umeabot> - Mageia 6 Mass Rebuild * Mon Oct 05 2015 daviddavid <daviddavid> 3.7.5-4.mga6 + Revision: 886377 - rebuild for new tcl 8.6.4 * Wed Oct 15 2014 umeabot <umeabot> 3.7.5-3.mga5 + Revision: 744426 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 3.7.5-2.mga5 + Revision: 683076 - Mageia 5 Mass Rebuild * Tue Sep 09 2014 malo <malo> 3.7.5-1.mga5 + Revision: 674009 - update to 3.7.5 * Sat Oct 19 2013 umeabot <umeabot> 3.7.3-3.mga4 + Revision: 533981 - Mageia 4 Mass Rebuild * Sun Sep 08 2013 blue_prawn <blue_prawn> 3.7.3-2.mga4 + Revision: 475946 - rebuild for ocaml-4.01.0 * Sat Aug 31 2013 blue_prawn <blue_prawn> 3.7.3-1.mga4 + Revision: 473720 - updated to last version 3.7.3 * Wed Jul 31 2013 blue_prawn <blue_prawn> 3.6.6-1.mga4 + Revision: 461515 - updated to last version 3.6.6 * Sun Apr 07 2013 malo <malo> 3.6.1-4.mga3 + Revision: 408899 - fix requires * Sun Jan 13 2013 umeabot <umeabot> 3.6.1-3.mga3 + Revision: 361519 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Dec 01 2012 fwang <fwang> 3.6.1-2.mga3 + Revision: 323826 - rebuild for new pcre * Tue Nov 20 2012 blue_prawn <blue_prawn> 3.6.1-1.mga3 + Revision: 319796 - update to last version 3.6.1 + malo <malo> - convert ChangeLog to utf8 * Fri Oct 19 2012 malo <malo> 3.6-4.mga3 + Revision: 308056 - rebuild for ocaml-4.0.1 - add pcre compilation option - fix file list * Tue Oct 02 2012 blue_prawn <blue_prawn> 3.6-3.mga3 + Revision: 302157 - build requires ocaml-compiler-libs - rebuild for new ocaml 4.00 - new rpm group for documentation * Sat Sep 29 2012 blue_prawn <blue_prawn> 3.6-2.mga3 + Revision: 300395 - new rpm group for ocaml * Sun Aug 26 2012 blue_prawn <blue_prawn> 3.6-1.mga3 + Revision: 284365 - corrected group for documentation - forgot mgarepo sync - updated to last version 3.6 - make 2 new splits to remove dependencies on gtk and ssl from the main package - make a new split for the docs - also provide the examples/ * Wed Feb 29 2012 blue_prawn <blue_prawn> 3.5.1-1.mga2 + Revision: 216217 - updated to new version 3.5.1 * Tue Dec 13 2011 malo <malo> 3.4.1-1.mga2 + Revision: 181071 - new version 3.4.1 - missing requires - spec clean-up * Fri Oct 07 2011 shlomif <shlomif> 3.4-2.mga2 + Revision: 152808 - Add missing BuildRequires. Patch by Malo. - New version 3.4 - patch by Malo. * Sat Jul 02 2011 fwang <fwang> 3.3.3-1.mga2 + Revision: 117452 - new version 3.3.3 - do not know why gtk22 is required - rebuild for new tcl * Sat Apr 30 2011 pterjan <pterjan> 2.2.9-9.mga1 + Revision: 93946 - Bump release higher than Mandriva * Fri Apr 08 2011 ennael <ennael> 2.2.9-8.mga1 + Revision: 82390 - clean spec file - imported package ocaml-ocamlnet