[packages/ocaml] - added info patch (unify info dir entry)

qboosh qboosh at pld-linux.org
Sat Aug 28 13:50:26 CEST 2021


commit 019c10ee296fac995c63fb6744e402a5965204da
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Aug 28 13:54:42 2021 +0200

    - added info patch (unify info dir entry)

 ocaml-info.patch | 11 +++++++++++
 ocaml.spec       |  6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/ocaml.spec b/ocaml.spec
index f6b8865..11048c9 100644
--- a/ocaml.spec
+++ b/ocaml.spec
@@ -30,6 +30,7 @@ Source4:	https://github.com/mmottl/pure-fun/archive/v1.0.13/pure-fun-1.0.13.tar.
 Source5:	http://www.ocaml.info/ocaml_sources/ds-contrib.tar.gz
 # Source5-md5:	77fa1da7375dea1393cc0b6cd802d7e1
 Patch0:		%{name}-10266.patch
+Patch1:		%{name}-info.patch
 URL:		https://www.ocaml.org/
 Requires:	%{name}-runtime = %{epoch}:%{version}-%{release}
 Provides:	ocaml-bytes-devel
@@ -166,6 +167,8 @@ Okasaki'ego, napisane w OCamlu, wraz z dodatkami.
 %prep
 %setup -q -a1 -a3
 %patch0 -p1
+gunzip infoman/ocaml.info.gz
+%patch1 -p1
 
 mkdir examples
 tar xzf %{SOURCE4} -C examples
@@ -219,7 +222,8 @@ ln -sf %{_libdir}/%{name}/{scrape,add}labels $RPM_BUILD_ROOT%{_bindir}
 %{__rm} -r $RPM_BUILD_ROOT%{_mandir}/man3
 
 # install info pages
-cp -p infoman/ocaml.info{,.body-*}.gz $RPM_BUILD_ROOT%{_infodir}
+cp -p infoman/ocaml.info $RPM_BUILD_ROOT%{_infodir}
+cp -p infoman/ocaml.info.body-*.gz $RPM_BUILD_ROOT%{_infodir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
diff --git a/ocaml-info.patch b/ocaml-info.patch
new file mode 100644
index 0000000..ad869b2
--- /dev/null
+++ b/ocaml-info.patch
@@ -0,0 +1,11 @@
+--- ocaml-4.12.0/infoman/ocaml.info.orig	2021-08-28 12:25:48.769734956 +0200
++++ ocaml-4.12.0/infoman/ocaml.info	2021-08-28 12:26:25.549535702 +0200
+@@ -1,6 +1,6 @@
+-INFO-DIR-SECTION OCaml Programming Language 
++INFO-DIR-SECTION Programming Languages:
+ START-INFO-DIR-ENTRY
+-* ocaml: (ocaml). OCaml Reference Manual
++* ocaml: (ocaml).			OCaml Reference Manual
+ END-INFO-DIR-ENTRY
+ This file has been translated from LaTeX by HeVeA.
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml.git/commitdiff/019c10ee296fac995c63fb6744e402a5965204da



More information about the pld-cvs-commit mailing list