## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_with bootstrap %global packname pdftools %global packver 3.3.3 %global rlibdir %{_libdir}/R/library Name: R-%{packname} Version: %{packver} Release: %autorelease Summary: Text Extraction, Rendering and Converting of PDF Documents License: MIT URL: https://CRAN.R-project.org/package=%{packname} Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz # Here's the R view of the dependencies world: # Depends: # Imports: R-Rcpp >= 0.12.12, R-qpdf # Suggests: R-png, R-webp, R-tesseract, R-testthat # LinkingTo: # Enhances: BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: R-Rcpp-devel >= 0.12.12 BuildRequires: R-qpdf %if %{without bootstrap} BuildRequires: R-png BuildRequires: R-webp BuildRequires: R-tesseract BuildRequires: R-testthat %endif BuildRequires: poppler-cpp-devel BuildRequires: poppler-data %description Utilities based on 'libpoppler' for extracting text, fonts, attachments and metadata from a PDF file. Also supports high quality rendering of PDF documents into PNG, JPEG, TIFF format, or into raw bitmap vectors for further processing in R. %prep %setup -q -c -n %{packname} cd %{packname} %autopatch -p1 %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 %{without bootstrap} %{_bindir}/R CMD check %{packname} %endif %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/DESCRIPTION %license %{rlibdir}/%{packname}/LICENSE %doc %{rlibdir}/%{packname}/NEWS %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %dir %{rlibdir}/%{packname}/libs %{rlibdir}/%{packname}/libs/%{packname}.so %changelog ## START: Generated by rpmautospec * Thu Aug 22 2024 Marek Kasik - 3.3.3-9 - Disable bootstrap * Thu Aug 22 2024 Marek Kasik - 3.3.3-8 - Rebuild for poppler 24.08.0 * Wed Jul 17 2024 Fedora Release Engineering - 3.3.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Apr 25 2024 Iñaki Úcar - 3.3.3-6 - R-maint-sig mass rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.3.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 3.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 3.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Apr 21 2023 Iñaki Úcar - 3.3.3-2 - R-maint-sig mass rebuild * Wed Feb 8 2023 Tom Callaway - 3.3.3-1 - update to 3.3.3 * Thu Aug 25 2022 Tom Callaway - 3.3.0-1 - update to 3.3.0 - rebuild for R 4.2.1 - bootstrap on * Wed Jan 19 2022 Fedora Release Engineering - 3.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 3.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jun 14 2021 Tom Callaway - 3.0.1-1 - update to 3.0.1 - bootstrap - Rebuilt for R 4.1.0 * Mon Jan 25 2021 Fedora Release Engineering - 2.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Aug 09 2020 Elliott Sales de Andrade - 2.3.1-4 - Re-enable full checks * Sat Aug 01 2020 Fedora Release Engineering - 2.3.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jun 6 2020 Tom Callaway - 2.2-6 - update to 2.3.1 - rebuild for R 4 * Tue Jan 28 2020 Fedora Release Engineering - 2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jan 17 2020 Marek Kasik - 2.2-4 - Rebuild for poppler-0.84.0 * Sun Aug 11 2019 Elliott Sales de Andrade - 2.2-3 - Remove explicit dependencies provided by automatic dependency generator * Wed Jul 24 2019 Fedora Release Engineering - 2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Mar 12 2019 Elliott Sales de Andrade - 2.2-1 - Update to latest version * Sat Feb 16 2019 Elliott Sales de Andrade - 2.1-1 - Update to latest version * Thu Jan 31 2019 Fedora Release Engineering - 1.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed May 30 2018 Elliott Sales de Andrade - 1.8-1 - Update to latest version * Thu May 17 2018 Tom Callaway - 1.7-1 - update to 1.7 * Thu Apr 26 2018 Elliott Sales de Andrade - 1.6-1 - Update to latest version * Mon Mar 19 2018 Elliott Sales de Andrade - 1.5-2 - Add missing Rcpp Requires * Sat Mar 17 2018 Elliott Sales de Andrade - 1.5-1 - initial package for Fedora ## END: Generated by rpmautospec