diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-28 20:22:08 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-09-28 20:22:08 +0000 |
commit | 74177a8c4f7030d6bc1de4c7afbabbea870d8b1e (patch) | |
tree | add9ff48f10fbd977a858192783301e9aec8f3b1 | |
parent | 48e67ca3ae28350b58590b964cc9b5894879810e (diff) |
automatic import of R-CRAN-littler
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-littler.spec | 53 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 55 insertions, 0 deletions
@@ -0,0 +1 @@ +/littler_0.3.13.tar.gz diff --git a/R-CRAN-littler.spec b/R-CRAN-littler.spec new file mode 100644 index 0000000..571585d --- /dev/null +++ b/R-CRAN-littler.spec @@ -0,0 +1,53 @@ +%global __brp_check_rpaths %{nil} +%global packname littler +%global packver 0.3.13 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 0.3.13 +Release: 1%{?dist}%{?buildtag} +Summary: R at the Command-Line via 'r' + +License: GPL (>= 2) +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel +Requires: R-core + +%description +A scripting and command-line front-end is provided by 'r' (aka 'littler') +as a lightweight binary wrapper around the GNU R language and environment +for statistical computing and graphics. While R can be used in batch mode, +the r binary adds full support for both 'shebang'-style scripting (i.e. +using a hash-mark-exclamation-path expression as the first line in +scripts) as well as command-line use in standard Unix pipelines. In other +words, r provides the R language without the environment. + +%prep +%setup -q -c -n %{packname} + +# fix end of executable files +find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; +# prevent binary stripping +[ -d %{packname}/src ] && find %{packname}/src -type f -exec \ + sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true +[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \ + sed -i 's@-g0@@g' {} \; || true +# don't allow local prefix in executable scripts +find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \; + +%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 +# remove buildroot from installed files +find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \; + +%files +%{rlibdir}/%{packname} @@ -0,0 +1 @@ +c1f542d9be8aca214e81b832868e573c littler_0.3.13.tar.gz |