%global packname usethis %global packver 2.2.3 %global rlibdir %{_datadir}/R/library Name: R-%{packname} Version: %{packver} Release: 2%{?dist} Summary: Automate Package and Project Setup 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-cli, R-clipr >= 0.3.0, R-crayon, R-curl >= 2.7, R-desc, R-fs >= 1.3.0, R-gert >= 1.0.2, R-gh >= 1.2.0, R-glue >= 1.3.0, R-jsonlite, R-lifecycle, R-purrr, R-rappdirs, R-rlang >= 0.4.10, R-rprojroot >= 1.2, R-rstudioapi, R-stats, R-utils, R-whisker, R-withr >= 2.3.0, R-yaml # Suggests: R-covr, R-knitr, R-magick, R-mockr, R-rmarkdown, R-roxygen2, R-spelling >= 1.2, R-styler >= 1.2.0, R-testthat >= 3.0.0 # LinkingTo: # Enhances: BuildArch: noarch BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: R-cli >= 3.0.1 BuildRequires: R-clipr >= 0.3.0 BuildRequires: R-crayon BuildRequires: R-curl >= 2.7 BuildRequires: R-desc >= 1.4.0 BuildRequires: R-fs >= 1.3.0 BuildRequires: R-gert >= 1.4.1 BuildRequires: R-gh >= 1.2.1 BuildRequires: R-glue >= 1.3.0 BuildRequires: R-jsonlite BuildRequires: R-lifecycle >= 1.0.0 BuildRequires: R-purrr BuildRequires: R-rappdirs BuildRequires: R-rlang >= 1.0.0 BuildRequires: R-rprojroot >= 1.2 BuildRequires: R-rstudioapi BuildRequires: R-stats BuildRequires: R-utils BuildRequires: R-whisker BuildRequires: R-withr >= 2.3.0 BuildRequires: R-yaml BuildRequires: R-knitr BuildRequires: R-magick BuildRequires: R-mockr BuildRequires: R-pkgload BuildRequires: R-rmarkdown BuildRequires: R-roxygen2 >= 7.1.2 BuildRequires: R-spelling >= 1.2 BuildRequires: R-styler >= 1.2.0 BuildRequires: R-testthat >= 3.1.0 %description Automate package and project setup tasks that are otherwise performed manually. This includes setting up unit testing, test coverage, continuous integration, Git, GitHub, licenses, Rcpp, RStudio projects, and more. %prep %setup -q -c -n %{packname} rm %{packname}/tests/testthat/test-release.R # requires Internet # 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 %{_bindir}/R CMD check %{packname} %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 %{rlibdir}/%{packname}/templates %changelog * Wed Jul 17 2024 Fedora Release Engineering - 2.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Apr 26 2024 Iñaki Úcar - 2.2.3-1 - Update to latest version * Thu Apr 25 2024 Iñaki Úcar - 2.1.6-7 - R-maint-sig mass rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.1.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.1.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 2.1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Apr 21 2023 Iñaki Úcar - 2.1.6-3 - R-maint-sig mass rebuild * Wed Jan 18 2023 Fedora Release Engineering - 2.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Sep 2 2022 Tom Callaway - 2.1.6-1 - update to 2.1.6 - rebuild for R 4.2.1 * Wed Jul 20 2022 Fedora Release Engineering - 2.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 2.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 2.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 16 2021 Tom Callaway - 2.0.1-2 - Rebuilt for R 4.1.0 * Tue Feb 23 2021 Elliott Sales de Andrade - 2.0.1-1 - Update to latest version (#1927274) * Mon Jan 25 2021 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Dec 31 2020 Elliott Sales de Andrade - 2.0.0-1 - Update to latest version (#1906351) * Fri Sep 18 2020 Elliott Sales de Andrade - 1.6.3-1 - Update to latest version (#1880138) * Mon Aug 03 2020 Elliott Sales de Andrade - 1.6.1-1 - Update to latest version * Mon Jul 27 2020 Fedora Release Engineering - 1.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Jun 7 2020 Tom Callaway - 1.5.1-3 - rebuild for R 4 * Tue Jan 28 2020 Fedora Release Engineering - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 26 2019 Elliott Sales de Andrade - 1.5.1-1 - Update to latest version * Sun Aug 11 2019 Elliott Sales de Andrade - 1.5.0-3 - Remove explicit dependencies provided by automatic dependency generator * Wed Jul 24 2019 Fedora Release Engineering - 1.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jun 16 2019 Elliott Sales de Andrade - 1.5.0-1 - initial package for Fedora