]> git.pld-linux.org Git - packages/R-cran-fastcluster.git/blame - R-cran-fastcluster.spec
- new
[packages/R-cran-fastcluster.git] / R-cran-fastcluster.spec
CommitLineData
232883c7
JR
1%define fversion %(echo %{version} |tr r -)
2%define modulename fastcluster
3Summary: Fast hierarchical clustering routines for R and Python
4Name: R-cran-%{modulename}
5Version: 1.1.11
6Release: 1
7License: GPL v2
8Group: Applications/Math
9Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
10# Source0-md5: 9c2ffff654e574237c4c72b5d3fa60bf
11URL: http://cran.fhcrc.org/web/packages/fastcluster/index.html
12BuildRequires: R >= 2.8.1
13Requires(post,postun): R >= 2.8.1
14Requires(post,postun): perl-base
15Requires(post,postun): textutils
16Requires: R
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20This is a two-in-one package which provides interfaces to both R and
21Python. It implements fast hierarchical, agglomerative clustering
22routines. Part of the functionality is designed as drop-in replacement
23for 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
26benefit of a much faster implementation. Moreover, there are
27memory-saving routines for clustering of vector data, which go beyond
28what the existing packages provide. For information on how to install
29the Python files, see the file INSTALL in the source distribution.
30
31%prep
32%setup -q -c
33
34%build
35R CMD build %{modulename}
36
37%install
38rm -rf $RPM_BUILD_ROOT
39install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
40R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
41
42%clean
43rm -rf $RPM_BUILD_ROOT
44
45%files
46%defattr(644,root,root,755)
47%doc %{modulename}/DESCRIPTION
48%{_libdir}/R/library/%{modulename}
This page took 0.083638 seconds and 4 git commands to generate.