e937eaba0a
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
93 lines
2.6 KiB
RPMSpec
93 lines
2.6 KiB
RPMSpec
%global packname tesseract
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
# Examples and vignettes use the network.
|
|
%bcond_with network
|
|
|
|
Name: R-%{packname}
|
|
Version: 4.1
|
|
Release: 3%{?dist}
|
|
Summary: Open Source OCR Engine
|
|
|
|
License: ASL 2.0
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
|
# 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
|
|
# Suggests: R-magick >= 1.7, R-spelling, R-knitr, R-tibble, R-rmarkdown
|
|
# LinkingTo:
|
|
# Enhances:
|
|
|
|
BuildRequires: R-devel
|
|
BuildRequires: tex(latex)
|
|
BuildRequires: R-Rcpp-devel >= 0.12.12
|
|
BuildRequires: R-pdftools >= 1.5
|
|
BuildRequires: R-curl
|
|
BuildRequires: R-rappdirs
|
|
BuildRequires: R-digest
|
|
BuildRequires: R-magick >= 1.7
|
|
BuildRequires: R-spelling
|
|
BuildRequires: R-knitr
|
|
BuildRequires: R-tibble
|
|
BuildRequires: R-rmarkdown
|
|
BuildRequires: pkgconfig(tesseract)
|
|
|
|
%description
|
|
Bindings to 'Tesseract' <https://opensource.google.com/projects/tesseract>:
|
|
a powerful optical character recognition (OCR) engine that supports over
|
|
100 languages. The engine is highly configurable in order to tune the
|
|
detection algorithms and obtain the best possible results.
|
|
|
|
|
|
%prep
|
|
%setup -q -c -n %{packname}
|
|
|
|
|
|
%build
|
|
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{rlibdir}
|
|
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
|
|
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
|
|
rm -f %{buildroot}%{rlibdir}/R.css
|
|
|
|
|
|
%check
|
|
%if %{with network}
|
|
%{_bindir}/R CMD check %{packname}
|
|
%else
|
|
%{_bindir}/R CMD check %{packname} --no-examples --no-vignettes
|
|
%endif
|
|
|
|
|
|
%files
|
|
%dir %{rlibdir}/%{packname}
|
|
%doc %{rlibdir}/%{packname}/doc
|
|
%doc %{rlibdir}/%{packname}/html
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
%doc %{rlibdir}/%{packname}/NEWS
|
|
%doc %{rlibdir}/%{packname}/AUTHORS
|
|
%license %{rlibdir}/%{packname}/COPYRIGHT
|
|
%{rlibdir}/%{packname}/INDEX
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
%{rlibdir}/%{packname}/Meta
|
|
%{rlibdir}/%{packname}/R
|
|
%{rlibdir}/%{packname}/help
|
|
%dir %{rlibdir}/%{packname}/libs
|
|
%{rlibdir}/%{packname}/libs/%{packname}.so
|
|
%{rlibdir}/%{packname}/WORDLIST
|
|
|
|
|
|
%changelog
|
|
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Thu Aug 06 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.1-2
|
|
- Use correct R-Rcpp-devel BuildRequires
|
|
|
|
* Mon Aug 03 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 4.1-1
|
|
- initial package for Fedora
|