## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; 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 %global packname magick %global packver 2.7.4 %global rlibdir %{_libdir}/R/library %bcond_with bootstrap %global __suggests_exclude ^R\\((av|gifski)\\) # Examples and vignettes require the network. %bcond_with network Name: R-%{packname} Version: %{packver} Release: %autorelease Summary: Advanced Graphics and Image-Processing in R 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-magrittr, R-curl # Suggests: R-av >= 0.3, R-spelling, R-jsonlite, R-methods, R-knitr, R-rmarkdown, R-rsvg, R-webp, R-pdftools, R-ggplot2, R-gapminder, R-IRdisplay, R-tesseract >= 2.0, R-gifski # LinkingTo: # Enhances: BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: R-Rcpp-devel >= 0.12.12 BuildRequires: R-magrittr BuildRequires: R-curl BuildRequires: R-spelling BuildRequires: R-jsonlite BuildRequires: R-methods BuildRequires: R-knitr BuildRequires: R-rmarkdown BuildRequires: R-rsvg BuildRequires: R-webp BuildRequires: R-ggplot2 BuildRequires: R-gapminder BuildRequires: R-IRdisplay %if %{without bootstrap} BuildRequires: R-pdftools BuildRequires: R-tesseract >= 2.0 %endif BuildRequires: pkgconfig(Magick++) # Uses rust, so unlikely to package it soon. # BuildRequires: R-gifski # Not in Fedora yet. # BuildRequires: R-av >= 0.3 %description Bindings to 'ImageMagick': the most comprehensive open-source image processing library available. Supports many common formats (png, jpeg, tiff, pdf, etc) and manipulations (rotate, scale, crop, trim, flip, blur, etc). All operations are vectorized via the Magick++ STL meaning they operate either on a single frame or a series of frames for working with layers, collages, or animation. In RStudio images are automatically previewed when printed to the console, resulting in an interactive editing environment. The latest version of the package includes a native graphics device for creating in-memory graphics or drawing onto images using pixel coordinates. %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} _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} %else _R_CHECK_FORCE_SUGGESTS_=0 %{_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 %license %{rlibdir}/%{packname}/LICENSE %{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 %{rlibdir}/%{packname}/images %changelog ## START: Generated by rpmautospec * Wed Jul 17 2024 Fedora Release Engineering - 2.7.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Apr 25 2024 Iñaki Úcar - 2.7.4-6 - R-maint-sig mass rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.7.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.7.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 2.7.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Apr 21 2023 Iñaki Úcar - 2.7.4-2 - R-maint-sig mass rebuild * Wed Mar 15 2023 Tom Callaway - 2.7.4-1 - 2.7.4 * Wed Jan 18 2023 Fedora Release Engineering - 2.7.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jan 05 2023 Neal Gompa - 2.7.3-6 - Rebuild for ImageMagick 7 * Fri Sep 2 2022 Tom Callaway - 2.7.3-5 - rebuild for R 4.2.1 * Wed Jul 21 2021 Fedora Release Engineering - 2.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 17 2021 Tom Callaway - 2.7.2-2 - bootstrap off * Wed Jun 16 2021 Tom Callaway - 2.7.2-1 - update to 2.7.2 - bootstrap - Rebuilt for R 4.1.0 * Sun Mar 21 2021 Elliott Sales de Andrade - 2.7.1-1 - Update to latest version (#1941244) * Wed Mar 10 2021 Elliott Sales de Andrade - 2.7.0-1 - Update to latest version (#1936981) * Sun Feb 07 2021 Elliott Sales de Andrade - 2.6.0-1 - Update to latest version (#1915985) * Mon Jan 25 2021 Fedora Release Engineering - 2.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Nov 15 2020 Elliott Sales de Andrade - 2.5.2-1 - Update to latest version (#1896455) * Fri Nov 06 2020 Elliott Sales de Andrade - 2.5.1-1 - Update to latest version (#1895190) * Fri Oct 16 2020 Elliott Sales de Andrade - 2.5.0-1 - Update to latest version (#1888918) * Mon Aug 03 2020 Elliott Sales de Andrade - 2.4.0-1 - initial package for Fedora ## END: Generated by rpmautospec