!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
11865864c5
80
R-htmlwidgets.spec
Normal file
80
R-htmlwidgets.spec
Normal file
@ -0,0 +1,80 @@
|
||||
%bcond_without bootstrap
|
||||
|
||||
%global packname htmlwidgets
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
|
||||
# R-knitr
|
||||
%global with_doc 0
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.5.3
|
||||
Release: 1
|
||||
Summary: HTML Widgets for R
|
||||
|
||||
License: MIT
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: R-grDevices
|
||||
BuildRequires: R-htmltools >= 0.3
|
||||
BuildRequires: R-jsonlite >= 0.9.16
|
||||
BuildRequires: R-yaml
|
||||
%if %{without bootstrap}
|
||||
%if %{with_doc}
|
||||
BuildRequires: R-knitr >= 1.8
|
||||
%endif
|
||||
BuildRequires: R-rmarkdown
|
||||
BuildRequires: R-testthat
|
||||
%endif
|
||||
|
||||
%description
|
||||
A framework for creating HTML widgets that render in various contexts
|
||||
including the R console, 'R Markdown' documents, and 'Shiny' web
|
||||
applications.
|
||||
|
||||
|
||||
%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}
|
||||
%if %{with_doc}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%else
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files
|
||||
%dir %{rlibdir}/%{packname}
|
||||
%doc %{rlibdir}/%{packname}/doc
|
||||
%doc %{rlibdir}/%{packname}/html
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%doc %{rlibdir}/%{packname}/NEWS.md
|
||||
%{rlibdir}/%{packname}/INDEX
|
||||
%license %{rlibdir}/%{packname}/LICENSE
|
||||
%{rlibdir}/%{packname}/NAMESPACE
|
||||
%{rlibdir}/%{packname}/Meta
|
||||
%{rlibdir}/%{packname}/R
|
||||
%{rlibdir}/%{packname}/help
|
||||
%{rlibdir}/%{packname}/templates
|
||||
%{rlibdir}/%{packname}/www
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jun 14 2022 misaka00251 <misaka00251@misakanet.cn> - 1.5.3-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
htmlwidgets_1.5.3.tar.gz
Normal file
BIN
htmlwidgets_1.5.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user