## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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_without check %global packname cli %global packver 3.6.1 %global rlibdir %{_libdir}/R/library Name: R-%{packname} Version: %{packver} Release: %autorelease Summary: Helpers for Developing Command Line Interfaces 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-utils # Suggests: R-callr, R-covr, R-crayon, R-digest, R-glue >= 1.6.0, R-grDevices, R-htmltools, R-htmlwidgets, R-knitr, R-methods, R-mockery, R-processx, R-ps >= 1.3.4.9000, R-rlang >= 1.0.2.9003, R-rmarkdown, R-rprojroot, R-rstudioapi, R-testthat, R-tibble, R-whoami, R-withr # LinkingTo: # Enhances: BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: R-glue >= 1.6.0 BuildRequires: R-utils %if %{with check} BuildRequires: R-callr BuildRequires: R-crayon BuildRequires: R-digest BuildRequires: R-glue >= 1.6.0 BuildRequires: R-grDevices BuildRequires: R-htmltools BuildRequires: R-htmlwidgets BuildRequires: R-knitr BuildRequires: R-methods BuildRequires: R-mockery BuildRequires: R-processx BuildRequires: R-ps >= 1.3.4.9000 BuildRequires: R-rlang >= 1.0.2.9003 BuildRequires: R-rmarkdown BuildRequires: R-rprojroot BuildRequires: R-rstudioapi BuildRequires: R-testthat BuildRequires: R-tibble BuildRequires: R-whoami BuildRequires: R-withr %endif %description A suite of tools to build attractive command line interfaces ('CLIs'), from semantic elements: headings, lists, alerts, paragraphs, etc. Supports custom themes via a 'CSS'-like language. It also contains a number of lower level 'CLI' elements: rules, boxes, trees, and 'Unicode' symbols with 'ASCII' alternatives. It support ANSI colors and text styles as well. %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 %if %{with check} export LANG=C.UTF-8 %{_bindir}/R CMD check --ignore-vignettes --no-manual %{packname} %endif %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/DESCRIPTION %license %{rlibdir}/%{packname}/LICENSE %doc %{rlibdir}/%{packname}/NEWS.md %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/examples %{rlibdir}/%{packname}/logo.txt %{rlibdir}/%{packname}/scripts %{rlibdir}/%{packname}/include %{rlibdir}/%{packname}/libs %{rlibdir}/%{packname}/shiny %changelog * Wed Nov 01 2023 Iñaki Úcar - 3.6.1-1 - Update to 3.6.1 * Wed Jul 19 2023 Fedora Release Engineering - 3.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Apr 21 2023 Iñaki Úcar - 3.6.0-2 - R-maint-sig mass rebuild * Sat Jan 21 2023 Tom Callaway - 3.6.0-1 - update to 3.6.0 * Wed Jan 18 2023 Fedora Release Engineering - 3.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Dec 30 2022 Tom Callaway - 3.5.0-1 - update to 3.5.0 * Sat Sep 24 2022 Tom Callaway - 3.4.1-1 - update to 3.4.1 * Thu Sep 8 2022 Tom Callaway - 3.4.0-1 - update to 3.4.0 * Thu Aug 18 2022 Tom Callaway - 3.3.0-1 - update to 3.3.0 - rebuild for R 4.2.1 - bootstrap on * Wed Jul 20 2022 Fedora Release Engineering - 2.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 2.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 2.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 17 2021 Tom Callaway - 2.5.0-2 - bootstrap off * Mon Jun 7 2021 Tom Callaway - 2.5.0-1 - bootstrap - update to 2.5.0 - rebuild for R 4.1.0 * Tue Apr 06 2021 Elliott Sales de Andrade - 2.4.0-1 - Update to latest version (#1946272) * Tue Feb 23 2021 Elliott Sales de Andrade - 2.3.1-1 - Update to latest version (#1932004) * Sun Feb 07 2021 Elliott Sales de Andrade - 2.3.0-1 - Update to latest version (#1922820) * Mon Jan 25 2021 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Nov 28 2020 Elliott Sales de Andrade - 2.2.0-1 - Update to latest version (#1899946) - Rename check conditional to bootstrap * Mon Oct 12 2020 Elliott Sales de Andrade - 2.1.0-1 - Update to latest version (#1887512) * Mon Jul 27 2020 Fedora Release Engineering - 2.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 3 2020 Tom Callaway - 2.0.2-2 - conditionalize check to break testthat loop - rebuild for R 4 * Fri Feb 28 2020 Elliott Sales de Andrade - 2.0.2-1 - Update to latest version * Tue Jan 28 2020 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 09 2020 Elliott Sales de Andrade - 2.0.1-1 - Update to latest version * Tue Jan 07 2020 Elliott Sales de Andrade - 2.0.0-1 - Update to latest version * Sun Aug 11 2019 Elliott Sales de Andrade - 1.1.0-3 - Remove explicit dependencies provided by automatic dependency generator * Wed Jul 24 2019 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Mar 20 2019 Elliott Sales de Andrade - 1.1.0-1 - Update to latest version * Thu Feb 21 2019 Elliott Sales de Andrade - 1.0.1-1 - Update to latest version * Thu Jan 31 2019 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Mar 14 2018 Elliott Sales de Andrade 1.0.0-1 - initial package for Fedora