%global packname downlit %global packver 0.4.2 %global rlibdir %{_datadir}/R/library Name: R-%{packname} Version: %{packver} Release: 8%{?dist} Summary: Syntax Highlighting and Automatic Linking License: MIT URL: https://CRAN.R-project.org/package=%{packname} Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz # Here's the R view of the dependencies world: # Depends: # Imports: R-brio, R-desc, R-digest, R-evaluate, R-fansi, R-memoise, R-rlang, R-vctrs, R-withr, R-yaml # Suggests: R-covr, R-htmltools, R-jsonlite, R-MASS, R-MassSpecWavelet, R-pkgload, R-rmarkdown, R-testthat >= 3.0.0, R-xml2 # LinkingTo: # Enhances: BuildArch: noarch BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: R-brio BuildRequires: R-desc BuildRequires: R-digest BuildRequires: R-evaluate BuildRequires: R-fansi BuildRequires: R-memoise BuildRequires: R-rlang BuildRequires: R-vctrs BuildRequires: R-withr BuildRequires: R-yaml # Suggests BuildRequires: R-htmltools BuildRequires: R-jsonlite BuildRequires: R-MASS # R-MassSpecWavelet BuildRequires: R-testthat >= 3.0.0 BuildRequires: R-pkgload BuildRequires: R-rmarkdown BuildRequires: R-xml2 %description Syntax highlighting of R code, specifically designed for the needs of RMarkdown packages like pkgdown, hugodown, and bookdown. It includes linking of function calls to their documentation on the web, and automatic translation of ANSI escapes in output to the equivalent HTML. %prep %setup -q -c -n %{packname} # Don't need coverage; it's not packaged either. sed -i 's/, covr//g' %{packname}/DESCRIPTION %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 # Some of the tests seem to be using the network # Missing MassSpecWavelet _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --no-tests %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/DESCRIPTION %doc %{rlibdir}/%{packname}/NEWS.md %license %{rlibdir}/%{packname}/LICENSE %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/WORDLIST %changelog * Wed Jul 17 2024 Fedora Release Engineering - 0.4.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Apr 25 2024 Iñaki Úcar - 0.4.2-7 - R-maint-sig mass rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.4.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 0.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Apr 21 2023 Iñaki Úcar - 0.4.2-3 - R-maint-sig mass rebuild * Wed Jan 18 2023 Fedora Release Engineering - 0.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Sep 1 2022 Tom Callaway - 0.4.2-1 - update to 0.4.2 - rebuild for R 4.2.1 * Wed Jul 20 2022 Fedora Release Engineering - 0.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 0.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 0.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 15 2021 Tom Callaway - 0.2.1-3 - Rebuilt for R 4.1.0 * Mon Jan 25 2021 Fedora Release Engineering - 0.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 06 2020 Elliott Sales de Andrade - 0.2.1-1 - Update to latest version (#1894427) * Fri Sep 25 2020 Elliott Sales de Andrade - 0.2.0-1 - Update to latest version (#1882612) * Tue Sep 08 2020 Elliott Sales de Andrade - 0.1.0-1 - initial package for Fedora