1 %define fversion %(echo %{version} |tr r -)
2 %define modulename fastcluster
3 Summary: Fast hierarchical clustering routines for R and Python
4 Name: R-cran-%{modulename}
8 Group: Applications/Math
9 Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
10 # Source0-md5: 9c2ffff654e574237c4c72b5d3fa60bf
11 URL: http://cran.fhcrc.org/web/packages/fastcluster/index.html
12 BuildRequires: R >= 2.8.1
13 Requires(post,postun): R >= 2.8.1
14 Requires(post,postun): perl-base
15 Requires(post,postun): textutils
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This is a two-in-one package which provides interfaces to both R and
21 Python. It implements fast hierarchical, agglomerative clustering
22 routines. Part of the functionality is designed as drop-in replacement
23 for existing routines: “linkage” in the SciPy package
24 “scipy.cluster.hierarchy”, “hclust” in R's “stats” package, and the
25 “flashClust” package. It provides the same functionality with the
26 benefit of a much faster implementation. Moreover, there are
27 memory-saving routines for clustering of vector data, which go beyond
28 what the existing packages provide. For information on how to install
29 the Python files, see the file INSTALL in the source distribution.
35 R CMD build %{modulename}
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
40 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
47 %doc %{modulename}/DESCRIPTION
48 %{_libdir}/R/library/%{modulename}