!1 Init package

From: @misaka00251 
Reviewed-by: @laokz 
Signed-off-by: @laokz
This commit is contained in:
openeuler-ci-bot 2022-08-22 02:52:50 +00:00 committed by Gitee
commit cd1d159ca1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 78 additions and 0 deletions

78
R-pkgload.spec Normal file
View File

@ -0,0 +1,78 @@
%bcond_without bootstrap
%global packname pkgload
%global packver 1.2.0
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 1.2.0
Release: 1
Summary: Simulate Package Installation and Attach
License: GPLv3
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-cli
BuildRequires: R-crayon
BuildRequires: R-desc
BuildRequires: R-methods
BuildRequires: R-pkgbuild
BuildRequires: R-rlang
BuildRequires: R-rprojroot
BuildRequires: R-rstudioapi
BuildRequires: R-utils
BuildRequires: R-withr
%if %{without bootstrap}
BuildRequires: R-bitops
BuildRequires: R-Rcpp-devel
BuildRequires: R-testthat
BuildRequires: R-httr
%endif
%description
Simulates the process of installing a package and then attaching it. This
is a key part of the 'devtools' package as it allows you to rapidly iterate
while developing a package.
%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
%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
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/WORDLIST
%changelog
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 1.2.0-1
- Init package (Thanks to fedora team)

BIN
pkgload_1.2.0.tar.gz Normal file

Binary file not shown.