%define packrel 1 %define packname Matrix Summary: R module, Classes etc. for dense and sparse matrices and matrix ops Name: R-%{packname} Version: 0.99875 Release: 1%{?dist} License: Distributable #GPL version 2 or later. # This R package includes libraries CHOLMOD, AMD, COLAMD and CSparse # from the University of Florida sparse matrix library maintained by Tim # Davis. All sections of that code are covered by the GPL or LGPL # licenses. See the directory doc/UFsparse for details. Group: Applications/Engineering Source0: ftp://cran.r-project.org/pub/R/contrib/main/%{packname}_%{version}-%{packrel}.tar.gz URL: http://cran.r-project.org/contrib/main/Descriptions/Matrix.html BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: R >= 2.5.0 BuildRequires: R >= 2.5.0, tetex-latex, gcc-gfortran %description An R module that provides classes and methods for dense and sparse matrices and operations on them using Lapack, CSparse and CHOLMOD. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel An R module that provides classes and methods for dense and sparse matrices and operations on them using Lapack, CSparse and CHOLMOD. The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n %{packname} %build %install %{__rm} -rf %{buildroot} mkdir -p %{buildroot}%{_libdir}/R/library ( cd .. && R CMD INSTALL %{packname} -l %{buildroot}%{_libdir}/R/library ) %{__rm} -f %{buildroot}%{_libdir}/R/library/R.css # build file list for non-devel package ( cd %{buildroot} && find .%{_libdir}/R/library/%{packname} -print | sort | cut -c 2- | while read f; do [ -d "./$f" ] && echo -n "%dir "; echo $f; done ) | %{__grep} -v -P '/R/library/%{packname}/include' > filelist.nodevel || : %check cd .. && %{_bindir}/R CMD check %{packname} %clean %{__rm} -rf %{buildroot} %post %{__cat} %{_libdir}/R/library/*/CONTENTS > %{_libdir}/R/doc/html/search/index.txt || : %postun %{__cat} %{_libdir}/R/library/*/CONTENTS > %{_libdir}/R/doc/html/search/index.txt || : %files -f filelist.nodevel %defattr(-, root, root, -) %doc DESCRIPTION %files devel %defattr(-,root,root,-) %{_libdir}/R/library/%{packname}/include %changelog * Wed May 23 2007 Tom Moertel - 0.99875-1 - Minor fixes per Fedora package-submission review - Updated for Matrix 0.99875 * Wed Apr 25 2007 Tom Moertel - 0.9975-1 - Initial package creation (based on José Matos specs)