[packages/R-cran-cli] Initial

arekm arekm at pld-linux.org
Sun Apr 5 17:22:03 CEST 2026


commit a36660f8025323944959d3625e4d2d8832f0c4d5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Apr 5 17:21:49 2026 +0200

    Initial

 R-cran-cli-shebang.patch | 64 ++++++++++++++++++++++++++++++++++++++++++++++++
 R-cran-cli.spec          | 40 ++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)
---
diff --git a/R-cran-cli.spec b/R-cran-cli.spec
new file mode 100644
index 0000000..75e63a3
--- /dev/null
+++ b/R-cran-cli.spec
@@ -0,0 +1,40 @@
+%define		fversion	%(echo %{version} |tr r -)
+%define		modulename	cli
+Summary:	Helpers for developing command line interfaces
+Name:		R-cran-%{modulename}
+Version:	3.6.5
+Release:	1
+License:	MIT
+Group:		Applications/Math
+Source0:	https://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5:	bb08a624eeaa431d766e15309fb59ee8
+Patch0:		R-cran-cli-shebang.patch
+URL:		https://cran.r-project.org/package=%{modulename}
+BuildRequires:	R
+BuildRequires:	R-cran-glue
+BuildRequires:	R-cran-fansi
+Requires:	R
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Helpers for developing command line interfaces.
+
+%prep
+%setup -q -c
+%patch -P0 -p0
+
+%build
+R CMD build --no-build-vignettes %{modulename}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/R/library
+R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc %{modulename}/DESCRIPTION
+%{_libdir}/R/library/%{modulename}
diff --git a/R-cran-cli-shebang.patch b/R-cran-cli-shebang.patch
new file mode 100644
index 0000000..adb36e7
--- /dev/null
+++ b/R-cran-cli-shebang.patch
@@ -0,0 +1,64 @@
+--- cli/exec/up.R.orig	2026-04-05 16:47:36.251584504 +0200
++++ cli/exec/up.R	2026-04-05 16:47:50.922309888 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env Rscript
++#!/usr/bin/Rscript
+ 
+ ## To get the async package:
+ ## source("https://install-github.me/r-lib/async")
+--- cli/exec/outdated.R.orig	2026-04-05 16:47:36.244853968 +0200
++++ cli/exec/outdated.R	2026-04-05 16:47:50.914794113 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env Rscript
++#!/usr/bin/Rscript
+ 
+ ## To get the pkgcache package:
+ ## source("https://install-github.me/r-lib/pkgcache")
+--- cli/exec/search.R.orig	2026-04-05 16:47:36.248228099 +0200
++++ cli/exec/search.R	2026-04-05 16:47:50.918627147 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env Rscript
++#!/usr/bin/Rscript
+ 
+ setup_app <- function() {
+   theme <- list(
+--- cli/exec/news.R.orig	2026-04-05 16:47:36.240611606 +0200
++++ cli/exec/news.R	2026-04-05 16:47:50.911129255 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env Rscript
++#!/usr/bin/Rscript
+ 
+ setup_app <- function() {
+   theme <- list(
+--- cli/inst/examples/apps/up.R.orig	2026-04-05 16:47:36.265106710 +0200
++++ cli/inst/examples/apps/up.R	2026-04-05 16:47:50.937289138 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env Rscript
++#!/usr/bin/Rscript
+ 
+ ## To get the async package:
+ ## source("https://install-github.me/r-lib/async")
+--- cli/inst/examples/apps/outdated.R.orig	2026-04-05 16:47:36.258291295 +0200
++++ cli/inst/examples/apps/outdated.R	2026-04-05 16:47:50.929672350 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env Rscript
++#!/usr/bin/Rscript
+ 
+ ## To get the pkgcache package:
+ ## source("https://install-github.me/r-lib/pkgcache")
+--- cli/inst/examples/apps/search.R.orig	2026-04-05 16:47:36.261633872 +0200
++++ cli/inst/examples/apps/search.R	2026-04-05 16:47:50.933419875 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env Rscript
++#!/usr/bin/Rscript
+ 
+ setup_app <- function() {
+   theme <- list(
+--- cli/inst/examples/apps/news.R.orig	2026-04-05 16:47:36.254814388 +0200
++++ cli/inst/examples/apps/news.R	2026-04-05 16:47:50.925812729 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env Rscript
++#!/usr/bin/Rscript
+ 
+ setup_app <- function() {
+   theme <- list(
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/R-cran-cli.git/commitdiff/a36660f8025323944959d3625e4d2d8832f0c4d5



More information about the pld-cvs-commit mailing list