70 lines
1.8 KiB
RPMSpec
70 lines
1.8 KiB
RPMSpec
%global packname RhpcBLASctl
|
|
%global packver 0.20-137
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
Name: R-%{packname}
|
|
Version: 0.20.137
|
|
Release: 2%{?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
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.137-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Wed Jun 3 2020 Tom Callaway <spot@fedoraproject.org> - 0.20.137-1
|
|
- update to 0.20-137, rebuild for R 4
|
|
|
|
* Wed Feb 26 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.20.17-1
|
|
- initial package for Fedora
|