initial package

This commit is contained in:
Tom Callaway 2017-06-02 12:00:23 -04:00
parent 4846efde4b
commit 2e6ace8346
3 changed files with 57 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/matrixStats_0.52.2.tar.gz

55
R-matrixStats.spec Normal file
View File

@ -0,0 +1,55 @@
%global packname matrixStats
%global packver 0.52.2
Name: R-%{packname}
Version: %{packver}
Release: 1%{?dist}
Summary: Functions that Apply to Rows and Columns of Matrices (and to Vectors)
Group: Applications/Productivity
License: Artistic 2.0
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: http://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
Requires: R-core >= 3.4.0
BuildRequires: R-devel >= 3.4.0
%description
High-performing functions operating on rows and columns of matrices, e.g.
col / rowMedians(), col / rowRanks(), and col / rowSds(). Functions optimized
per data type and for subsetted calculations such that both memory usage and
processing time is minimized. There are also optimized vector-based methods,
e.g. binMeans(), madDiff() and weightedMedian().
%prep
%setup -c -q -n %{packname}
sed -i "s/\r//g" %{packname}/NEWS
%build
%install
mkdir -p %{buildroot}%{_libdir}/R/library
R CMD INSTALL %{packname} -l %{buildroot}%{_libdir}/R/library
# Clean up in advance of check
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
%{__rm} -rf %{buildroot}%{_libdir}/R/library/R.css
%check
# Too many missing deps
# %%{_bindir}/R CMD check %%{packname}
%files
%dir %{_libdir}/R/library/%{packname}
%doc %{_libdir}/R/library/%{packname}/html
%{_libdir}/R/library/%{packname}/DESCRIPTION
%doc %{_libdir}/R/library/%{packname}/NEWS
%{_libdir}/R/library/%{packname}/INDEX
%{_libdir}/R/library/%{packname}/libs/
%{_libdir}/R/library/%{packname}/Meta
%{_libdir}/R/library/%{packname}/NAMESPACE
%{_libdir}/R/library/%{packname}/R
%{_libdir}/R/library/%{packname}/benchmarking
%{_libdir}/R/library/%{packname}/doc
%{_libdir}/R/library/%{packname}/help
%changelog
* Wed May 31 2017 Tom Callaway <spot@fedoraproject.org> - 0.52.2-1
- initial package

View File

@ -0,0 +1 @@
SHA512 (matrixStats_0.52.2.tar.gz) = 7046497f028fe7c7ad6428ad078b87e94c78801725bf4af7c74232ae70888bfbda9ba7653302b395e91fd9fc38537dcb7c4ae1cf070db8646f0c877c6ab3329a