[med-svn] r21275 - trunk/packages/R/r-cran-fastcluster/trunk/debian

Andreas Tille tille at moszumanska.debian.org
Sun Jan 24 17:28:48 UTC 2016


Author: tille
Date: 2016-01-24 17:28:42 +0000 (Sun, 24 Jan 2016)
New Revision: 21275

Added:
   trunk/packages/R/r-cran-fastcluster/trunk/debian/python-fastcluster.docs
   trunk/packages/R/r-cran-fastcluster/trunk/debian/python3-fastcluster.docs
   trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.docs
   trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.install
   trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.links
Removed:
   trunk/packages/R/r-cran-fastcluster/trunk/debian/docs
   trunk/packages/R/r-cran-fastcluster/trunk/debian/links
Modified:
   trunk/packages/R/r-cran-fastcluster/trunk/debian/changelog
   trunk/packages/R/r-cran-fastcluster/trunk/debian/control
   trunk/packages/R/r-cran-fastcluster/trunk/debian/rules
Log:
Add Python modules


Modified: trunk/packages/R/r-cran-fastcluster/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/changelog	2016-01-24 13:31:52 UTC (rev 21274)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/changelog	2016-01-24 17:28:42 UTC (rev 21275)
@@ -1,3 +1,11 @@
+r-cran-fastcluster (1.1.16-2) UNRELEASED; urgency=medium
+
+  * Create Python modules as well (Thanks for the hint to Gard Spreemann
+    <gspreemann at gmail.com>)
+    Closes:  #808743
+
+ -- Andreas Tille <tille at debian.org>  Sun, 24 Jan 2016 17:24:56 +0100
+
 r-cran-fastcluster (1.1.16-1) unstable; urgency=medium
 
   * New upstream version

Modified: trunk/packages/R/r-cran-fastcluster/trunk/debian/control
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/control	2016-01-24 13:31:52 UTC (rev 21274)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/control	2016-01-24 17:28:42 UTC (rev 21275)
@@ -2,11 +2,14 @@
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Andreas Tille <tille at debian.org>
 Section: gnu-r
-Testsuite: autopkgtest
 Priority: optional
 Build-Depends: debhelper (>= 9),
-               cdbs,
-               r-base-dev
+               dh-python,
+               r-base-dev,
+               python-dev,
+               python-numpy,
+               python3-dev,
+               python3-numpy
 Standards-Version: 3.9.6
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-fastcluster/trunk/
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-fastcluster/trunk/
@@ -15,6 +18,7 @@
 Package: r-cran-fastcluster
 Architecture: any
 Depends: ${shlibs:Depends},
+         ${misc:Depends},
          ${R:Depends}
 Description: Fast hierarchical clustering routines for GNU R
  Fastcluster implements fast hierarchical, agglomerative clustering
@@ -26,3 +30,54 @@
  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.
+
+Package: python-fastcluster
+Architecture: any
+Section: python
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+         ${python:Depends}
+Description: Fast hierarchical clustering routines for Python
+ This library provides Python functions for hierarchical
+ clustering. It generates hierarchical clusters from distance matrices
+ or from vector data.
+ .
+ Part of this module is intended to replace the functions
+ .
+     linkage, single, complete, average, weighted, centroid, median, ward
+ .
+ in the module scipy.cluster.hierarchy with the same functionality but
+ much faster algorithms. Moreover, the function 'linkage_vector'
+ provides memory-efficient clustering for vector data.
+ .
+ The interface is very similar to MATLAB's Statistics Toolbox API to
+ make code easier to port from MATLAB to Python/Numpy. The core
+ implementation of this library is in C++ for efficiency.
+ .
+ This package provides the package's Python interface.
+
+Package: python3-fastcluster
+Architecture: any
+Section: python
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+         ${python3:Depends}
+Description: Fast hierarchical clustering routines for Python 3
+ This library provides Python functions for hierarchical
+ clustering. It generates hierarchical clusters from distance matrices
+ or from vector data.
+ .
+ Part of this module is intended to replace the functions
+ .
+     linkage, single, complete, average, weighted, centroid, median, ward
+ .
+ in the module scipy.cluster.hierarchy with the same functionality but
+ much faster algorithms. Moreover, the function 'linkage_vector'
+ provides memory-efficient clustering for vector data.
+ .
+ The interface is very similar to MATLAB's Statistics Toolbox API to
+ make code easier to port from MATLAB to Python/Numpy. The core
+ implementation of this library is in C++ for efficiency.
+ .
+ This package provides the package's Python 3 interface.
+

