File R-JuliaCall.spec of Package R-JuliaCall
%global packname JuliaCall
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.11.1
Release: 0
Summary: Seamless Integration Between R and 'Julia'
Group: Development/Libraries/Other
License: MIT
URL: http://cran.r-project.org/web/packages/%{packname}
Source: http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: R-base
# Package suggestions
#Recommends: R-testthat R-knitr R-rmarkdown
BuildRequires: texlive
BuildRequires: texinfo
BuildRequires: fdupes
%if 0%{?suse_version} <= 1220 && 0%{?suse_version} != 1110
BuildRequires: texlive-fonts-extra
%endif
BuildRequires: R-base-devel R-inline R-R6
# Package suggestions, not required to build, but for packaging checks
# attention: circular dependencies R-knitr
#BuildRequires: R-testthat R-knitr R-rmarkdown
%description
Provides an R interface to 'Julia', which is a high-level,
high-performance dynamic programming language for numerical computing, see
<https://julialang.org/> for more information. It provides a high-level
interface as well as a low-level interface. Using the high level
interface, you could call any 'Julia' function just like any R function
with automatic type conversion. Using the low level interface, you could
deal with C-level SEXP directly while enjoying the convenience of using a
high-level programming language like 'Julia'.
%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
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/NEWS.md
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/js/
%{rlibdir}/%{packname}/julia/
%{rlibdir}/%{packname}/julia/display/
%changelog