diff --git a/R-tesseract.spec b/R-tesseract.spec index c5e3535..9fc77d1 100644 --- a/R-tesseract.spec +++ b/R-tesseract.spec @@ -14,6 +14,9 @@ License: ASL 2.0 URL: https://CRAN.R-project.org/package=%{packname} Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz +# Fix leptonica include +Patch0: R-tesseract_include.patch + # Here's the R view of the dependencies world: # Depends: # Imports: R-Rcpp >= 0.12.12, R-pdftools >= 1.5, R-curl, R-rappdirs, R-digest diff --git a/R-tesseract_include.patch b/R-tesseract_include.patch new file mode 100644 index 0000000..e71d5fe --- /dev/null +++ b/R-tesseract_include.patch @@ -0,0 +1,7 @@ +diff -rupN --no-dereference a/tesseract/tools/test.cpp b/tesseract/tools/test.cpp +--- a/tesseract/tools/test.cpp 2020-03-30 00:30:33.000000000 +0200 ++++ b/tesseract/tools/test.cpp 2021-12-11 22:49:04.133669737 +0100 +@@ -1,2 +1,2 @@ + #include +-#include ++#include