R-magick/R-magick.spec

120 lines
3.7 KiB
RPMSpec
Raw Normal View History

2020-08-08 16:22:42 +00:00
%global packname magick
2020-11-15 05:37:54 +00:00
%global packver 2.5.2
2020-08-08 16:22:42 +00:00
%global rlibdir %{_libdir}/R/library
2020-08-09 06:43:04 +00:00
%bcond_with bootstrap
%global __suggests_exclude ^R\\((gifski)\\)
2020-08-08 16:22:42 +00:00
# Examples and vignettes require the network.
%bcond_with network
Name: R-%{packname}
2020-11-15 05:37:54 +00:00
Version: 2.5.2
Release: 2%{?dist}
2020-08-08 16:22:42 +00:00
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
# Uses ffmpeg, so won't ever be in Fedora.
# 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
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-11-15 05:37:54 +00:00
* Sun Nov 15 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-1
- Update to latest version (#1896455)
2020-11-06 10:55:57 +00:00
* Fri Nov 06 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.1-1
- Update to latest version (#1895190)
2020-10-16 10:14:37 +00:00
* Fri Oct 16 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.0-1
- Update to latest version (#1888918)
2020-08-08 16:22:42 +00:00
* Mon Aug 03 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.0-1
- initial package for Fedora