[pkg-java] r7878 - in trunk/commons-math: . debian debian/patches
drazzib-guest at alioth.debian.org
drazzib-guest at alioth.debian.org
Sun Jan 25 17:55:51 UTC 2009
Author: drazzib-guest
Date: 2009-01-25 17:55:51 +0000 (Sun, 25 Jan 2009)
New Revision: 7878
Added:
trunk/commons-math/debian/
trunk/commons-math/debian/changelog
trunk/commons-math/debian/compat
trunk/commons-math/debian/control
trunk/commons-math/debian/copyright
trunk/commons-math/debian/libcommons-math-java-doc.doc-base
trunk/commons-math/debian/libcommons-math-java-doc.docs
trunk/commons-math/debian/patches/
trunk/commons-math/debian/patches/00list
trunk/commons-math/debian/patches/01_no_download_during_build.dpatch
trunk/commons-math/debian/patches/02_no_tests_on_build.dpatch
trunk/commons-math/debian/patches/03_define_source_target_class_version.dpatch
trunk/commons-math/debian/rules
trunk/commons-math/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk
Property changes on: trunk/commons-math/debian
___________________________________________________________________
Name: mergeWithUpstream
+ 1
Added: trunk/commons-math/debian/changelog
===================================================================
--- trunk/commons-math/debian/changelog (rev 0)
+++ trunk/commons-math/debian/changelog 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,5 @@
+commons-math (1.2-1) unstable; urgency=low
+
+ * Initial release. (Closes: #506987)
+
+ -- Damien Raude-Morvan <drazzib at drazzib.com> Sat, 18 Oct 2008 22:23:35 +0200
Added: trunk/commons-math/debian/compat
===================================================================
--- trunk/commons-math/debian/compat (rev 0)
+++ trunk/commons-math/debian/compat 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1 @@
+5
Added: trunk/commons-math/debian/control
===================================================================
--- trunk/commons-math/debian/control (rev 0)
+++ trunk/commons-math/debian/control 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,75 @@
+Source: commons-math
+Maintainer: Damien Raude-Morvan <drazzib at drazzib.com>
+Standards-Version: 3.8.0
+Section: libs
+Priority: optional
+Build-Depends: openjdk-6-jdk, ant, debhelper (>= 5), cdbs, dpatch
+Build-Depends-Indep: libcommons-discovery-java, junit, ant-optional
+Homepage: http://commons.apache.org/math/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/commons-math
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/commons-math
+
+Package: libcommons-math-java
+Architecture: all
+Section: libs
+Depends: ${misc:Depends}, openjdk-6-jre-headless | java2-runtime-headless, libcommons-discovery-java
+Description: Java lightweight mathematics and statistics components
+ Commons Math is a Java library of lightweight, self-contained mathematics
+ and statistics components.
+ .
+ Commons Math is made up of a small set of math/stat utilities addressing
+ programming problems like the ones in the list below:
+ - Computing means, variances and other summary statistics for a list of
+ numbers
+ - Fitting a line to a set of data points using linear regression
+ - Finding a smooth curve that passes through a collection of points
+ (interpolation)
+ - Fitting a parametric model to a set of measurements using least-squares
+ methods
+ - Solving equations involving real-valued functions (i.e. root-finding)
+ - Solving systems of linear equations
+ - Solving Ordinary Differential Equations
+ - Minimizing multi-dimensional functions
+ - Generating random numbers with more restrictions (e.g distribution, range)
+ than what is possible using the JDK
+ - Generating random samples and/or datasets that are "like" the data in an
+ input file
+ - Performing statistical significance tests
+ - Miscellaneous mathematical functions such as factorials, binomial
+ coefficients and "special functions" (e.g. gamma, beta functions)
+ .
+ This is a part of the Apache Commons Project.
+
+Package: libcommons-math-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Suggests: libcommons-math-java
+Description: Java lightweight mathematics and statistics components - documentation
+ Commons Math is a Java library of lightweight, self-contained mathematics
+ and statistics components.
+ .
+ Commons Math is made up of a small set of math/stat utilities addressing
+ programming problems like the ones in the list below:
+ - Computing means, variances and other summary statistics for a list of
+ numbers
+ - Fitting a line to a set of data points using linear regression
+ - Finding a smooth curve that passes through a collection of points
+ (interpolation)
+ - Fitting a parametric model to a set of measurements using least-squares
+ methods
+ - Solving equations involving real-valued functions (i.e. root-finding)
+ - Solving systems of linear equations
+ - Solving Ordinary Differential Equations
+ - Minimizing multi-dimensional functions
+ - Generating random numbers with more restrictions (e.g distribution, range)
+ than what is possible using the JDK
+ - Generating random samples and/or datasets that are "like" the data in an
+ input file
+ - Performing statistical significance tests
+ - Miscellaneous mathematical functions such as factorials, binomial
+ coefficients and "special functions" (e.g. gamma, beta functions)
+ .
+ This is a part of the Apache Commons Project.
+ .
+ This package provides the API documentation for Commons Math.
Added: trunk/commons-math/debian/copyright
===================================================================
--- trunk/commons-math/debian/copyright (rev 0)
+++ trunk/commons-math/debian/copyright 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,126 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=238
+Upstream-Name: Commons Math
+Upstream-Maintainer: The Apache Software Foundation
+Upstream-Source: http://commons.apache.org/math/
+
+Files: *
+Copyright: Copyright 2001-2008 The Apache Software Foundation
+License: Apache-2.0
+ On Debian GNU/Linux system you can find the complete text of the
+ Apache-2.0 license in `/usr/share/common-licenses/Apache-2.0'
+
+Files: src/java/org/apache/commons/math/ode/GraggBulirschStoerStepInterpolator.java, src/java/org/apache/commons/math/ode/GraggBulirschStoerIntegrator.java
+Copyright: Copyright (c) 2004, Ernst Hairer
+License: Apache-2.0 | other
+ On Debian GNU/Linux system you can find the complete text of the
+ Apache-2.0 license in `/usr/share/common-licenses/Apache-2.0'
+
+ This implementation is basically a reimplementation in Java of the
+ <http://www.unige.ch/math/folks/hairer/prog/nonstiff/odex.f>
+ fortran code by E. Hairer and G. Wanner. The redistribution policy
+ for this code is available <a
+ <http://www.unige.ch/~hairer/prog/licence.txt>, for
+ convenience, it is reproduced below.
+
+ ---------- http://www.unige.ch/~hairer/prog/licence.txt ----------
+ Copyright (c) 2004, Ernst Hairer
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ ---------- http://www.unige.ch/~hairer/prog/licence.txt ----------
+
+Files: src/java/org/apache/commons/math/estimation/LevenbergMarquardtEstimator.java
+Copyright: Copyright Notice (1999) University of Chicago
+License: Apache-2.0 | other
+ On Debian GNU/Linux system you can find the complete text of the
+ Apache-2.0 license in `/usr/share/common-licenses/Apache-2.0'
+
+ The resolution engine is a simple translation of the MINPACK
+ <http://www.netlib.org/minpack/lmder.f> routine with minor
+ changes. The changes include the over-determined resolution and the Q.R.
+ decomposition which has been rewritten following the algorithm described in the
+ P. Lascaux and R. Theodor book "Analyse numérique matricielle
+ appliquée à l'art de l'ingénieur", Masson 1986. The
+ redistribution policy for MINPACK is available
+ <http://www.netlib.org/minpack/disclaimer>, for convenience, it
+ is reproduced below.
+
+ ---------- http://www.netlib.org/minpack/disclaimer ----------
+ Minpack Copyright Notice (1999) University of Chicago. All rights reserved
+
+ Redistribution and use in source and binary forms, with or
+ without modification, are permitted provided that the
+ following conditions are met:
+
+ 1. Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the following
+ disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+
+ 3. The end-user documentation included with the
+ redistribution, if any, must include the following
+ acknowledgment:
+
+ "This product includes software developed by the
+ University of Chicago, as Operator of Argonne National
+ Laboratory.
+
+ Alternately, this acknowledgment may appear in the software
+ itself, if and wherever such third-party acknowledgments
+ normally appear.
+
+ 4. WARRANTY DISCLAIMER. THE SOFTWARE IS SUPPLIED "AS IS"
+ WITHOUT WARRANTY OF ANY KIND. THE COPYRIGHT HOLDER, THE
+ UNITED STATES, THE UNITED STATES DEPARTMENT OF ENERGY, AND
+ THEIR EMPLOYEES: (1) DISCLAIM ANY WARRANTIES, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE
+ OR NON-INFRINGEMENT, (2) DO NOT ASSUME ANY LEGAL LIABILITY
+ OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR
+ USEFULNESS OF THE SOFTWARE, (3) DO NOT REPRESENT THAT USE OF
+ THE SOFTWARE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS, (4)
+ DO NOT WARRANT THAT THE SOFTWARE WILL FUNCTION
+ UNINTERRUPTED, THAT IT IS ERROR-FREE OR THAT ANY ERRORS WILL
+ BE CORRECTED.
+
+ 5. LIMITATION OF LIABILITY. IN NO EVENT WILL THE COPYRIGHT
+ HOLDER, THE UNITED STATES, THE UNITED STATES DEPARTMENT OF
+ ENERGY, OR THEIR EMPLOYEES: BE LIABLE FOR ANY INDIRECT,
+ INCIDENTAL, CONSEQUENTIAL, SPECIAL OR PUNITIVE DAMAGES OF
+ ANY KIND OR NATURE, INCLUDING BUT NOT LIMITED TO LOSS OF
+ PROFITS OR LOSS OF DATA, FOR ANY REASON WHATSOEVER, WHETHER
+ SUCH LIABILITY IS ASSERTED ON THE BASIS OF CONTRACT, TORT
+ (INCLUDING NEGLIGENCE OR STRICT LIABILITY), OR OTHERWISE,
+ EVEN IF ANY OF SAID PARTIES HAS BEEN WARNED OF THE
+ POSSIBILITY OF SUCH LOSS OR DAMAGES.
+ ---------- http://www.netlib.org/minpack/disclaimer ----------
+
+Files: debian/*
+Copyright: Copyright (C) 2008, Damien Raude-Morvan <drazzib at drazzib.com>
+License: BSD
+ On Debian GNU/Linux system you can find the complete text of the
+ BSD license in `/usr/share/common-licenses/BSD'.
Added: trunk/commons-math/debian/libcommons-math-java-doc.doc-base
===================================================================
--- trunk/commons-math/debian/libcommons-math-java-doc.doc-base (rev 0)
+++ trunk/commons-math/debian/libcommons-math-java-doc.doc-base 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,9 @@
+Document: libcommons-math-java-doc
+Title: API Javadoc for libcommons-math
+Author: libcommons-math developers
+Abstract: This is the API Javadoc provided by the libcommons-math library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libcommons-math-java-doc/api/index.html
+Files: /usr/share/doc/libcommons-math-java-doc/api/*
Added: trunk/commons-math/debian/libcommons-math-java-doc.docs
===================================================================
--- trunk/commons-math/debian/libcommons-math-java-doc.docs (rev 0)
+++ trunk/commons-math/debian/libcommons-math-java-doc.docs 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1 @@
+dist/docs/api
\ No newline at end of file
Added: trunk/commons-math/debian/patches/00list
===================================================================
--- trunk/commons-math/debian/patches/00list (rev 0)
+++ trunk/commons-math/debian/patches/00list 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,4 @@
+01_no_download_during_build
+02_no_tests_on_build
+03_define_source_target_class_version
+
Added: trunk/commons-math/debian/patches/01_no_download_during_build.dpatch
===================================================================
--- trunk/commons-math/debian/patches/01_no_download_during_build.dpatch (rev 0)
+++ trunk/commons-math/debian/patches/01_no_download_during_build.dpatch 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,86 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_no_download_during_build.dpatch by Damien Raude-Morvan <drazzib at drazzib.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: build.xml: don't download JAR from internet on 'compile' or 'javadoc' targets.
+
+ at DPATCH@
+diff -urNad trunk~/build.xml trunk/build.xml
+--- trunk~/build.xml 2008-02-18 06:53:39.000000000 +0100
++++ trunk/build.xml 2008-11-03 20:06:41.000000000 +0100
+@@ -36,12 +36,6 @@
+ </property>
+ <property name="proxy.password" value="">
+ </property>
+- <path id="build.classpath">
+- <pathelement location="${libdir}/commons-logging/jars/commons-logging-1.0.3.jar">
+- </pathelement>
+- <pathelement location="${libdir}/commons-discovery/jars/commons-discovery-0.2.jar">
+- </pathelement>
+- </path>
+ <target name="init" description="o Initializes some properties">
+ <mkdir dir="${libdir}">
+ </mkdir>
+@@ -66,7 +60,7 @@
+ </and>
+ </condition>
+ </target>
+- <target name="compile" description="o Compile the code" depends="get-deps">
++ <target name="compile" description="o Compile the code">
+ <mkdir dir="${classesdir}">
+ </mkdir>
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
+@@ -74,8 +68,6 @@
+ <pathelement location="${basedir}/src/java">
+ </pathelement>
+ </src>
+- <classpath refid="build.classpath">
+- </classpath>
+ </javac>
+ <mkdir dir="${classesdir}/META-INF">
+ </mkdir>
+@@ -123,8 +115,6 @@
+ <formatter usefile="false" type="plain">
+ </formatter>
+ <classpath>
+- <path refid="build.classpath">
+- </path>
+ <pathelement path="${testclassesdir}">
+ </pathelement>
+ <pathelement path="${classesdir}">
+@@ -154,8 +144,6 @@
+ </pathelement>
+ </src>
+ <classpath>
+- <path refid="build.classpath">
+- </path>
+ <pathelement path="${classesdir}">
+ </pathelement>
+ </classpath>
+@@ -169,7 +157,7 @@
+ </fileset>
+ </copy>
+ </target>
+- <target name="javadoc" description="o Generate javadoc" depends="get-deps">
++ <target name="javadoc" description="o Generate javadoc">
+ <mkdir dir="${javadocdir}">
+ </mkdir>
+ <tstamp>
+@@ -181,10 +169,6 @@
+ <property name="title" value="Math 1.2-SNAPSHOT API">
+ </property>
+ <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="${basedir}/src/java" packagenames="org.apache.commons.math.*">
+- <classpath>
+- <path refid="build.classpath">
+- </path>
+- </classpath>
+ </javadoc>
+ </target>
+ <target name="get-dep-commons-logging.jar" description="o Download the dependency : commons-logging.jar" unless="commons-logging.jar" depends="init,setProxy,noProxy,get-custom-dep-commons-logging.jar">
+@@ -232,4 +216,4 @@
+ <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar">
+ </unjar>
+ </target>
+-</project>
+\ No newline at end of file
++</project>
Property changes on: trunk/commons-math/debian/patches/01_no_download_during_build.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/commons-math/debian/patches/02_no_tests_on_build.dpatch
===================================================================
--- trunk/commons-math/debian/patches/02_no_tests_on_build.dpatch (rev 0)
+++ trunk/commons-math/debian/patches/02_no_tests_on_build.dpatch 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_no_tests_on_build.dpatch by Damien Raude-Morvan <drazzib at drazzib.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: build.xml: don't run test directly after build
+## DP: as per Java Policy: "Failing tests MUST not lead to a failing build."
+
+ at DPATCH@
+diff -urNad trunk~/build.xml trunk/build.xml
+--- trunk~/build.xml 2008-02-18 06:53:39.000000000 +0100
++++ trunk/build.xml 2008-10-26 19:21:13.000000000 +0100
+@@ -88,7 +88,7 @@
+ </fileset>
+ </copy>
+ </target>
+- <target name="jar" description="o Create the jar" depends="compile,test">
++ <target name="jar" description="o Create the jar" depends="compile">
+ <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
+ </jar>
+ </target>
Property changes on: trunk/commons-math/debian/patches/02_no_tests_on_build.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/commons-math/debian/patches/03_define_source_target_class_version.dpatch
===================================================================
--- trunk/commons-math/debian/patches/03_define_source_target_class_version.dpatch (rev 0)
+++ trunk/commons-math/debian/patches/03_define_source_target_class_version.dpatch 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,30 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_define_source_target_class_version.dpatch by Damien Raude-Morvan <drazzib at drazzib.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: build.xml: force -source AND -target at 1.3 class format version.
+
+ at DPATCH@
+diff -urNad trunk~/build.xml trunk/build.xml
+--- trunk~/build.xml 2008-11-03 20:13:19.000000000 +0100
++++ trunk/build.xml 2008-11-03 20:13:40.000000000 +0100
+@@ -63,7 +63,8 @@
+ <target name="compile" description="o Compile the code">
+ <mkdir dir="${classesdir}">
+ </mkdir>
+- <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
++ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"
++ source="1.3" target="1.3">
+ <src>
+ <pathelement location="${basedir}/src/java">
+ </pathelement>
+@@ -138,7 +139,8 @@
+ <target name="compile-tests" if="Junit.present" depends="junit-present,compile">
+ <mkdir dir="${testclassesdir}">
+ </mkdir>
+- <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
++ <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"
++ source="1.3" target="1.3">
+ <src>
+ <pathelement location="${basedir}/src/test">
+ </pathelement>
Property changes on: trunk/commons-math/debian/patches/03_define_source_target_class_version.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/commons-math/debian/rules
===================================================================
--- trunk/commons-math/debian/rules (rev 0)
+++ trunk/commons-math/debian/rules 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+# Build using OpenJDK 6 because is really to slow
+# at math computation
+JAVA_HOME := /usr/lib/jvm/java-6-openjdk
+ANT_HOME := /usr/share/ant
+
+DEB_JARS := commons-discovery junit ant-junit
+
+DEB_ANT_CLEAN_TARGET := clean
+DEB_ANT_BUILD_TARGET := jar javadoc
+# Use "internal-test" won't fail the build on error
+DEB_ANT_CHECK_TARGET := internal-test
+
+# Per Debian Java Policy, install a versioned JAR and an unversioned symlink
+binary-post-install/lib$(DEB_SOURCE_PACKAGE)-java::
+ dh_install target/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar usr/share/java
+ dh_link usr/share/java/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar usr/share/java/$(DEB_SOURCE_PACKAGE).jar
+
+get-orig-source:
+ uscan --force-download --rename
Property changes on: trunk/commons-math/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/commons-math/debian/watch
===================================================================
--- trunk/commons-math/debian/watch (rev 0)
+++ trunk/commons-math/debian/watch 2009-01-25 17:55:51 UTC (rev 7878)
@@ -0,0 +1,2 @@
+version=3
+http://www.apache.org/dist/commons/math/source/commons-math-(.*)-src.tar.gz
More information about the pkg-java-commits
mailing list