Compare commits

...

97 Commits
f11 ... rawhide

Author SHA1 Message Date
Richard W.M. Jones be40febedd OCaml 4.12.0 build 2021-03-01 11:02:45 +00:00
Fedora Release Engineering 6861d08bef - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 22:02:14 +00:00
Richard W.M. Jones 152920c078 Build ocamlrpcgen as native code.
Enable stripping.
Enable LTO (RHBZ#1915570).
2021-01-14 12:34:41 +00:00
Richard W.M. Jones 89b9dc8cb6 New upstream version 4.1.8.
Disable LTO (RHBZ#1915570).
2021-01-13 09:11:33 +00:00
Richard W.M. Jones 9e23a46d76 Bump release and rebuild. 2021-01-13 08:50:53 +00:00
Tom Stellard 878563436c Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-07 06:17:00 +00:00
Richard W.M. Jones 3b3bce04b8 OCaml 4.11.1 rebuild 2020-09-01 20:33:13 +01:00
Richard W.M. Jones ed2e790f96 OCaml 4.11.0 rebuild 2020-08-21 12:23:23 +01:00
Fedora Release Engineering 3ee6e2f187 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 12:14:20 +00:00
Richard W.M. Jones e9f1a1dbf6 OCaml 4.11.0+dev2-2020-04-22 rebuild 2020-05-05 00:00:57 +01:00
Richard W.M. Jones 48b24ca011 OCaml 4.11.0 pre-release attempt 2 2020-04-21 19:49:11 +01:00
Richard W.M. Jones 6524045f08 OCaml 4.11.0 pre-release 2020-04-17 21:35:35 +01:00
Richard W.M. Jones 868d2971e0 Update all OCaml dependencies for RPM 4.16. 2020-04-02 23:08:13 +01:00
Richard W.M. Jones 16c8071f34 OCaml 4.10.0 final. 2020-02-26 14:17:15 +00:00
Fedora Release Engineering 447c62c3e7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 19:40:45 +00:00
Richard W.M. Jones 2bbc36054f Fixes for OCaml 4.10. 2020-01-19 16:38:10 +00:00
Richard W.M. Jones 34f8b8dc83 OCaml 4.10.0+beta1 rebuild. 2020-01-19 16:14:23 +00:00
Richard W.M. Jones 8e6f5b1114 Bump and rebuild (RHBZ#1770380). 2019-11-08 20:58:02 +00:00
Richard W.M. Jones fff925c5be Remove camlp4 dependency. 2019-07-27 21:24:16 +01:00
Fedora Release Engineering f9ade6c0f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 22:57:11 +00:00
Fedora Release Engineering b25e786f9c - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 16:54:10 +00:00
Fedora Release Engineering 656e7b1fd7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 14:46:08 +00:00
Richard W.M. Jones 39fbc1b302 OCaml 4.07.0 (final) rebuild. 2018-07-11 14:18:14 +01:00
Richard W.M. Jones e04eae4e2c OCaml 4.07.0-rc1 rebuild. 2018-06-19 22:12:03 +01:00
Richard W.M. Jones d7d4c5f084 New upstream version 4.1.6.
- Remove upstream patch.
2018-05-15 14:32:25 +01:00
Fedora Release Engineering 904d534b7d - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 08:54:39 +00:00
Richard W.M. Jones d4507a597d New upstream version 4.1.5. 2017-12-12 10:46:35 +00:00
Richard W.M. Jones de3a1765bd New upstream version 4.1.4. 2017-11-08 16:26:54 +00:00
Richard W.M. Jones a351710826 Bump release and rebuild. 2017-11-08 16:16:10 +00:00
Richard W.M. Jones 1580d44d94 Bump release and rebuild. 2017-11-08 15:28:27 +00:00
Richard W.M. Jones b9bb0bc279 OCaml 4.06.0 rebuild. 2017-11-07 23:11:11 +00:00
Richard W.M. Jones c07923eec3 New upstream version 4.1.3. 2017-08-07 19:44:42 +01:00
Richard W.M. Jones b48d00420d OCaml 4.05.0 rebuild. 2017-08-07 19:13:44 +01:00
Fedora Release Engineering 9d187e083c - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 04:17:58 +00:00
Fedora Release Engineering 2c820de845 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 01:29:57 +00:00
Richard W.M. Jones 78080ce77e Bump release and rebuild. 2017-06-26 21:39:09 +01:00
Richard W.M. Jones f626b6ad55 OCaml 4.04.2 rebuild. 2017-06-26 18:26:25 +01:00
Richard W.M. Jones af6e67fe82 Bump release and rebuild. 2017-05-12 08:22:49 +01:00
Richard W.M. Jones b5c78b71f6 Bump release and rebuild. 2017-05-11 21:21:20 +01:00
Richard W.M. Jones ffc4ad190a OCaml 4.04.1 rebuild. 2017-05-11 18:48:23 +01:00
Fedora Release Engineering e7c344e556 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 00:33:57 +00:00
Richard W.M. Jones f2bbd6acc4 New upstream version 4.1.2. 2016-11-05 08:52:14 +00:00
Fedora Release Engineering aedeba54ac - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 11:09:00 +00:00
Richard W.M. Jones 0e4ff4f6b2 OCaml 4.02.3 rebuild. 2015-07-28 15:13:36 +01:00
Richard W.M. Jones d8e0a8a7d2 Remove ExcludeArch since bytecode build should now work. 2015-07-27 10:25:54 +01:00
Richard W.M. Jones 0dabc99bf2 New upstream version 4.0.4.
- Remove ugly hack for gnutls, since it is fixed properly upstream.
2015-07-22 15:20:40 +01:00
Richard W.M. Jones 4006fadf03 ocaml-4.02.2 final rebuild. 2015-06-24 16:57:18 +01:00
Richard W.M. Jones a989b0d699 Add a hack to make it compile with latest gnutls 3.4.2. 2015-06-17 15:02:35 +01:00
Richard W.M. Jones f6826aa112 Bump release and rebuild. 2015-06-17 14:35:51 +01:00
Richard W.M. Jones 4e670fc785 ocaml-4.02.2 rebuild. 2015-06-17 14:12:01 +01:00
Richard W.M. Jones 145ee6e0fa Upgrade to 4.0.3, which also fixes gnutls 3.4 compilation problems. 2015-05-15 08:45:20 +01:00
Richard W.M. Jones 1a23a7893e Bump and rebuild again for gnutls/nettle soname change. 2015-05-13 21:15:54 +01:00
Kalev Lember 9fc1faba38 Rebuilt for nettle soname bump 2015-05-04 14:48:54 +02:00
Richard W.M. Jones 46d6fd400c Enable more features, readding features disabled in the previous commit.
- Enable PCRE.
- Enable GnuTLS.
- Enable GSSAPI.
- Re-enable Nethttpd.
- Re-add documentation for Netsmtp and Netpop (modules renamed).
- Enable camlzip.
2015-02-18 11:13:39 +00:00
Richard W.M. Jones 23b2b30a21 New upstream version 4.0.1.
- ocaml-4.02.1 rebuild.
- Disable SSL (removed from upstream, apparently?)
- Remove POP and SMTP (removed from upstream?)
- Add netunidata.
- Remove patches which are no longer needed / upstream.
2015-02-16 17:29:18 +00:00
Richard W.M. Jones 14bb5ef2ab ocaml-4.02.1 rebuild. 2015-02-16 17:13:05 +00:00
Richard W.M. Jones c3a6a1252e Bump and rebuild. 2014-11-03 12:50:11 +00:00
Richard W.M. Jones abe5835673 - Fix for int(32|64) -> int(32|64)_t in latest OCaml upstream. 2014-08-30 18:14:56 +01:00
Richard W.M. Jones 97fdbaef06 ocaml-4.02.0 final rebuild. 2014-08-30 17:35:17 +01:00
Richard W.M. Jones 15bfe91414 Fix for broken configure tests. 2014-08-24 09:43:48 +01:00
Richard W.M. Jones 3147baff1d Bump release and rebuild. 2014-08-23 13:04:24 +01:00
Richard W.M. Jones 66fcba1d3f ocaml-4.02.0+rc1 rebuild. 2014-08-23 13:02:09 +01:00
Peter Robinson c62bf6e74e - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 13:01:08 +00:00
Richard W.M. Jones d26009f978 ocaml-4.02.0-0.8.git10e45753.fc22 rebuild. 2014-08-01 22:41:42 +01:00
Richard W.M. Jones f3a7b1182e Add BR tcl-devel. 2014-07-23 13:01:12 +01:00
Richard W.M. Jones 5f9422d26e New upstream version 3.7.4.
- OCaml 4.02.0 beta rebuild.
- Some spec file modernization.
2014-07-23 12:37:27 +01:00
Dennis Gilmore 4f787e3a63 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 10:44:06 -05:00
Richard W.M. Jones 00fcf59c85 Rebuild for ocaml-lablgtk 2.18. 2013-10-02 14:15:29 +01:00
Richard W.M. Jones 13a990f2ef Disable debuginfo for the same reason. 2013-09-19 17:20:52 +01:00
Richard W.M. Jones 6c2de7cace Unfortunately we have to re-add the anti-stripping code back. See
comment at top of spec file.
2013-09-19 17:17:20 +01:00
Richard W.M. Jones 7cb7e7e47c - Missing BR ncurses-devel. 2013-09-14 11:08:10 +01:00
Richard W.M. Jones 2ce2932a81 New upstream version 3.7.3.
- Rebuild for OCaml 4.01.0.
- Enable debuginfo.
- Do not strip binaries, remove anti-prelink protection.
2013-09-14 09:27:35 +01:00
Dennis Gilmore 063664e449 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 09:58:16 -05:00
Dennis Gilmore 83e836dabf - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 03:01:12 -06:00
Richard W.M. Jones f76c14c6fa Rebuild for OCaml 4.00.1. 2012-12-14 09:56:38 +00:00
Richard W.M. Jones d389d18029 Rebuild for OCaml 4.00.0 official. 2012-07-28 12:30:21 +01:00
Dennis Gilmore 2c4733edb3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-20 01:05:34 -05:00
Richard W.M. Jones f11ed3c2a1 New upstream version 3.5.1.
Rebuild for OCaml 4.00.0.
2012-06-09 15:45:35 +01:00
Richard W.M. Jones c9324bd6ba Bump and rebuild against new OCaml compiler in ARM. 2012-04-28 17:57:09 +01:00
Petr Písař 678eca87df Rebuild against PCRE 8.30 2012-02-10 13:00:32 +01:00
Richard W.M. Jones 6c511248cd - New upstream version 3.4.1.
- Rebuild for OCaml 3.12.1.
2012-01-06 15:38:41 +00:00
Richard W.M. Jones 6001d991d3 - Move to new upstream 3.4 version. Note this is not compatible with
ocamlnet 2.x.
2011-09-19 17:10:23 +01:00
Dennis Gilmore 77f171272f - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 19:59:59 -06:00
Richard W.M. Jones 4a337b52d6 - Rebuild against rpm-4.9.0-0.beta1.6.fc15. See discussion:
http://lists.fedoraproject.org/pipermail/devel/2011-February/148398.html
2011-02-06 10:24:49 +00:00
Richard W.M. Jones db50c118cb Bump and rebuild because of broken deps on ocaml-lablgtk. 2011-02-05 15:08:08 +00:00
Richard W.M. Jones 30b739d2f9 Missing BR ocaml-labltk-devel. 2011-01-05 17:09:33 +00:00
Richard W.M. Jones 317c8d59f6 Bump and rebuild. 2011-01-05 16:57:41 +00:00
Fedora Release Engineering 15a770b0fc dist-git conversion 2010-07-29 04:46:09 +00:00
Richard W.M. Jones 1bf62c830f - {gtk2,openssl,pcre,tcl}-devel BRs have now been pushed down to the
corresponding ocaml-X-devel packages, so we don't need those here any
    more.
2010-01-05 13:44:37 +00:00
Richard W.M. Jones 4006afef5c Add BR gtk2-devel. 2010-01-05 13:32:43 +00:00
Richard W.M. Jones 02b7d13b95 - Use new dependency generator in upstream RPM 4.8.
- Add a temporary patch to diagnose build problem on Koji.
2010-01-05 13:20:35 +00:00
Richard W.M. Jones 19f283e7af Rebuild for OCaml 3.11.2 2009-12-30 13:51:23 +00:00
Bill Nottingham 09ce48a68a Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:56:28 +00:00
Richard W.M. Jones 0cb519a061 Force rebuild against newer lablgtk. 2009-09-29 15:15:02 +00:00
Jesse Keating f03bf6cba7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-25 20:01:04 +00:00
Richard W.M. Jones 45b15ab3b6 Rebuild for OCaml 3.11.1 2009-05-23 11:07:23 +00:00
Karsten Hopp 2b841ed1da - ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
(added sparc64 per request from the sparc maintainer)
2009-04-16 09:06:11 +00:00
8 changed files with 386 additions and 138 deletions

View File

@ -1 +0,0 @@
ocamlnet-2.2.9.tar.gz

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/ocamlnet-*.tar.gz

View File

@ -0,0 +1,45 @@
From 828a873df2b838e46faa5700dbae18601cb8dcb9 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 14 Jan 2021 12:20:03 +0000
Subject: [PATCH] Build ocamlrpcgen as native code.
---
code/src/rpc-generator/Makefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/code/src/rpc-generator/Makefile b/code/src/rpc-generator/Makefile
index e0ed4f5..a475e83 100644
--- a/code/src/rpc-generator/Makefile
+++ b/code/src/rpc-generator/Makefile
@@ -6,9 +6,11 @@ PKGNAME = rpc-generator
ARCHIVE = rpc_generator
OBJECTS = config.cmo syntax.cmo options.cmo parser.cmo lexer.cmo rename.cmo \
generate.cmo direct.cmo
+XOBJECTS = config.cmx syntax.cmx options.cmx parser.cmx lexer.cmx rename.cmx \
+ generate.cmx direct.cmx
DOBJECTS =
-ALL_EXTRA = ocamlrpcgen$(EXEC_SUFFIX) rpcgen-packlist
+OPT_EXTRA = ocamlrpcgen$(EXEC_SUFFIX) rpcgen-packlist
PACKLIST = rpcgen-packlist
@@ -21,12 +23,12 @@ PP_OPTIONS = -pp "$(CPPO) $(PP_BYTES) $(PP_DEPRECATED)"
include $(TOP_DIR)/Makefile.rules
-ocamlrpcgen$(EXEC_SUFFIX): $(ARCHIVE).cma main.cmo
+ocamlrpcgen$(EXEC_SUFFIX): $(ARCHIVE).cmxa main.cmx
rm -f ocamlrpcgen ocamlrpcgen$(EXEC_SUFFIX)
OCAMLPATH="..$(PATH_SEP)$$OCAMLPATH" \
- $(OCAMLC) -custom -o ocamlrpcgen \
+ $(OCAMLOPT) -o ocamlrpcgen \
-package unix,netstring,$(REGEXP_PROVIDER) \
- $(ARCHIVE).cma main.cmo -linkpkg
+ $(ARCHIVE).cmxa main.cmx -linkpkg
rpcgen-packlist:
echo $(BINDIR)/ocamlrpcgen >rpcgen-packlist
--
2.28.0.rc2

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: ocaml-ocamlnet
# $Id$
NAME := ocaml-ocamlnet
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1,37 +1,30 @@
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}
# Prevent RPM from stripping the binaries.
%define __strip /bin/true
Name: ocaml-ocamlnet
Version: 2.2.9
Release: 12%{?dist}
Version: 4.1.8
Release: 4%{?dist}
Summary: Network protocols for OCaml
Group: Development/Libraries
License: BSD
URL: http://projects.camlcity.org/projects/ocamlnet.html
Source0: http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz
Patch0: ocamlnet-ocaml310.patch
Patch1: ocamlnet-ucred.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Build ocamlrpcgen as native code. Sent upstream 2021-01-14.
Patch1: 0001-Build-ocamlrpcgen-as-native-code.patch
BuildRequires: ocaml >= 3.10.2
BuildRequires: make
BuildRequires: ocaml >= 3.12.1-3
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-pcre-devel
BuildRequires: ocaml-ssl-devel
BuildRequires: ocaml-lablgtk-devel
BuildRequires: pcre-devel
BuildRequires: openssl-devel
BuildRequires: ocaml-labltk-devel
BuildRequires: ocaml-pcre-devel
BuildRequires: ocaml-zip-devel
BuildRequires: gnutls-devel
BuildRequires: krb5-devel
BuildRequires: ncurses-devel
BuildRequires: tcl-devel
%define _use_internal_dependency_generator 0
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Outcometree -i Parsetree
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
%global __ocaml_requires_opts -i Asttypes -i Outcometree -i Parsetree
%description
Ocamlnet is an ongoing effort to collect modules, classes and
@ -47,10 +40,7 @@ In detail, the following features are available:
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.
* netcgi2 focuses on portable web applications.
* rpc implements ONCRPC (alias SunRPC), the remote procedure call
technology behind NFS and other Unix services.
@ -70,14 +60,15 @@ In detail, the following features are available:
* netshm provides shared memory for IPC purposes.
* netsys contains bindings for system functions missing in core O'Caml.
* netsys contains bindings for system functions missing in core OCaml.
* smtp and pop are two further client implementations for the SMTP
and POP3 protocols.
* 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/Libraries
Requires: %{name} = %{version}-%{release}
@ -89,7 +80,6 @@ developing applications that use %{name}.
%package nethttpd
Summary: Ocamlnet HTTP daemon
License: GPLv2+
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
@ -102,7 +92,6 @@ for serving web services.
%package nethttpd-devel
Summary: Development files for %{name}-nethttpd
License: GPLv2+
Group: Development/Libraries
Requires: %{name}-nethttpd = %{version}-%{release}
@ -113,85 +102,79 @@ files for developing applications that use %{name}-nethttpd.
%prep
%setup -q -n ocamlnet-%{version}
pushd src/equeue-gtk1
%patch0 -p2
popd
%patch1 -p1
./configure -enable-tcl -with-nethttpd \
-bindir %{_bindir} \
-datadir %{_datadir}/%{name} \
-prefer-netcgi2 \
-with-nethttpd \
-disable-apache \
-enable-ssl \
-enable-gtk2
# In future:
# -with-rpc-auth-dh (requires cryptgps)
%patch1 -p2
%build
# Bletcherous hack to get that extra include path in camlp4 builds.
echo -e '#!/bin/sh\n%{_bindir}/camlp4 -I %{_libdir}/ocaml/camlp4/Camlp4Parsers "$@"' > camlp4; chmod 0755 camlp4; export PATH=`pwd`:$PATH
# Parallel builds don't work:
unset MAKEFLAGS
./configure \
-bindir %{_bindir} \
-datadir %{_datadir}/%{name} \
-disable-apache \
-enable-pcre \
-enable-gtk2 \
-enable-gnutls \
-enable-gssapi \
-enable-nethttpd \
-enable-tcl \
-enable-zip
# This is a hack caused by the ocamlrpcgen patch. Because "make all"
# no longer builds ocamlrpcgen (it is now built by "make opt") but
# some other parts of the build depend on this program, we have to run
# make opt first and ignore the result. Hopefully we'll get a better
# result when upstream integrate the patch. RWMJ 2021-01.
make opt ||:
make all
%if %opt
%ifarch %{ocaml_native_compiler}
make opt
%endif
%install
rm -rf $RPM_BUILD_ROOT
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
mkdir -p $OCAMLFIND_DESTDIR/stublibs
make install
# cgi/META conflicts with mod_caml
rm $RPM_BUILD_ROOT%{_libdir}/ocaml/cgi/META
rmdir $RPM_BUILD_ROOT%{_libdir}/ocaml/cgi
# 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
# Strip libraries.
strip $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.so
# NB. Do NOT strip the binaries and prevent prelink from stripping them too.
# (https://bugzilla.redhat.com/show_bug.cgi?id=435559)
# 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
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc ChangeLog RELNOTES
%{_libdir}/ocaml/equeue
%{_libdir}/ocaml/equeue-gtk2
%{_libdir}/ocaml/equeue-ssl
%{_libdir}/ocaml/equeue-tcl
%{_libdir}/ocaml/netcgi1
%{_libdir}/ocaml/netcamlbox
%{_libdir}/ocaml/netcgi2
%{_libdir}/ocaml/netcgi2-plex
%{_libdir}/ocaml/netclient
%{_libdir}/ocaml/netgss-system
%{_libdir}/ocaml/netmulticore
%{_libdir}/ocaml/netplex
%{_libdir}/ocaml/netshm
%{_libdir}/ocaml/netstring
%{_libdir}/ocaml/netstring-pcre
%{_libdir}/ocaml/netsys
%{_libdir}/ocaml/pop
%{_libdir}/ocaml/nettls-gnutls
%{_libdir}/ocaml/netunidata
%{_libdir}/ocaml/netzip
%{_libdir}/ocaml/rpc
%{_libdir}/ocaml/rpc-auth-local
%{_libdir}/ocaml/rpc-generator
%{_libdir}/ocaml/rpc-ssl
%{_libdir}/ocaml/shell
%{_libdir}/ocaml/smtp
%if %opt
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.cmx
@ -207,9 +190,8 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
%doc ChangeLog RELNOTES
%if %opt
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmx
@ -219,12 +201,9 @@ rm -rf $RPM_BUILD_ROOT
%files nethttpd
%defattr(-,root,root,-)
%doc ChangeLog RELNOTES
%{_libdir}/ocaml/nethttpd-for-netcgi1
%{_libdir}/ocaml/nethttpd-for-netcgi2
%{_libdir}/ocaml/nethttpd
%if %opt
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%endif
@ -232,9 +211,8 @@ rm -rf $RPM_BUILD_ROOT
%files nethttpd-devel
%defattr(-,root,root,-)
%doc ChangeLog RELNOTES
%if %opt
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%endif
@ -242,6 +220,287 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Mar 1 11:02:44 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 4.1.8-4
- OCaml 4.12.0 build
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Jan 14 2021 Richard W.M. Jones <rjones@redhat.com> - 4.1.8-2
- Build ocamlrpcgen as native code.
- Enable stripping.
- Enable LTO (RHBZ#1915570).
* Wed Jan 13 2021 Richard W.M. Jones <rjones@redhat.com> - 4.1.8-1
- New upstream version 4.1.8.
- Disable LTO (RHBZ#1915570).
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-18
- OCaml 4.11.1 rebuild
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-17
- OCaml 4.11.0 rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.6-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-15
- OCaml 4.11.0+dev2-2020-04-22 rebuild
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-14
- OCaml 4.11.0 pre-release attempt 2
* Fri Apr 17 2020 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-13
- OCaml 4.11.0 pre-release
* Thu Apr 02 2020 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-12
- Update all OCaml dependencies for RPM 4.16.
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-11
- OCaml 4.10.0 final.
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.6-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-9
- OCaml 4.10.0+beta1 rebuild.
* Fri Nov 08 2019 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-8
- Bump and rebuild (RHBZ#1770380).
* Sat Jul 27 2019 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-7
- Remove camlp4 dependency.
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-3
- OCaml 4.07.0 (final) rebuild.
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-2
- OCaml 4.07.0-rc1 rebuild.
* Tue May 15 2018 Richard W.M. Jones <rjones@redhat.com> - 4.1.6-1
- New upstream version 4.1.6.
- Remove upstream patch.
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Dec 12 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.5-1
- New upstream version 4.1.5.
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.4-1
- New upstream version 4.1.4.
* Tue Nov 07 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.3-2
- OCaml 4.06.0 rebuild.
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.3-1
- New upstream version 4.1.3.
- OCaml 4.05.0 rebuild.
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.2-7
- Bump release and rebuild.
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.2-6
- OCaml 4.04.2 rebuild.
* Fri May 12 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.2-5
- Bump release and rebuild.
* Thu May 11 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.2-4
- Bump release and rebuild.
* Thu May 11 2017 Richard W.M. Jones <rjones@redhat.com> - 4.1.2-3
- OCaml 4.04.1 rebuild.
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sat Nov 05 2016 Richard W.M. Jones <rjones@redhat.com> - 4.1.2-1
- New upstream version 4.1.2.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.4-3
- OCaml 4.02.3 rebuild.
* Mon Jul 27 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.4-2
- Remove ExcludeArch since bytecode build should now work.
* Wed Jul 22 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.4-1
- New upstream version 4.0.4.
- Remove ugly hack for gnutls, since it is fixed properly upstream.
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.3-4
- ocaml-4.02.2 final rebuild.
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.3-3
- Bump release and rebuild.
- Add a hack to make it compile with latest gnutls 3.4.2.
* Wed Jun 17 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.3-2
- ocaml-4.02.2 rebuild.
* Fri May 15 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.3-1
- Upgrade to 4.0.3, which also fixes gnutls 3.4 compilation problems.
* Wed May 13 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-4
- Bump and rebuild again for gnutls/nettle soname change.
* Mon May 04 2015 Kalev Lember <kalevlember@gmail.com> - 4.0.1-3
- Rebuilt for nettle soname bump
* Wed Feb 18 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-2
- Enable more features, readding features disabled in the previous commit.
- Enable PCRE.
- Enable GnuTLS.
- Enable GSSAPI.
- Re-enable Nethttpd.
- Re-add documentation for Netsmtp and Netpop (modules renamed).
- Enable camlzip.
* Mon Feb 16 2015 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-1
- New upstream version 4.0.1.
- ocaml-4.02.1 rebuild.
- Disable SSL (removed from upstream, apparently?)
- Remove POP and SMTP (removed from upstream?)
- Add netunidata.
- Remove patches which are no longer needed / upstream.
* Mon Nov 03 2014 Richard W.M. Jones <rjones@redhat.com> - 3.7.4-10
- Bump and rebuild.
* Sat Aug 30 2014 Richard W.M. Jones <rjones@redhat.com> - 3.7.4-9
- ocaml-4.02.0 final rebuild.
- Fix for int(32|64) -> int(32|64)_t in latest OCaml upstream.
* Sun Aug 24 2014 Richard W.M. Jones <rjones@redhat.com> - 3.7.4-7
- Fix for broken configure tests.
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 3.7.4-6
- Bump release and rebuild.
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 3.7.4-5
- ocaml-4.02.0+rc1 rebuild.
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Aug 01 2014 Richard W.M. Jones <rjones@redhat.com> - 3.7.4-3
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
* Wed Jul 23 2014 Richard W.M. Jones <rjones@redhat.com> - 3.7.4-2
- New upstream version 3.7.4.
- OCaml 4.02.0 beta rebuild.
- Some spec file modernization.
- Add BR tcl-devel.
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Oct 02 2013 Richard W.M. Jones <rjones@redhat.com> - 3.7.3-4
- Rebuild for ocaml-lablgtk 2.18.
* Thu Sep 19 2013 Richard W.M. Jones <rjones@redhat.com> - 3.7.3-3
- Unfortunately we have to re-add the anti-stripping code back. See
comment at top of spec file.
- Disable debuginfo for the same reason.
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 3.7.3-1
- New upstream version 3.7.3.
- Rebuild for OCaml 4.01.0.
- Enable debuginfo.
- Do not strip binaries, remove anti-prelink protection.
- Missing BR ncurses-devel.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Dec 14 2012 Richard W.M. Jones <rjones@redhat.com> - 3.5.1-4
- Rebuild for OCaml 4.00.1.
* Sat Jul 28 2012 Richard W.M. Jones <rjones@redhat.com> - 3.5.1-3
- Rebuild for OCaml 4.00.0 official.
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jun 09 2012 Richard W.M. Jones <rjones@redhat.com> - 3.5.1-1
- New upstream version 3.5.1.
- Rebuild for OCaml 4.00.0, plus small patch.
- Move configure into build (not prep).
* Sat Apr 28 2012 Richard W.M. Jones <rjones@redhat.com> - 3.4.1-3
- Bump and rebuild against new OCaml compiler in ARM.
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 3.4.1-2
- Rebuild against PCRE 8.30
* Fri Jan 6 2012 Richard W.M. Jones <rjones@redhat.com> - 3.4.1-1
- New upstream version 3.4.1.
- Rebuild for OCaml 3.12.1.
* Mon Sep 19 2011 Richard W.M. Jones <rjones@redhat.com> - 3.4-1
- Move to new upstream 3.4 version. Note this is not compatible with
ocamlnet 2.x.
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.9-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sun Feb 6 2011 Richard W.M. Jones <rjones@redhat.com> - 2.2.9-23
- Rebuild against rpm-4.9.0-0.beta1.6.fc15. See discussion:
http://lists.fedoraproject.org/pipermail/devel/2011-February/148398.html
* Sat Feb 5 2011 Richard W.M. Jones <rjones@redhat.com> - 2.2.9-22
- Bump and rebuild because of broken deps on ocaml-lablgtk.
* Wed Jan 05 2011 Richard W.M. Jones <rjones@redhat.com> - 2.2.9-21
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
- Missing BR ocaml-labltk-devel.
* Tue Jan 5 2010 Richard W.M. Jones <rjones@redhat.com> - 2.2.9-19
- {gtk2,openssl,pcre,tcl}-devel BRs have now been pushed down to the
corresponding ocaml-X-devel packages, so we don't need those here
any more.
* Tue Jan 5 2010 Richard W.M. Jones <rjones@redhat.com> - 2.2.9-18
- Use new dependency generator in upstream RPM 4.8.
- Add BR gtk2-devel.
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 2.2.9-16
- Rebuild for OCaml 3.11.2.
* Tue Sep 29 2009 Richard W.M. Jones <rjones@redhat.com> - 2.2.9-15
- Force rebuild against newer lablgtk.
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.9-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.2.9-13
- Rebuild for OCaml 3.11.1
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
(added sparc64 per request from the sparc maintainer)
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.9-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

View File

@ -1,23 +0,0 @@
--- src/equeue-gtk2/uq_gtk.ml.orig 2007-06-11 19:35:10.000000000 +0100
+++ src/equeue-gtk2/uq_gtk.ml 2007-06-11 20:07:54.000000000 +0100
@@ -3,6 +3,11 @@
open Equeue
open Unixqueue
+(* Ugly hack required to compile under OCaml 3.10. This unmarshals
+ * `IN. IN is a reserved word for Camlp4.Macro.
+ *)
+let __in = (Marshal.from_string "\132\149\166\190\000\000\000\003\000\000\000\000\000\000\000\000\000\000\000\000\001?\229" 0 : GMain.Io.condition)
+
IFDEF GTK1 THEN
type event_id = GMain.Io.event_source
ELSE
@@ -147,7 +152,7 @@
gtk_event_source_hup = None; } in
( match g.gtk_event_source_in with
None when i ->
- g.gtk_event_source_in <- Some(mk_handler `IN [fd] [] []);
+ g.gtk_event_source_in <- Some(mk_handler __in [fd] [] []);
| Some s when not i ->
dest_handler s;
g.gtk_event_source_in <- None

View File

@ -1,12 +0,0 @@
diff -ur ocamlnet-2.2.9/src/rpc-auth-local/rpclocal.c ocamlnet-2.2.9.new/src/rpc-auth-local/rpclocal.c
--- ocamlnet-2.2.9/src/rpc-auth-local/rpclocal.c 2007-11-01 22:12:33.000000000 +0000
+++ ocamlnet-2.2.9.new/src/rpc-auth-local/rpclocal.c 2008-02-12 21:01:21.000000000 +0000
@@ -3,6 +3,8 @@
*
*/
+#define _GNU_SOURCE /* for SO_PEERCRED / struct ucred */
+
#include "caml/mlvalues.h"
#include "caml/alloc.h"
#include "caml/memory.h"

View File

@ -1 +1 @@
3655e3be3bb2806e0a1f48bb7ce16fb3 ocamlnet-2.2.9.tar.gz
SHA512 (ocamlnet-4.1.8.tar.gz) = e238235968b9546c60568a38e68e354378d30e7137973332dcb10da21fa775ab7b367889fc51f5bd7cb00e51582834cafe2a0c4706b0bc77a44d4571a6f22815