From 32d1714184c29d4163f6dadb4f96ac8a6ab7467b Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 28 Feb 2020 17:15:33 -0500 Subject: [PATCH] Initial import (#1807409). --- .gitignore | 1 + R-RhpcBLASctl.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+) create mode 100644 .gitignore create mode 100644 R-RhpcBLASctl.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b6ccbd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/RhpcBLASctl_0.20-17.tar.gz diff --git a/R-RhpcBLASctl.spec b/R-RhpcBLASctl.spec new file mode 100644 index 0000000..37274d3 --- /dev/null +++ b/R-RhpcBLASctl.spec @@ -0,0 +1,63 @@ +%global packname RhpcBLASctl +%global packver 0.20-17 +%global rlibdir %{_libdir}/R/library + +Name: R-%{packname} +Version: 0.20.17 +Release: 1%{?dist} +Summary: Control the Number of Threads on BLAS + +License: AGPLv3 +URL: https://CRAN.R-project.org/package=%{packname} +Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz + +# Here's the R view of the dependencies world: +# Depends: +# Imports: +# Suggests: +# LinkingTo: +# Enhances: + +BuildRequires: R-devel +BuildRequires: tex(latex) + +%description +Control the number of threads on BLAS (aka GotoBLAS, OpenBLAS, ACML, BLIS and +MKL). And possible to control the number of threads in OpenMP. Get a number of +logical cores and physical cores if feasible. + + +%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 +%{rlibdir}/%{packname}/INDEX +%{rlibdir}/%{packname}/NAMESPACE +%{rlibdir}/%{packname}/Meta +%{rlibdir}/%{packname}/R +%{rlibdir}/%{packname}/help +%dir %{rlibdir}/%{packname}/libs +%{rlibdir}/%{packname}/libs/%{packname}.so + + +%changelog +* Wed Feb 26 2020 Elliott Sales de Andrade - 0.20.17-1 +- initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..22fafa5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (RhpcBLASctl_0.20-17.tar.gz) = f4bd77ea71653269a20e88a95595dd834b07ce5cd6f615696d238120eb283a37041c38e22f855db90b0f1ce243483fbf573dc68f4973110dda40688da392c0c5