From: Jan Rękorajski Date: Thu, 16 Aug 2018 20:49:47 +0000 (+0200) Subject: - fix man pages generation X-Git-Tag: auto/th/tesseract-4.0.0-0.beta.4.2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Ftesseract.git;a=commitdiff_plain;h=70a20ce4e56c26c50270191eefd49a913dafb335 - fix man pages generation - rel 2 --- 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 + 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}