Init package
This commit is contained in:
parent
219f5ef990
commit
8d014f98a1
64
R-rstudioapi.spec
Normal file
64
R-rstudioapi.spec
Normal file
@ -0,0 +1,64 @@
|
||||
# Bootstrap
|
||||
%bcond_without bootstrap
|
||||
|
||||
%global packname rstudioapi
|
||||
%global packver 0.13
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 0.13
|
||||
Release: 1
|
||||
Summary: Safely Access the RStudio API
|
||||
|
||||
License: MIT
|
||||
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)
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: R-testthat
|
||||
BuildRequires: R-knitr
|
||||
BuildRequires: R-rmarkdown
|
||||
BuildRequires: R-clipr
|
||||
%endif
|
||||
|
||||
%description
|
||||
Access the RStudio API (if available) and provide informative error
|
||||
messages when it's not.
|
||||
|
||||
|
||||
%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
|
||||
|
||||
%check
|
||||
%if %{without bootstrap}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%dir %{rlibdir}/%{packname}
|
||||
%doc %{rlibdir}/%{packname}/doc
|
||||
%doc %{rlibdir}/%{packname}/html
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%doc %{rlibdir}/%{packname}/NEWS.md
|
||||
%license %{rlibdir}/%{packname}/LICENSE
|
||||
%{rlibdir}/%{packname}/INDEX
|
||||
%{rlibdir}/%{packname}/NAMESPACE
|
||||
%{rlibdir}/%{packname}/Meta
|
||||
%{rlibdir}/%{packname}/R
|
||||
%{rlibdir}/%{packname}/help
|
||||
%{rlibdir}/%{packname}/resources
|
||||
|
||||
%changelog
|
||||
* Tue May 31 2022 misaka00251 <misaka00251@misakanet.cn> - 0.13-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
rstudioapi_0.13.tar.gz
Normal file
BIN
rstudioapi_0.13.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user