%global packname chron %global packvers 2.3-53 %global rlibdir %{_libdir}/R/library # Dependency loops. %global with_suggests 0 Name: R-%{packname} Version: 2.3.53 Release: 1%{?dist} Summary: Chronological Objects which can Handle Dates and Times License: GPLv2 URL: https://cran.r-project.org/web/packages/%{packname}/index.html Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packvers}.tar.gz # Here's the R view of the dependencies world: # Depends: # Imports: R-graphics, R-stats # Suggests: R-scales, R-ggplot2 # LinkingTo: # Enhances: Requires: R-graphics Requires: R-stats Suggests: R-scales Suggests: R-ggplot2 BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: R-graphics BuildRequires: R-stats %if %{with_suggests} BuildRequires: R-scales BuildRequires: R-ggplot2 %endif %description Provides chronological objects which can handle dates and times. %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 %doc %{rlibdir}/%{packname}/CITATION %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %dir %{rlibdir}/%{packname}/libs %{rlibdir}/%{packname}/libs/%{packname}.so %changelog * Mon Sep 10 2018 Elliott Sales de Andrade - 2.3.53-1 - Update to latest version * Thu Jul 12 2018 Fedora Release Engineering - 2.3.52-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue May 29 2018 Elliott Sales de Andrade - 2.3.52-2 - Rebuild for R 3.5.0 * Sun May 06 2018 Elliott Sales de Andrade - 2.3.52-1 - initial package for Fedora