64 lines
1.5 KiB
RPMSpec
64 lines
1.5 KiB
RPMSpec
|
%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 <quantum.analyst@gmail.com> - 0.20.17-1
|
||
|
- initial package for Fedora
|