From 232883c78f63c9a13b37a3a93fc6c023957c2bd9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 29 Nov 2013 12:45:46 +0100 Subject: [PATCH 1/1] - new --- R-cran-fastcluster.spec | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 R-cran-fastcluster.spec diff --git a/R-cran-fastcluster.spec b/R-cran-fastcluster.spec new file mode 100644 index 0000000..220a9cd --- /dev/null +++ b/R-cran-fastcluster.spec @@ -0,0 +1,48 @@ +%define fversion %(echo %{version} |tr r -) +%define modulename fastcluster +Summary: Fast hierarchical clustering routines for R and Python +Name: R-cran-%{modulename} +Version: 1.1.11 +Release: 1 +License: GPL v2 +Group: Applications/Math +Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz +# Source0-md5: 9c2ffff654e574237c4c72b5d3fa60bf +URL: http://cran.fhcrc.org/web/packages/fastcluster/index.html +BuildRequires: R >= 2.8.1 +Requires(post,postun): R >= 2.8.1 +Requires(post,postun): perl-base +Requires(post,postun): textutils +Requires: R +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This is a two-in-one package which provides interfaces to both R and +Python. It implements fast hierarchical, agglomerative clustering +routines. Part of the functionality is designed as drop-in replacement +for existing routines: “linkage” in the SciPy package +“scipy.cluster.hierarchy”, “hclust” in R's “stats” package, and the +“flashClust” package. It provides the same functionality with the +benefit of a much faster implementation. Moreover, there are +memory-saving routines for clustering of vector data, which go beyond +what the existing packages provide. For information on how to install +the Python files, see the file INSTALL in the source distribution. + +%prep +%setup -q -c + +%build +R CMD build %{modulename} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ +R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc %{modulename}/DESCRIPTION +%{_libdir}/R/library/%{modulename} -- 2.43.0