%global packname highr %global rlibdir %{_datadir}/R/library # Needs knitr (build loop) %global with_doc 0 Name: R-%{packname} Version: 0.7 Release: 2%{?dist} Summary: Syntax Highlighting for R Source Code License: GPLv2+ URL: https://cran.r-project.org/web/packages/%{packname}/index.html Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz # Here's the R view of the dependencies world: # Depends: # Imports: # Suggests: R-knitr R-testit # LinkingTo: # Enhances: BuildArch: noarch Requires: R-core BuildRequires: R-devel tex(latex) BuildRequires: R-testit %if 0%{?with_doc} BuildRequires: R-knitr %endif %description Provides syntax highlighting for R source code. Currently it supports LaTeX and HTML output. Source code of other languages is supported via Andre Simon's highlight package (http://www.andre-simon.de). %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 0%{?with_doc} %{_bindir}/R CMD check %{packname} %endif %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/doc %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/DESCRIPTION %doc %{rlibdir}/%{packname}/NEWS %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %changelog * Thu Jul 12 2018 Fedora Release Engineering - 0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 09 2018 Elliott Sales de Andrade - 0.7-1 - Update to latest veresion * Wed Feb 07 2018 Fedora Release Engineering - 0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Nov 07 2017 Elliott Sales de Andrade - 0.6-3 - Enable tests during build. - Cleanup BRs. * Thu Aug 24 2017 Elliott Sales de Andrade - 0.6-2 - Fix license and use https links. * Fri Feb 17 2017 Elliott Sales de Andrade 0.6-1 - initial package for Fedora