%global packname abind %global packver 1.1 %global packrel 0 Name: R-%{packname} Version: %{packver}.%{packrel} Release: 6%{?dist} Summary: Combine multi-dimensional arrays Group: Applications/Productivity License: LGPLv2+ URL: http://cran.r-project.org/web/packages/abind/index.html Source0: http://cran.r-project.org/src/contrib/%{packname}_%{packver}-%{packrel}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: R-core BuildRequires: R-devel >= 2.5.0 %description Combine multi-dimensional arrays. This is a generalization of cbind and rbind. Takes a sequence of vectors, matrices, or arrays and produces a single array of the same or higher dimension. %prep %setup -c -q -n %{packname} %build %install %{__rm} -rf %{buildroot} mkdir -p %{buildroot}%{_datadir}/R/library R CMD INSTALL %{packname} -l %{buildroot}%{_datadir}/R/library # Clean up in advance of check test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) %{__rm} -rf %{buildroot}%{_datadir}/R/library/R.css %check %{_bindir}/R CMD check %{packname} %clean %{__rm} -rf %{buildroot} %post %{_R_make_search_index} %postun %{_R_make_search_index} %files %defattr(-, root, root, -) #%{_datadir}/R/library/%{packname} %dir %{_datadir}/R/library/%{packname} %doc %{_datadir}/R/library/%{packname}/html %doc %{_datadir}/R/library/%{packname}/DESCRIPTION %{_datadir}/R/library/%{packname}/INDEX %{_datadir}/R/library/%{packname}/Meta %{_datadir}/R/library/%{packname}/R %{_datadir}/R/library/%{packname}/help %changelog * Thu Jan 21 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.0-6 - fix FTBFS * Tue Aug 11 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.0-5 - fix versioning * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Jan 7 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.1-2 - BuildRequires: R-devel rather than just R * Sun Oct 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1-1 - initial package for Fedora