From 846ca73ddb6908fca3406d350a612fcf5ccb2a8d Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 25 Apr 2018 17:14:02 -0400 Subject: [PATCH] Initial import (#1571590). --- .gitignore | 1 + R-sourcetools.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 -- sources | 1 + 4 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 R-sourcetools.spec delete mode 100644 README.md create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d2bf71 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sourcetools_0.1.7.tar.gz diff --git a/R-sourcetools.spec b/R-sourcetools.spec new file mode 100644 index 0000000..a3b1d70 --- /dev/null +++ b/R-sourcetools.spec @@ -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 - 0.1.7-1 +- initial package for Fedora diff --git a/README.md b/README.md deleted file mode 100644 index d10caec..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# R-sourcetools - -The R-sourcetools package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..7e51fcb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sourcetools_0.1.7.tar.gz) = 8446aec2a22046044a886c16b752f1846ba8e24b07fbce23678ca324536b6cc19acb795eb381491712c2bd913f891518911b48f37c0a4bd47aad12e57f6eb31d