%bcond_with bootstrap %global packname htmlwidgets %global rlibdir %{_datadir}/R/library # Remove knitr dependency, which also Suggests this package. %global with_doc 0 Name: R-%{packname} Version: 1.5.4 Release: 1%{?dist} 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 # Here's the R view of the dependencies world: # Depends: # Imports: R-grDevices, R-htmltools >= 0.3, R-jsonlite >= 0.9.16, R-yaml # Suggests: R-knitr >= 1.8, R-rmarkdown, R-testthat # LinkingTo: # Enhances: 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 * Thu Sep 1 2022 Tom Callaway - 1.5.4-1 - update to 1.5.4 - rebuild for R 4.2.1 * Wed Jul 20 2022 Fedora Release Engineering - 1.5.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 1.5.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 17 2021 Tom Callaway - 1.5.3-2 - bootstrap off * Fri Jun 11 2021 Tom Callaway - 1.5.3-1 - update to 1.5.3 - Rebuilt for R 4.1.0 - bootstrap * Mon Jan 25 2021 Fedora Release Engineering - 1.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 5 2020 Tom Callaway - 1.5.1-3 - disable with doc to break knitr loop - rebuild for R 4 * Tue Jan 28 2020 Fedora Release Engineering - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Oct 16 2019 Elliott Sales de Andrade - 1.5.1-1 - Update to latest version * Sun Aug 11 2019 Elliott Sales de Andrade - 1.3-3 - Remove explicit dependencies provided by automatic dependency generator * Wed Jul 24 2019 Fedora Release Engineering - 1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 16 2019 Elliott Sales de Andrade - 1.3-1 - Update to latest version - Enable documentation * Thu Jan 31 2019 Fedora Release Engineering - 1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Apr 26 2018 Elliott Sales de Andrade - 1.2-1 - Update to latest version * Wed Feb 07 2018 Fedora Release Engineering - 0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Sep 07 2017 Elliott Sales de Andrade 0.9-2 - Fix file list. - Fix inverted condition. * Fri Aug 25 2017 Elliott Sales de Andrade 0.9-1 - initial package for Fedora