Init package
This commit is contained in:
parent
9b1d5a26a9
commit
61a8974c31
78
R-pkgload.spec
Normal file
78
R-pkgload.spec
Normal 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
BIN
pkgload_1.2.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user