Deleted: trunk/packages/R/r-cran-fastcluster/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/docs	2016-01-24 13:31:52 UTC (rev 21274)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/docs	2016-01-24 17:28:42 UTC (rev 21275)
@@ -1,3 +0,0 @@
-debian/README.test
-debian/tests/run-unit-test
-tests

Deleted: trunk/packages/R/r-cran-fastcluster/trunk/debian/links
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/links	2016-01-24 13:31:52 UTC (rev 21274)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/links	2016-01-24 17:28:42 UTC (rev 21275)
@@ -1 +0,0 @@
-usr/lib/R/site-library/fastcluster/doc/fastcluster.pdf	usr/share/doc/r-cran-fastcluster/fastcluster.pdf

Added: trunk/packages/R/r-cran-fastcluster/trunk/debian/python-fastcluster.docs
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/python-fastcluster.docs	                        (rev 0)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/python-fastcluster.docs	2016-01-24 17:28:42 UTC (rev 21275)
@@ -0,0 +1,2 @@
+README
+NEWS
\ No newline at end of file

Added: trunk/packages/R/r-cran-fastcluster/trunk/debian/python3-fastcluster.docs
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/python3-fastcluster.docs	                        (rev 0)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/python3-fastcluster.docs	2016-01-24 17:28:42 UTC (rev 21275)
@@ -0,0 +1 @@
+link python-fastcluster.docs
\ No newline at end of file


Property changes on: trunk/packages/R/r-cran-fastcluster/trunk/debian/python3-fastcluster.docs
___________________________________________________________________
Added: svn:special
   + *

Added: trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.docs
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.docs	                        (rev 0)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.docs	2016-01-24 17:28:42 UTC (rev 21275)
@@ -0,0 +1,5 @@
+debian/README.test
+debian/tests/run-unit-test
+tests
+README
+NEWS

Added: trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.install
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.install	                        (rev 0)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.install	2016-01-24 17:28:42 UTC (rev 21275)
@@ -0,0 +1 @@
+tmp-install/fastcluster/ /usr/lib/R/site-library/
\ No newline at end of file

Added: trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.links
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.links	                        (rev 0)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/r-cran-fastcluster.links	2016-01-24 17:28:42 UTC (rev 21275)
@@ -0,0 +1 @@
+usr/lib/R/site-library/fastcluster/doc/fastcluster.pdf	usr/share/doc/r-cran-fastcluster/fastcluster.pdf

Modified: trunk/packages/R/r-cran-fastcluster/trunk/debian/rules
===================================================================
--- trunk/packages/R/r-cran-fastcluster/trunk/debian/rules	2016-01-24 13:31:52 UTC (rev 21274)
+++ trunk/packages/R/r-cran-fastcluster/trunk/debian/rules	2016-01-24 17:28:42 UTC (rev 21275)
@@ -1,7 +1,43 @@
 #!/usr/bin/make -f
-# 							-*- makefile -*-
 
-include /usr/share/R/debian/r-cran.mk
+DH_VERBOSE=1
 
-install/$(package)::
-	rm -rf debian/$(package)/usr/lib/R/site-library/$(cranName)/LICENSE
+export PYBUILD_NAME=fastcluster
+
+cranName=fastcluster
+R_PATH=/usr/lib/R/site-library
+R_NAME=r-cran-$(cranName)
+
+# Taken from CDBS file for R.
+rversion	:= $(shell dpkg-query -W -f='$${Version}' r-base-dev)
+rapiversion	:= $(shell dpkg-query -W -f='$${Provides}' r-base-core | grep -o 'r-api[^, ]*')
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild --sourcedirectory=src/python 
+
+override_dh_auto_clean:
+	dh_auto_clean
+
+	# Parts of the following are taken from the CDBS file for F.
+	if test -d src; then				\
+		find src -regex ".*\.o" |               \
+	        xargs --no-run-if-empty -r rm;          \
+		find src src -regex ".*\.so" |          \
+		xargs --no-run-if-empty -r rm;		\
+	fi
+	rm -f config.log config.status
+	rm -rf tmp-install
+
+override_dh_auto_build:
+	dh_auto_build
+
+	mkdir -p tmp-install
+	R CMD INSTALL -l tmp-install --clean .
+
+
+override_dh_install:
+	#dh_numpy -p$(PY_NAME)
+	dh_numpy3
+	echo "R:Depends=r-base-core (>= ${rversion}), ${rapiversion}" >> debian/$(R_NAME).substvars
+	dh_install
+	rm -rf debian/$(R_NAME)/usr/lib/R/site-library/$(cranName)/LICENSE




More information about the debian-med-commit mailing list