%global packname BiocFileCache %global packver 1.12.0 %global with_suggests 0 %global with_network 0 %if ! %{with_suggests} %global __suggests_exclude ^R\\((BiocStyle)\\) %endif Name: R-%{packname} Version: %{packver} Release: 2%{?dist} Source0: http://www.bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{packver}.tar.gz License: Artistic 2.0 BuildArch: noarch URL: http://www.bioconductor.org/packages/release/bioc/html/%{packname}.html Summary: Manage Files Across Sessions BuildRequires: R-devel >= 3.4.0, tetex-latex, R-dbplyr >= 1.0.0 BuildRequires: R-methods, R-stats, R-utils, R-dplyr, R-RSQLite, R-DBI, R-rappdirs, R-curl, R-httr # Suggests BuildRequires: R-rtracklayer, R-testthat, R-knitr, R-rmarkdown %if %{with_suggests} BuildRequires: R-BiocStyle %endif %description This package creates a persistent on-disk cache of files that the user can add, update, and retrieve. It is useful for managing resources (such as custom Txdb objects) that are costly or difficult to create, web resources, and data files used across sessions. %prep %setup -q -c -n %{packname} %build %install mkdir -p %{buildroot}%{_datadir}/R/library R CMD INSTALL %{packname} -l %{buildroot}%{_datadir}/R/library # Clean up in advance of check test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) %{__rm} -rf %{buildroot}%{_datadir}/R/library/R.css %check # Some of the tests (and examples use the network) # With no network, no check. %if %{with_network} export LANG=C.UTF-8 %if %{with_suggests} %{_bindir}/R CMD check %{packname} %else _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-vignettes %endif %endif %files %dir %{_datadir}/R/library/%{packname} %doc %{_datadir}/R/library/%{packname}/html %{_datadir}/R/library/%{packname}/DESCRIPTION %{_datadir}/R/library/%{packname}/INDEX %{_datadir}/R/library/%{packname}/NAMESPACE %doc %{_datadir}/R/library/%{packname}/NEWS %{_datadir}/R/library/%{packname}/Meta %{_datadir}/R/library/%{packname}/help %doc %{_datadir}/R/library/%{packname}/doc %{_datadir}/R/library/%{packname}/R %{_datadir}/R/library/%{packname}/schema %changelog * Tue Jun 16 2020 Tom Callaway - 1.12.0-2 - fix doc files * Mon Jun 8 2020 Tom Callaway - 1.12.0-1 - initial package