[packages/R-cran-cpp11] Initial
arekm
arekm at pld-linux.org
Sun Apr 5 23:34:48 CEST 2026
commit 4e05ccabb932108d8d15b93e24187d265e8d1a1f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Apr 5 23:34:36 2026 +0200
Initial
R-cran-cpp11.spec | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
---
diff --git a/R-cran-cpp11.spec b/R-cran-cpp11.spec
new file mode 100644
index 0000000..dee9b8c
--- /dev/null
+++ b/R-cran-cpp11.spec
@@ -0,0 +1,40 @@
+%define fversion %(echo %{version} |tr r -)
+%define modulename cpp11
+%undefine _debugsource_packages
+Summary: A C++11 interface for R's C interface
+Name: R-cran-%{modulename}
+Version: 0.5.4
+Release: 1
+License: MIT
+Group: Applications/Math
+Source0: https://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5: 2397bc2d5d5c1993feb7954660c4a5d2
+URL: https://cran.r-project.org/package=%{modulename}
+BuildRequires: R >= 4.0
+Requires: R >= 4.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Provides a header only, C++11 interface to R's C interface. Its goals
+and features include: safe garbage collection against long jumps from
+the C API and target C++ exceptions, conformance to normal R function
+semantics, and support for ALTREP vectors.
+
+%prep
+%setup -q -c
+
+%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}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/R-cran-cpp11.git/commitdiff/4e05ccabb932108d8d15b93e24187d265e8d1a1f
More information about the pld-cvs-commit
mailing list