[packages/R-cran-Rcpp] Initial
arekm
arekm at pld-linux.org
Sun Apr 5 17:48:59 CEST 2026
commit f32814666368e0a96378744d78c30580ce41f6a9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Apr 5 17:48:45 2026 +0200
Initial
R-cran-Rcpp.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
---
diff --git a/R-cran-Rcpp.spec b/R-cran-Rcpp.spec
new file mode 100644
index 0000000..8bb7c7a
--- /dev/null
+++ b/R-cran-Rcpp.spec
@@ -0,0 +1,48 @@
+%define fversion %(echo %{version} |tr r -)
+%define modulename Rcpp
+Summary: Seamless R and C++ Integration
+Name: R-cran-%{modulename}
+Version: 1.1.1
+Release: 1
+License: GPL v2+
+Group: Applications/Math
+Source0: https://cran.r-project.org/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5: 07b0c414704207cc90bd856771bb0620
+URL: https://cran.r-project.org/web/packages/Rcpp/index.html
+BuildRequires: R >= 3.5.0
+BuildRequires: libstdc++-devel
+Requires(post,postun): R >= 3.5.0
+Requires(post,postun): perl-base
+Requires(post,postun): textutils
+Requires: R >= 3.5.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The 'Rcpp' package provides R functions as well as C++ classes which
+offer a seamless integration of R and C++. Many R data types and
+objects can be mapped back and forth to C++ equivalents which
+facilitates both writing of new code as well as easier integration of
+third-party libraries.
+
+%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/
+
+# remove execute permission from example scripts to avoid shebang checks
+# (they use #!/usr/bin/env r which is not available on PLD)
+find $RPM_BUILD_ROOT%{_libdir}/R/library/%{modulename}/examples -name '*.r' -o -name '*.R' | xargs chmod a-x
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc %{modulename}/{DESCRIPTION,ChangeLog}
+%{_libdir}/R/library/%{modulename}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/R-cran-Rcpp.git/commitdiff/f32814666368e0a96378744d78c30580ce41f6a9
More information about the pld-cvs-commit
mailing list