Initial import (#1585024).
This commit is contained in:
parent
3e0bb0ca2a
commit
a6b3e5c8ff
|
@ -0,0 +1 @@
|
|||
/sysfonts_0.7.2.tar.gz
|
|
@ -0,0 +1,88 @@
|
|||
%global packname sysfonts
|
||||
%global rlibdir %{_libdir}/R/library
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 0.7.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Loading Fonts into R
|
||||
|
||||
License: GPLv2
|
||||
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
||||
|
||||
# Here's the R view of the dependencies world:
|
||||
# Depends:
|
||||
# Imports:
|
||||
# Suggests: R-curl, R-jsonlite
|
||||
# LinkingTo:
|
||||
# Enhances:
|
||||
|
||||
Requires: liberation-mono-fonts
|
||||
Requires: liberation-sans-fonts
|
||||
Requires: liberation-serif-fonts
|
||||
Suggests: R-curl
|
||||
Suggests: R-jsonlite
|
||||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
BuildRequires: liberation-mono-fonts
|
||||
BuildRequires: liberation-sans-fonts
|
||||
BuildRequires: liberation-serif-fonts
|
||||
BuildRequires: R-curl
|
||||
BuildRequires: R-jsonlite
|
||||
|
||||
%description
|
||||
Loading system fonts and Google Fonts <https://fonts.google.com/> into R,
|
||||
in order to support other packages such as 'R2SWF' and 'showtext'.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -c -n %{packname}
|
||||
|
||||
# Unbundle fonts
|
||||
pushd %{packname}/inst/fonts
|
||||
rm AUTHORS License.txt
|
||||
for family in Mono Sans Serif; do
|
||||
for style in Regular Bold Italic BoldItalic; do
|
||||
rm Liberation${family}-${style}.ttf
|
||||
ln -s /usr/share/fonts/liberation/Liberation${family}-${style}.ttf
|
||||
done
|
||||
done
|
||||
popd
|
||||
|
||||
%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
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
|
||||
|
||||
%files
|
||||
%dir %{rlibdir}/%{packname}
|
||||
%doc %{rlibdir}/%{packname}/html
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%doc %{rlibdir}/%{packname}/AUTHORS
|
||||
%doc %{rlibdir}/%{packname}/COPYRIGHTS
|
||||
%doc %{rlibdir}/%{packname}/NEWS.Rd
|
||||
%{rlibdir}/%{packname}/INDEX
|
||||
%{rlibdir}/%{packname}/NAMESPACE
|
||||
%{rlibdir}/%{packname}/Meta
|
||||
%{rlibdir}/%{packname}/R
|
||||
%{rlibdir}/%{packname}/help
|
||||
%{rlibdir}/%{packname}/fonts
|
||||
%dir %{rlibdir}/%{packname}/libs
|
||||
%{rlibdir}/%{packname}/libs/%{packname}.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu May 31 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7.2-1
|
||||
- initial package for Fedora
|
Loading…
Reference in New Issue