!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
87127560ee
103
R-Rcpp.spec
Normal file
103
R-Rcpp.spec
Normal file
@ -0,0 +1,103 @@
|
||||
%global packname Rcpp
|
||||
|
||||
%global __suggests_exclude ^R\\((pkgKitten|rbenchmark|tinytest)\\)
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.0.8.3
|
||||
Release: 1
|
||||
Summary: Seamless R and C++ Integration
|
||||
|
||||
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-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/tinytest/cpp/InternalFunction.cpp \
|
||||
%{packname}/inst/tinytest/cpp/InternalFunctionCPP11.cpp
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_libdir}/R/library
|
||||
%{_bindir}/R CMD INSTALL -l %{buildroot}%{_libdir}/R/library %{packname}
|
||||
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
|
||||
rm -rf %{buildroot}%{_libdir}/R/library/R.css
|
||||
rm -rf %{buildroot}%{_libdir}/R/library/%{packname}/tinytest
|
||||
|
||||
sed 's!/bin/env Rscript!/usr/bin/Rscript!' \
|
||||
-i %{buildroot}%{_libdir}/R/library/%{packname}/discovery/cxx0x.R
|
||||
chmod 755 %{buildroot}%{_libdir}/R/library/%{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}%{_libdir}/R/library/%{packname}/examples/$f
|
||||
done
|
||||
|
||||
%check
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}
|
||||
|
||||
%files
|
||||
%dir %{_libdir}/R/library/%{packname}
|
||||
%doc %{_libdir}/R/library/%{packname}/NEWS.Rd
|
||||
%doc %{_libdir}/R/library/%{packname}/announce
|
||||
%doc %{_libdir}/R/library/%{packname}/bib
|
||||
%doc %{_libdir}/R/library/%{packname}/doc
|
||||
%doc %{_libdir}/R/library/%{packname}/html
|
||||
%{_libdir}/R/library/%{packname}/CITATION
|
||||
%{_libdir}/R/library/%{packname}/DESCRIPTION
|
||||
%{_libdir}/R/library/%{packname}/INDEX
|
||||
%{_libdir}/R/library/%{packname}/NAMESPACE
|
||||
%{_libdir}/R/library/%{packname}/Meta
|
||||
%{_libdir}/R/library/%{packname}/R
|
||||
%{_libdir}/R/library/%{packname}/discovery
|
||||
%{_libdir}/R/library/%{packname}/help
|
||||
%{_libdir}/R/library/%{packname}/libs
|
||||
%{_libdir}/R/library/%{packname}/prompt
|
||||
%{_libdir}/R/library/%{packname}/skeleton
|
||||
|
||||
%files devel
|
||||
%{_libdir}/R/library/%{packname}/include
|
||||
|
||||
%files examples
|
||||
%{_libdir}/R/library/%{packname}/examples
|
||||
|
||||
%changelog
|
||||
* Wed Jun 15 2022 misaka00251 <misaka00251@misakanet.cn> - 1.0.8.3-1
|
||||
- Init package (Thanks to fedora team)
|
||||
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# R-Rcpp
|
||||
|
||||
#### Description
|
||||
Seamless R and C++ Integration
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# R-Rcpp
|
||||
|
||||
#### 介绍
|
||||
Seamless R and C++ Integration
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
BIN
Rcpp_1.0.8.3.tar.gz
Normal file
BIN
Rcpp_1.0.8.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user