%global packname showtext %global packver 0.9-2 %global rlibdir %{_libdir}/R/library # R-knitr dep loop %bcond_without bootstrap Name: R-%{packname} Version: 0.9.2 Release: 1 Summary: Using Fonts More Easily in R Graphs License: ASL 2.0 and zlib URL: https://CRAN.R-project.org/package=%{packname} Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(zlib) BuildRequires: R-sysfonts >= 0.7.1 BuildRequires: R-showtextdb >= 2.0 BuildRequires: R-grDevices BuildRequires: R-curl BuildRequires: R-jsonlite %if %{without bootstrap} BuildRequires: R-knitr BuildRequires: R-rmarkdown BuildRequires: R-prettydoc %endif %description Making it easy to use various types of fonts (TrueType, OpenType, Type 1, web fonts, etc.) in R graphs, and supporting most output formats of R graphics including PNG, PDF and SVG. Text glyphs will be converted into polygons or raster images, hence after the plot has been created, it no longer relies on the font files. No external software such as Ghostscript is needed to use this package. %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} %else _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes %endif %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/doc %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/DESCRIPTION %doc %{rlibdir}/%{packname}/NEWS.Rd %doc %{rlibdir}/%{packname}/AUTHORS %license %{rlibdir}/%{packname}/COPYRIGHTS %{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 * Fri Jun 24 2022 misaka00251 - 0.9.2-1 - Init package (Thanks to fedora team)