]>
Commit | Line | Data |
---|---|---|
232883c7 JR |
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} | |
5 | Version: 1.1.11 | |
6 | Release: 1 | |
7 | License: GPL v2 | |
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 | |
16 | Requires: R | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
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. | |
30 | ||
31 | %prep | |
32 | %setup -q -c | |
33 | ||
34 | %build | |
35 | R CMD build %{modulename} | |
36 | ||
37 | %install | |
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/ | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc %{modulename}/DESCRIPTION | |
48 | %{_libdir}/R/library/%{modulename} |