%global packname Rcpp %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.0.1 Release: 2%{?dist} Summary: Seamless R and C++ Integration # The following three files uses the Boost Software License: # - Rcpp/inst/include/Rcpp/utils/tinyformat/tinyformat.h # - Rcpp/inst/include/Rcpp/macros/config.hpp # - Rcpp/inst/include/Rcpp/macros/cat.hpp License: GPLv2+ and Boost URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{version}#/%{packname}_%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: R-core-devel BuildRequires: R-RUnit BuildRequires: R-inline BuildRequires: dos2unix Requires: R-core%{?_isa} %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. Documentation about Rcpp is provided by several vignettes included in this package, via the Rcpp Gallery site at http://gallery.rcpp.org, the paper by Eddelbuettel and Francois (2011, JSS), and the book by Eddelbuettel (2013, Springer). See citation("Rcpp") for details on the last two. %package devel Summary: Rcpp Development Files Requires: %{name}%{?_isa} = %{version}-%{release} Requires: R-core-devel%{?_isa} %description devel Header files for Rcpp. %package examples Summary: Rcpp Examples Requires: %{name}%{?_isa} = %{version}-%{release} %description examples Examples for using Rcpp. %prep %setup -q -c dos2unix -k %{packname}/inst/include/Rcpp/sugar/functions/cbind.h \ %{packname}/inst/unitTests/cpp/InternalFunction.cpp \ %{packname}/inst/unitTests/cpp/InternalFunctionCPP11.cpp %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 -rf %{buildroot}%{rlibdir}/R.css rm -rf %{buildroot}%{rlibdir}/%{packname}/unitTests sed 's!/bin/env Rscript!/usr/bin/Rscript!' \ -i %{buildroot}%{rlibdir}/%{packname}/discovery/cxx0x.R chmod 755 %{buildroot}%{rlibdir}/%{packname}/discovery/cxx0x.R for f in ConvolveBenchmarks/overhead.r ConvolveBenchmarks/overhead.sh \ Misc/ifelseLooped.r Misc/newFib.r OpenMP/OpenMPandInline.r ; do chmod 755 %{buildroot}%{rlibdir}/%{packname}/examples/$f done for f in `find %{buildroot}%{rlibdir}/%{packname}/examples -type f` ; do grep -q '/usr/bin/env r' $f && sed 's!/usr/bin/env r!/usr/bin/r!' -i $f done %check _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check --ignore-vignettes %{packname} %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/NEWS.Rd %doc %{rlibdir}/%{packname}/announce %doc %{rlibdir}/%{packname}/bib %doc %{rlibdir}/%{packname}/doc %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/CITATION %{rlibdir}/%{packname}/DESCRIPTION %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/discovery %{rlibdir}/%{packname}/help %{rlibdir}/%{packname}/libs %{rlibdir}/%{packname}/prompt %{rlibdir}/%{packname}/skeleton %files devel %{rlibdir}/%{packname}/include %files examples %{rlibdir}/%{packname}/examples %changelog * Wed Jul 24 2019 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Mar 18 2019 Mattias Ellert - 1.0.1-1 - Update to 1.0.1 * Thu Jan 31 2019 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Nov 10 2018 Mattias Ellert - 1.0.0-1 - Update to 1.0.0 * Mon Oct 22 2018 Mattias Ellert - 0.12.19-1 - Update to 0.12.19 * Tue Jul 31 2018 Florian Weimer - 0.12.18-2 - Rebuild with fixed binutils * Sat Jul 28 2018 Mattias Ellert - 0.12.18-1 - Update to 0.12.18 * Thu Jul 12 2018 Fedora Release Engineering - 0.12.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue May 22 2018 Mattias Ellert - 0.12.17-1 - Update to 0.12.17 * Fri May 18 2018 Tom Callaway - 0.12.16-2.1 - actually build against R 3.5.0 * Wed May 16 2018 TOm Callaway - 0.12.16-2 - rebuild for R 3.5.0 * Wed Mar 14 2018 Mattias Ellert - 0.12.16-1 - Update to 0.12.16 * Wed Feb 07 2018 Fedora Release Engineering - 0.12.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 22 2018 Mattias Ellert - 0.12.15-1 - Update to 0.12.15 * Sat Nov 25 2017 Mattias Ellert - 0.12.14-1 - Update to 0.12.14 * Thu Oct 05 2017 Mattias Ellert - 0.12.13-1 - Update to 0.12.13 - The package has changed vignette builder from "highlight" to "knitr" - The R-knitr package is not available in Fedora, so --ignore-vignettes was added to the R CMD check command - Removed the build requires used only by the vignette checks * Wed Aug 02 2017 Fedora Release Engineering - 0.12.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.12.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 17 2017 Mattias Ellert - 0.12.12-1 - Update to 0.12.12 * Mon May 22 2017 Mattias Ellert - 0.12.11-1 - Update to 0.12.11 * Mon Mar 20 2017 Mattias Ellert - 0.12.10-1 - Update to 0.12.10 - Add tex BuildRequires for EPEL 7 (now provided by texlive-extension package) * Fri Feb 10 2017 Fedora Release Engineering - 0.12.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 16 2017 Mattias Ellert - 0.12.9-1 - Update to 0.12.9 * Fri Dec 02 2016 Mattias Ellert - 0.12.8-1 - Update to 0.12.8 * Tue Sep 06 2016 Mattias Ellert - 0.12.7-1 - Update to 0.12.7 * Fri Jul 22 2016 Mattias Ellert - 0.12.6-1 - Update to 0.12.6 * Tue May 24 2016 Mattias Ellert - 0.12.5-1 - Update to 0.12.5 * Sun Apr 10 2016 Mattias Ellert - 0.12.4-1 - Update to 0.12.4 * Tue Feb 23 2016 Mattias Ellert - 0.12.3-3 - Adjust BuildRequires for EPEL - Replace /usr/bin/env shebang - Set executable permission on script with shebang * Thu Feb 18 2016 Mattias Ellert - 0.12.3-2 - Fix license tag (add Boost) * Fri Feb 05 2016 Mattias Ellert - 0.12.3-1 - Initial package creation