From 4031877bd6c2a2982f9d65d89207c4cfca4c60b6 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 9 Nov 2017 17:48:46 -0500 Subject: [PATCH] Initial import (#1511395). --- .gitignore | 1 + R-backports.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 --- sources | 1 + 4 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 R-backports.spec delete mode 100644 README.md create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2773aee --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/backports_1.1.1.tar.gz diff --git a/R-backports.spec b/R-backports.spec new file mode 100644 index 0000000..0621901 --- /dev/null +++ b/R-backports.spec @@ -0,0 +1,67 @@ +%global packname backports +%global rlibdir %{_libdir}/R/library + +Name: R-%{packname} +Version: 1.1.1 +Release: 1%{?dist} +Summary: Reimplementations of Functions Introduced Since R-3.0.0 + +License: GPLv2 +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: R-utils +# Suggests: +# LinkingTo: +# Enhances: + +Requires: R-utils + +BuildRequires: R-devel tex(latex) +BuildRequires: R-utils + +%description +Implementations of functions which have been introduced in R since version +3.0.0. The backports are conditionally exported which results in R +resolving the function names to the version shipped with R (if available) +and uses the implemented backports as fallback. This way package +developers can make use of the new functions without worrying about the +minimum required R version. + + +%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 +%{_bindir}/R CMD check %{packname} + + +%files +%dir %{rlibdir}/%{packname} +%doc %{rlibdir}/%{packname}/html +%{rlibdir}/%{packname}/DESCRIPTION +%doc %{rlibdir}/%{packname}/NEWS.md +%{rlibdir}/%{packname}/INDEX +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/help +%{rlibdir}/%{packname}/libs + + +%changelog +* Thu Nov 09 2017 Elliott Sales de Andrade 1.1.1-1 +- initial package for Fedora diff --git a/README.md b/README.md deleted file mode 100644 index fa5d3a3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# R-backports - -The R-backports package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..90ca413 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (backports_1.1.1.tar.gz) = 4297fdffdad80a0a42075f4058dbd2b887261aa25a9888ef8aecf18db439a58e7b59be225dbe5584a72352fa9534a0cc017e92c424d7c3eb8ed2e2da552a9fa5