[packages/tesseract] - fix man pages generation - rel 2

baggins baggins at pld-linux.org
Thu Aug 16 22:50:16 CEST 2018


commit 70a20ce4e56c26c50270191eefd49a913dafb335
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Aug 16 22:49:47 2018 +0200

    - fix man pages generation
    - rel 2

 a2x.patch      | 11 +++++++++++
 tesseract.spec |  5 ++++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/tesseract.spec b/tesseract.spec
index d1ae0d7..75a7329 100644
--- a/tesseract.spec
+++ b/tesseract.spec
@@ -5,17 +5,19 @@
 %bcond_without	openmp	# OpenMP support
 %bcond_with	opencl	# OpenCL support
 #
+%define	rel	2
 Summary:	Tesseract Open Source OCR Engine
 Summary(pl.UTF-8):	Tesseract - silnik OCR o otwartych źródłach
 %define	_beta	beta.4
 Name:		tesseract
 Version:	4.0.0
-Release:	0.%{_beta}.1
+Release:	0.%{_beta}.%{rel}
 License:	Apache v2.0
 Group:		Applications/Graphics
 #Source0Download: https://github.com/tesseract-ocr/tesseract/releases
 Source0:	https://github.com/tesseract-ocr/tesseract/archive/%{version}-%{_beta}/%{name}-%{version}-%{_beta}.tar.gz
 # Source0-md5:	9984be13fd64872fb236a60475f5fec6
+Patch0:		a2x.patch
 URL:		https://github.com/tesseract-ocr/
 %{?with_opencl:BuildRequires:	OpenCL-devel}
 BuildRequires:	autoconf >= 2.59
@@ -83,6 +85,7 @@ Statyczne biblioteki Tesseracta.
 
 %prep
 %setup -q -n %{name}-%{version}-%{_beta}
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/a2x.patch b/a2x.patch
new file mode 100644
index 0000000..ef29d6f
--- /dev/null
+++ b/a2x.patch
@@ -0,0 +1,11 @@
+--- tesseract-4.0.0-beta.4/doc/Makefile.am.orig	2018-07-27 08:10:37.000000000 +0200
++++ tesseract-4.0.0-beta.4/doc/Makefile.am	2018-08-16 22:16:29.237559153 +0200
+@@ -32,7 +32,7 @@
+ EXTRA_DIST = $(man_MANS) Doxyfile
+ 
+ %: %.asc
+-	$(asciidoc) -o $@ $<
++	a2x -d manpage -f manpage --asciidoc-opts="-f /etc/asciidoc/asciidoc.conf" $<
+ 
+ MAINTAINERCLEANFILES = $(man_MANS) Doxyfile
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tesseract.git/commitdiff/70a20ce4e56c26c50270191eefd49a913dafb335



More information about the pld-cvs-commit mailing list