2018-06-05 22:13:42 +00:00
|
|
|
%global packname showtext
|
|
|
|
%global packvers 0.5-1
|
|
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
|
|
|
|
# knitr suggests this package and vice versa.
|
|
|
|
%global with_doc 1
|
|
|
|
|
|
|
|
Name: R-%{packname}
|
|
|
|
Version: 0.5.1
|
2018-07-12 19:41:09 +00:00
|
|
|
Release: 3%{?dist}
|
2018-06-05 22:13:42 +00:00
|
|
|
Summary: Using Fonts More Easily in R Graphs
|
|
|
|
|
2018-06-05 22:23:51 +00:00
|
|
|
# Main: ASL 2.0
|
|
|
|
# src/tidy.h, src/utf8.c and src/utf8.h: libpng/zlib
|
|
|
|
License: ASL 2.0 and zlib
|
2019-01-23 00:55:28 +00:00
|
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
2018-06-05 22:13:42 +00:00
|
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packvers}.tar.gz
|
|
|
|
|
|
|
|
# Here's the R view of the dependencies world:
|
|
|
|
# Depends: R-sysfonts >= 0.7.1, R-showtextdb >= 2.0
|
|
|
|
# Imports: R-grDevices
|
|
|
|
# Suggests: R-knitr, R-rmarkdown, R-prettydoc, R-curl, R-jsonlite
|
|
|
|
# LinkingTo:
|
|
|
|
# Enhances:
|
|
|
|
|
|
|
|
Requires: R-sysfonts >= 0.7.1
|
|
|
|
Requires: R-showtextdb >= 2.0
|
|
|
|
Requires: R-grDevices
|
|
|
|
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 %{with_doc}
|
|
|
|
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}
|
|
|
|
|
2018-06-05 22:23:51 +00:00
|
|
|
# Fix line endings.
|
|
|
|
for file in %{packname}/inst/doc/introduction.R %{packname}/inst/doc/introduction.Rmd; do
|
|
|
|
sed "s|\r||g" ${file} > ${file}.new
|
|
|
|
touch -r ${file} ${file}.new
|
|
|
|
mv ${file}.new ${file}
|
|
|
|
done
|
|
|
|
|
2018-06-05 22:13:42 +00:00
|
|
|
|
|
|
|
%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_doc}
|
|
|
|
%{_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
|
2018-06-05 22:23:51 +00:00
|
|
|
%license %{rlibdir}/%{packname}/COPYRIGHTS
|
2018-06-05 22:13:42 +00:00
|
|
|
%{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
|
2018-07-12 19:41:09 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-08 22:26:51 +00:00
|
|
|
* Fri Jun 08 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.5.1-2
|
|
|
|
- Rebuild for R 3.5.0
|
2018-06-05 22:23:51 +00:00
|
|
|
- Fix license tagging
|
|
|
|
- Fix file line endings
|
|
|
|
|
2018-06-05 22:13:42 +00:00
|
|
|
* Thu May 31 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.5.1-1
|
|
|
|
- initial package for Fedora
|