87 lines
2.4 KiB
RPMSpec
87 lines
2.4 KiB
RPMSpec
|
|
%bcond_without bootstrap
|
||
|
|
|
||
|
|
%global packname processx
|
||
|
|
%global packver 3.6.0
|
||
|
|
%global rlibdir %{_libdir}/R/library
|
||
|
|
|
||
|
|
Name: R-%{packname}
|
||
|
|
Version: 3.6.0
|
||
|
|
Release: 1
|
||
|
|
Summary: Execute and Control System Processes
|
||
|
|
|
||
|
|
License: MIT
|
||
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
||
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
|
||
|
|
|
||
|
|
BuildRequires: R-devel
|
||
|
|
BuildRequires: tex(latex)
|
||
|
|
BuildRequires: R-ps >= 1.2.0
|
||
|
|
BuildRequires: R-R6
|
||
|
|
BuildRequires: R-utils
|
||
|
|
%if %{without bootstrap}
|
||
|
|
BuildRequires: R-callr >= 3.2.0
|
||
|
|
BuildRequires: R-cli
|
||
|
|
BuildRequires: R-codetools
|
||
|
|
BuildRequires: R-curl
|
||
|
|
BuildRequires: R-debugme
|
||
|
|
BuildRequires: R-parallel
|
||
|
|
BuildRequires: R-testthat
|
||
|
|
BuildRequires: R-withr
|
||
|
|
%endif
|
||
|
|
|
||
|
|
%description
|
||
|
|
Tools to run system processes in the background. It can check if a
|
||
|
|
background process is running; wait on a background process to finish; get
|
||
|
|
the exit status of finished processes; kill background processes. It can
|
||
|
|
read the standard output and error of the processes, using non-blocking
|
||
|
|
connections. 'processx' can poll a process for standard output or error,
|
||
|
|
with a timeout. It can also poll several processes at once.
|
||
|
|
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -c -n %{packname}
|
||
|
|
sed -i 's/covr, //g' %{packname}/DESCRIPTION
|
||
|
|
|
||
|
|
|
||
|
|
%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
|
||
|
|
|
||
|
|
# This need to be installed seperately and I don't know why.
|
||
|
|
install -pm 0644 %{packname}/README.md %{buildroot}%{rlibdir}/%{packname}/
|
||
|
|
|
||
|
|
|
||
|
|
%check
|
||
|
|
%if %{without bootstrap}
|
||
|
|
%{_bindir}/R CMD check %{packname}
|
||
|
|
%endif
|
||
|
|
|
||
|
|
|
||
|
|
%files
|
||
|
|
%dir %{rlibdir}/%{packname}
|
||
|
|
%doc %{rlibdir}/%{packname}/html
|
||
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
||
|
|
%doc %{rlibdir}/%{packname}/NEWS.md
|
||
|
|
%doc %{rlibdir}/%{packname}/README.md
|
||
|
|
%doc %{rlibdir}/%{packname}/CODE_OF_CONDUCT.md
|
||
|
|
%license %{rlibdir}/%{packname}/LICENSE
|
||
|
|
%{rlibdir}/%{packname}/INDEX
|
||
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
||
|
|
%{rlibdir}/%{packname}/Meta
|
||
|
|
%{rlibdir}/%{packname}/R
|
||
|
|
%{rlibdir}/%{packname}/help
|
||
|
|
%{rlibdir}/%{packname}/bin
|
||
|
|
%dir %{rlibdir}/%{packname}/libs
|
||
|
|
%{rlibdir}/%{packname}/libs/%{packname}.so
|
||
|
|
%{rlibdir}/%{packname}/libs/client.so
|
||
|
|
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 3.6.0-1
|
||
|
|
- Init package (Thanks to fedora team)
|