Initial import (#1571590).

This commit is contained in:
Elliott Sales de Andrade 2018-04-25 17:14:02 -04:00
parent efbcd2f9ad
commit 846ca73ddb
4 changed files with 79 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/sourcetools_0.1.7.tar.gz

77
R-sourcetools.spec Normal file
View File

@ -0,0 +1,77 @@
%global packname sourcetools
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.1.7
Release: 1%{?dist}
Summary: Tools for Reading, Tokenizing and Parsing R Code
License: MIT
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
# Here's the R view of the dependencies world:
# Depends:
# Imports:
# Suggests: R-testthat
# LinkingTo:
# Enhances:
Suggests: R-testthat
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-testthat
%description
Tools for the reading and tokenization of R code. The 'sourcetools' package
provides both an R and C++ interface for the tokenization of R code, and
helpers for interacting with the tokenized representation of R code.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for %{name}.
%prep
%setup -q -c -n %{packname}
%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 -f %{buildroot}%{rlibdir}/R.css
%check
export LANG=C.UTF-8
%{_bindir}/R CMD check %{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
%license %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%dir %{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/libs/%{packname}.so
%files devel
%{rlibdir}/%{packname}/include
%changelog
* Tue Apr 24 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.1.7-1
- initial package for Fedora

View File

@ -1,3 +0,0 @@
# R-sourcetools
The R-sourcetools package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (sourcetools_0.1.7.tar.gz) = 8446aec2a22046044a886c16b752f1846ba8e24b07fbce23678ca324536b6cc19acb795eb381491712c2bd913f891518911b48f37c0a4bd47aad12e57f6eb31d