R-packrat/R-packrat.spec

93 lines
2.4 KiB
RPMSpec
Raw Normal View History

2019-06-19 21:47:13 +00:00
%global packname packrat
%global rlibdir %{_datadir}/R/library
%global __suggests_exclude ^R\\((devtools)\\)
2019-06-19 21:47:13 +00:00
# Suggests loop.
%global with_suggests 0
Name: R-%{packname}
Version: 0.5.0
2020-06-08 02:23:45 +00:00
Release: 5%{?dist}
2019-06-19 21:47:13 +00:00
Summary: Dependency Management System for R Projects
License: GPLv2
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-tools, R-utils
# Suggests: R-testthat >= 0.7, R-devtools, R-httr, R-knitr, R-rmarkdown
# LinkingTo:
# Enhances:
BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-tools
BuildRequires: R-utils
BuildRequires: R-testthat >= 0.7
BuildRequires: R-httr
BuildRequires: R-knitr
BuildRequires: R-rmarkdown
%if %{with_suggests}
BuildRequires: R-devtools
%endif
%description
Manage the R packages your project depends on in an isolated, portable, and
reproducible way.
%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 %{with_suggests}
%{_bindir}/R CMD check %{packname}
%else
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}
%endif
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/resources
%{rlibdir}/%{packname}/rstudio
%changelog
2020-06-08 02:23:45 +00:00
* Sun Jun 7 2020 Tom Callaway <spot@fedoraproject.org> - 0.5.0-5
- rebuild for R 4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.5.0-3
- Remove explicit dependencies provided by automatic dependency generator
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-06-19 21:47:13 +00:00
* Mon Jun 17 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.5.0-1
- initial package for Fedora