Initial import (#1676300).

This commit is contained in:
Elliott Sales de Andrade 2019-02-14 16:29:23 -05:00
parent 21b0f94ed1
commit 4296e0142b
3 changed files with 82 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/sys_2.1.tar.gz

80
R-sys.spec Normal file
View File

@ -0,0 +1,80 @@
%global packname sys
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 2.1
Release: 1%{?dist}
Summary: Powerful and Reliable Tools for Running System Commands in R
License: MIT + file LICENSE
URL: https://CRAN.R-project.org/package=%{packname}
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-spelling, R-unix >= 1.3, R-testthat
# LinkingTo:
# Enhances:
Suggests: R-spelling
Suggests: R-unix >= 1.3
Suggests: R-testthat
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-spelling
BuildRequires: R-unix >= 1.3
BuildRequires: R-testthat
%description
Drop-in replacements for the base system2() function with fine control and
consistent behavior across platforms. Supports clean interruption, timeout,
background tasks, and streaming STDIN / STDOUT / STDERR over binary or text
connections. Arguments on Windows automatically get encoded and quoted to work
on different locales. On Unix platforms the package also provides functions for
evaluating expressions inside a temporary fork. Such evaluations have no side
effects on the main R process, and support reliable interrupts and timeouts.
This provides the basis for a sandboxing mechanism.
%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
# A file used in tests; tests aren't installed.
rm %{buildroot}%{rlibdir}/%{packname}/utf8.txt
%check
%{_bindir}/R CMD check %{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%license %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%dir %{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/libs/%{packname}.so
%{rlibdir}/%{packname}/WORDLIST
%changelog
* Sun Feb 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1-1
- initial package for Fedora

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (sys_2.1.tar.gz) = cd56d57a6051a3513f5ad1b3e6ca027f8dff9c94f001a8d376722d5d568f4bb6b4941a07819a41256ce9f5876c6e6193ae75ca0f043fc7c45f72156a3e5fe984