!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
0f50c7b6f5
70
R-sys.spec
Normal file
70
R-sys.spec
Normal file
@ -0,0 +1,70 @@
|
||||
%bcond_with check
|
||||
|
||||
%global packname sys
|
||||
%global rlibdir %{_libdir}/R/library
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 3.4
|
||||
Release: 1
|
||||
Summary: Powerful and Reliable Tools for Running System Commands in R
|
||||
|
||||
License: MIT
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
||||
|
||||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
%if %{with check}
|
||||
BuildRequires: R-unix >= 1.4
|
||||
BuildRequires: R-spelling
|
||||
BuildRequires: R-testthat
|
||||
%endif
|
||||
|
||||
%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.
|
||||
|
||||
|
||||
%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
|
||||
rm %{buildroot}%{rlibdir}/%{packname}/utf8.txt
|
||||
|
||||
|
||||
%check
|
||||
%if %{with check}
|
||||
export LANG=C.UTF-8
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%endif
|
||||
|
||||
%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
|
||||
%dir %{rlibdir}/%{packname}/libs
|
||||
%{rlibdir}/%{packname}/libs/%{packname}.so
|
||||
%{rlibdir}/%{packname}/WORDLIST
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jun 15 2022 misaka00251 <misaka00251@misakanet.cn> - 3.4-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
sys_3.4.tar.gz
Normal file
BIN
sys_3.4.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user