## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_with bootstrap %global packname formatR %global packver 1.13 %global rlibdir %{_datadir}/R/library Name: R-%{packname} Version: %{packver} Release: %autorelease Summary: Format R Code Automatically # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later 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: # Suggests: R-codetools, R-shiny, R-testit, R-rmarkdown, R-knitr # LinkingTo: # Enhances: BuildArch: noarch BuildRequires: R-devel BuildRequires: tex(latex) %if %{without bootstrap} BuildRequires: R-rstudioapi BuildRequires: R-shiny BuildRequires: R-testit BuildRequires: R-rmarkdown BuildRequires: R-knitr %endif %description Provides a function tidy_source() to format R source code. Spaces and indent will be added to the code automatically, and comments will be preserved under certain conditions, so that R code will be more human-readable and tidy. There is also a Shiny app as a user interface in this package (see tidy_app()). %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 %{without bootstrap} %{_bindir}/R CMD check --ignore-vignettes %{packname} %endif %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/doc %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/DESCRIPTION %doc %{rlibdir}/%{packname}/NEWS.Rd %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/format %{rlibdir}/%{packname}/shiny %changelog ## START: Generated by rpmautospec * Fri Jul 26 2024 Miroslav Suchý - 1.13-10 - convert GPLv2+ license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 1.13-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Apr 25 2024 Iñaki Úcar - 1.13-8 - R-maint-sig mass rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.13-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.13-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri May 12 2023 Iñaki Úcar - 1.13-4 - Ignore vignettes * Fri Apr 21 2023 Iñaki Úcar - 1.13-3 - R-maint-sig mass rebuild * Wed Jan 18 2023 Fedora Release Engineering - 1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Dec 30 2022 Tom Callaway - 1.13-1 - update to 1.13 * Thu Aug 4 2022 Tom Callaway - 1.12-1 - update to 1.12 - rebuild for R 4.2.1 - bootstrap on * Wed Jul 21 2021 Fedora Release Engineering - 1.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jun 7 2021 Tom Callaway - 1.11-1 - update to 1.11 - conditionalize check and BR, disable check - Rebuilt for R 4.1.0 * Sat Apr 17 2021 Elliott Sales de Andrade - 1.9-1 - Update to latest version (#1949655) * Sun Mar 14 2021 Elliott Sales de Andrade - 1.8-1 - Update to latest version (#1937702) * Mon Jan 25 2021 Fedora Release Engineering - 1.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 5 2020 Tom Callaway - 1.7-5 - rebuild for R 4 * Tue Jan 28 2020 Fedora Release Engineering - 1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Aug 11 2019 Elliott Sales de Andrade - 1.7-3 - Remove explicit dependencies provided by automatic dependency generator * Wed Jul 24 2019 Fedora Release Engineering - 1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 12 2019 Elliott Sales de Andrade - 1.7-1 - Update to latest version * Fri Mar 08 2019 Elliott Sales de Andrade - 1.6-1 - Update to latest version * Thu Jan 31 2019 Fedora Release Engineering - 1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 05 2018 Elliott Sales de Andrade - 1.5-1 - initial package for Fedora ## END: Generated by rpmautospec