89 lines
2.1 KiB
RPMSpec
89 lines
2.1 KiB
RPMSpec
# Bootstrap
|
|
%bcond_without bootstrap
|
|
|
|
%global packname ps
|
|
%global packver 1.6.0
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
Name: R-%{packname}
|
|
Version: 1.6.0
|
|
Release: 1
|
|
Summary: List, Query, Manipulate System Processes
|
|
|
|
License: MIT
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
|
|
Patch0001: 0001-Don-t-run-example-that-uses-the-network.patch
|
|
|
|
BuildRequires: R-devel
|
|
BuildRequires: tex(latex)
|
|
BuildRequires: R-utils
|
|
%if %{without bootstrap}
|
|
BuildRequires: R-callr
|
|
BuildRequires: R-curl
|
|
BuildRequires: R-pingr
|
|
BuildRequires: R-processx >= 3.1.0
|
|
BuildRequires: R-R6
|
|
BuildRequires: R-rlang
|
|
BuildRequires: R-testthat
|
|
BuildRequires: R-tibble
|
|
%endif
|
|
|
|
%description
|
|
List, query and manipulate all system processes, on 'Windows', 'Linux' and
|
|
'macOS'.
|
|
|
|
|
|
%prep
|
|
%setup -q -c -n %{packname}
|
|
|
|
pushd %{packname}
|
|
%patch0001 -p1
|
|
# Don't need coverage; it's not packaged either.
|
|
sed -i 's/covr, //g' DESCRIPTION
|
|
popd
|
|
|
|
|
|
%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
|
|
# Windows
|
|
rm %{buildroot}%{rlibdir}/%{packname}/tools/winver.R
|
|
|
|
|
|
%check
|
|
%if %{without bootstrap}
|
|
%{_bindir}/R CMD check %{packname}
|
|
%else
|
|
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-examples --no-tests
|
|
%endif
|
|
|
|
|
|
%files
|
|
%dir %{rlibdir}/%{packname}
|
|
%doc %{rlibdir}/%{packname}/html
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
%doc %{rlibdir}/%{packname}/NEWS.md
|
|
%license %{rlibdir}/%{packname}/LICENSE
|
|
%doc %{rlibdir}/%{packname}/internals.md
|
|
%{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}/tools
|
|
%{rlibdir}/%{packname}/WORDLIST
|
|
|
|
|
|
%changelog
|
|
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 1.6.0-1
|
|
- Init package (Thanks to fedora team)
|