%global packname rsvg %global packver 2.4.0 %global rlibdir %{_libdir}/R/library %bcond_with bootstrap Name: R-%{packname} Version: %{packver} Release: 6%{?dist} Summary: Render SVG Images into PDF, PNG, PostScript, or Bitmap Arrays 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: # Suggests: R-spelling, R-svglite, R-magick, R-webp, R-ggplot2, R-knitr, R-rmarkdown # LinkingTo: # Enhances: BuildRequires: R-devel BuildRequires: tex(latex) %if %{without bootstrap} BuildRequires: R-spelling BuildRequires: R-svglite BuildRequires: R-magick BuildRequires: R-webp BuildRequires: R-ggplot2 BuildRequires: R-knitr BuildRequires: R-rmarkdown %endif BuildRequires: librsvg2-devel %description Renders vector-based svg images into high-quality custom-size bitmap arrays using 'librsvg2'. The resulting bitmap can be written to e.g. png, jpeg or webp format. In addition, the package can convert images directly to various formats such as pdf or postscript. %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 %{without bootstrap} %{_bindir}/R CMD check %{packname} --ignore-vignettes --no-examples %endif %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/doc %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/DESCRIPTION %doc %{rlibdir}/%{packname}/NEWS %license %{rlibdir}/%{packname}/LICENSE %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/WORDLIST %dir %{rlibdir}/%{packname}/libs %{rlibdir}/%{packname}/libs/%{packname}.so %changelog * Wed Jul 17 2024 Fedora Release Engineering - 2.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Apr 25 2024 Iñaki Úcar - 2.4.0-5 - R-maint-sig mass rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Apr 21 2023 Iñaki Úcar - 2.4.0-1 - R-maint-sig mass rebuild - Update to latest version * Wed Jan 18 2023 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Sep 1 2022 Tom Callaway - 2.3.1-1 - update to 2.3.1 - rebuild for R 4.2.1 - bootstrap on * Wed Jul 20 2022 Fedora Release Engineering - 2.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 2.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 2.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 17 2021 Tom Callaway - 2.1.2-2 - bootstrap off * Mon Jun 14 2021 Tom Callaway - 2.1.2-1 - update to 2.1.2 - Rebuilt for R 4.1.0 * Sun Apr 25 2021 Elliott Sales de Andrade - 2.1.1-1 - Update to latest version (#1951996) * Mon Jan 25 2021 Fedora Release Engineering - 2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Aug 09 2020 Elliott Sales de Andrade - 2.1-4 - Enable full checks again * Sat Aug 01 2020 Fedora Release Engineering - 2.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 5 2020 Tom Callaway - 2.1-5 - update to 2.1 - conditionalize check around suggests (magick is not in Fedora) - rebuild for R 4 * Tue Jan 28 2020 Fedora Release Engineering - 1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Aug 11 2019 Elliott Sales de Andrade - 1.3-3 - Remove explicit dependencies provided by automatic dependency generator * Wed Jul 24 2019 Fedora Release Engineering - 1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 23 2019 Elliott Sales de Andrade - 1.3-1 - initial package for Fedora