[packages/R-cran-fastcluster] - new

baggins baggins at pld-linux.org
Fri Nov 29 12:45:59 CET 2013


commit 232883c78f63c9a13b37a3a93fc6c023957c2bd9
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Nov 29 12:45:46 2013 +0100

    - new

 R-cran-fastcluster.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
---
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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/R-cran-fastcluster.git/commitdiff/232883c78f63c9a13b37a3a93fc6c023957c2bd9



More information about the pld-cvs-commit mailing list