From e4ce403f6b517b57b029b011536889311c6b61c8 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones"
Date: Thu, 26 Apr 2018 14:26:34 +0100
Subject: [PATCH] Update to findlib 1.8.0.
- Remove upstream patches.
---
.gitignore | 1 +
findlib-1.4-add-debug.patch | 11 -----
...reinstallation-of-num-for-ocaml-4.06.patch | 47 -------------------
ocaml-findlib.spec | 16 +++----
sources | 2 +-
5 files changed, 8 insertions(+), 69 deletions(-)
delete mode 100644 findlib-1.4-add-debug.patch
delete mode 100644 findlib-fix-reinstallation-of-num-for-ocaml-4.06.patch
diff --git a/.gitignore b/.gitignore
index 4867aed..c900bf2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ findlib-1.2.5.tar.gz
/findlib-1.6.3.tar.gz
/findlib-1.7.1.tar.gz
/findlib-1.7.3.tar.gz
+/findlib-1.8.0.tar.gz
diff --git a/findlib-1.4-add-debug.patch b/findlib-1.4-add-debug.patch
deleted file mode 100644
index 8734d78..0000000
--- a/findlib-1.4-add-debug.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./findlib-1.4/src/findlib/Makefile.old 2013-09-13 22:13:25.322978268 +0100
-+++ ./findlib-1.4/src/findlib/Makefile 2013-09-13 22:13:38.289999908 +0100
-@@ -14,7 +14,7 @@
-
- # Need compiler-libs since ocaml-4.00
- OCAMLC = ocamlc -I +compiler-libs
--OCAMLOPT = ocamlopt -I +compiler-libs
-+OCAMLOPT = ocamlopt -I +compiler-libs -g
- OCAMLDEP = ocamldep
- OCAMLLEX = ocamllex
- #CAMLP4O = camlp4 pa_o.cmo pa_op.cmo pr_o.cmo --
diff --git a/findlib-fix-reinstallation-of-num-for-ocaml-4.06.patch b/findlib-fix-reinstallation-of-num-for-ocaml-4.06.patch
deleted file mode 100644
index 5bbe66e..0000000
--- a/findlib-fix-reinstallation-of-num-for-ocaml-4.06.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-diff --git a/configure b/configure
-index 6a4a558..3f99074 100755
---- a/configure
-+++ b/configure
-@@ -514,7 +514,10 @@ fi
-
- # dbm?
-
--if [ -f "${ocaml_core_stdlib}/dbm.cmi" ]; then
-+if [ -f "${ocaml_sitelib}/dbm/META" ]; then
-+ echo "dbm: package already present"
-+ ldbm=""
-+elif [ -f "${ocaml_core_stdlib}/dbm.cmi" ]; then
- echo "dbm: found"
- ldbm="dbm"
- else
-@@ -524,8 +527,12 @@ fi
-
- # num?
-
--if [ -f "${ocaml_core_stdlib}/num.cmi" ]; then
-- echo "num: found"
-+if [ -f "${ocaml_sitelib}/num/META" ]; then
-+ echo "num: package already present"
-+ lnum=""
-+ numtop=""
-+elif [ -f "${ocaml_core_stdlib}/num.cmi" ]; then
-+ echo "num: found but not as package"
- lnum="num num-top"
- numtop="num-top"
- else
-diff --git a/doc/README.xml b/doc/README.xml
-index 248483e..0b2b3b5 100644
---- a/doc/README.xml
-+++ b/doc/README.xml
-@@ -110,6 +110,11 @@ configuration files, and library routines in detail.
-
-
- -
-+
git version: Fix reinstallation of "num" for OCaml-4.06.
-+
-+
-+
-+ -
-
1.7.3: Fix regarding num-top: this library is now also
- optional, as num.
-
diff --git a/ocaml-findlib.spec b/ocaml-findlib.spec
index 0e45384..a1fb842 100644
--- a/ocaml-findlib.spec
+++ b/ocaml-findlib.spec
@@ -1,18 +1,12 @@
Name: ocaml-findlib
-Version: 1.7.3
-Release: 10%{?dist}
+Version: 1.8.0
+Release: 1%{?dist}
Summary: Objective CAML package manager and build helper
License: BSD
URL: http://projects.camlcity.org/projects/findlib.html
Source0: http://download.camlcity.org/download/findlib-%{version}.tar.gz
-# Use ocamlopt -g patch to include debug information.
-Patch1: findlib-1.4-add-debug.patch
-
-# Upstream patch to fix detection of "num" package.
-Patch2: findlib-fix-reinstallation-of-num-for-ocaml-4.06.patch
-
BuildRequires: ocaml >= 4.02.0
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-labltk-devel
@@ -43,8 +37,6 @@ developing applications that use %{name}.
%prep
%setup -q -n findlib-%{version}
-%patch1 -p2
-%patch2 -p1
%build
@@ -107,6 +99,10 @@ make install \
%changelog
+* Thu Apr 26 2018 Richard W.M. Jones - 1.8.0-1
+- Update to findlib 1.8.0.
+- Remove upstream patches.
+
* Thu Feb 08 2018 Fedora Release Engineering - 1.7.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index 0875d49..daffd68 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (findlib-1.7.3.tar.gz) = 5fc8250c123e2f019406be487134523f964668d615b51b216551d74f6ec1999de43aa7babc9c2c75ebb87293b4b8c640548d562a98a6e5a6d7f663432869c886
+SHA512 (findlib-1.8.0.tar.gz) = a6dbfd172bff20ebf05db8a0a952a9f0dc67f9420b89771dbfc6193a7a2e5fe448c9d3bdcc113591175906644299529ef937652cfb2c17f67ec2c4dbb1d71e48