[pkg-java] r6889 - in tags/easymock: . 2.4+ds1-1 2.4+ds1-1/debian
janpascal-guest at alioth.debian.org
janpascal-guest at alioth.debian.org
Wed Aug 13 08:09:18 UTC 2008
Author: janpascal-guest
Date: 2008-08-13 08:09:16 +0000 (Wed, 13 Aug 2008)
New Revision: 6889
Added:
tags/easymock/2.4+ds1-1/
tags/easymock/2.4+ds1-1/build.xml
tags/easymock/2.4+ds1-1/debian/changelog
tags/easymock/2.4+ds1-1/debian/control
tags/easymock/2.4+ds1-1/debian/copyright
tags/easymock/2.4+ds1-1/debian/libeasymock-java-doc.doc-base
tags/easymock/2.4+ds1-1/debian/rules
Removed:
tags/easymock/2.4+ds1-1/build.xml
tags/easymock/2.4+ds1-1/debian/changelog
tags/easymock/2.4+ds1-1/debian/control
tags/easymock/2.4+ds1-1/debian/copyright
tags/easymock/2.4+ds1-1/debian/libeasymock-java-doc.doc-base
tags/easymock/2.4+ds1-1/debian/rules
Log:
Tagged easymock release 2.4+ds1-1
Copied: tags/easymock/2.4+ds1-1 (from rev 5587, trunk/easymock)
Property changes on: tags/easymock/2.4+ds1-1
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: tags/easymock/2.4+ds1-1/build.xml
===================================================================
--- trunk/easymock/build.xml 2008-02-01 09:43:52 UTC (rev 5587)
+++ tags/easymock/2.4+ds1-1/build.xml 2008-08-13 08:09:16 UTC (rev 6889)
@@ -1,74 +0,0 @@
-<project name="easymock" default="dist" basedir=".">
- <description>
- build file for easymock
- </description>
- <!-- set global properties for this build -->
- <property name="src" location="src"/>
- <property name="dist" location="dist"/>
- <property name="build" location="build"/>
- <property name="build.test" location="tests-build"/>
- <property name="javadoc" location="api"/>
- <property name="jarfile" location="${dist}/easymock-2.3.jar"/>
-
- <target name="init">
- <!-- Create the build directory structure used by compile -->
- <mkdir dir="${build}"/>
- <mkdir dir="${build.test}"/>
- <mkdir dir="${javadoc}"/>
- <mkdir dir="${dist}"/>
- </target>
-
- <target name="compile" depends="init"
- description="compile the source" >
- <!-- Compile the java code from ${src} into ${build} -->
- <javac srcdir="${src}" destdir="${build}"/>
- </target>
-
- <target name="compile-tests" depends="init,compile"
- description="compile the unit tests" >
- <javac srcdir="tests" destdir="${build.test}" classpath="${build}"/>
- </target>
-
- <target name="test" depends="init,compile,compile-tests" description="run unit tests">
- <junit printsummary="yes" haltonfailure="yes" haltonerror="yes">
- <classpath>
- <pathelement location="${build}"/>
- <pathelement location="${build.test}"/>
- </classpath>
-
- <formatter type="plain" usefile="false"/>
-
- <batchtest>
- <fileset dir="tests">
- <include name="**/*Test*.java"/>
- <exclude name="**/AllTests.java"/>
- </fileset>
- </batchtest>
- </junit>
- </target>
-
- <target name="javadoc" depends="init" description="generate api docs">
- <!-- gjdoc does not support source=1.5 -->
- <javadoc destdir="${javadoc}" source="1.4">
- <fileset dir="${src}" defaultexcludes="yes">
- <!-- gjdoc barfs on the following class -->
- <exclude name="org/easymock/LogicalOperator.java"/>
- </fileset>
- </javadoc>
- </target>
-
- <target name="jar" depends="compile"
- description="generate the jarfile" >
-
- <jar jarfile="${jarfile}" basedir="${build}"/>
- </target>
-
- <target name="clean"
- description="clean up" >
- <!-- Delete the ${build} and ${dist} directory trees -->
- <delete dir="${build}"/>
- <delete dir="${build.test}"/>
- <delete dir="${javadoc}"/>
- <delete dir="${dist}"/>
- </target>
-</project>
Copied: tags/easymock/2.4+ds1-1/build.xml (from rev 6844, trunk/easymock/build.xml)
===================================================================
--- tags/easymock/2.4+ds1-1/build.xml (rev 0)
+++ tags/easymock/2.4+ds1-1/build.xml 2008-08-13 08:09:16 UTC (rev 6889)
@@ -0,0 +1,70 @@
+<project name="easymock" default="dist" basedir=".">
+ <description>
+ build file for easymock
+ </description>
+ <!-- set global properties for this build -->
+ <property name="src" location="src"/>
+ <property name="dist" location="dist"/>
+ <property name="build" location="build"/>
+ <property name="build.test" location="tests-build"/>
+ <property name="javadoc" location="api"/>
+ <property name="jarfile" location="${dist}/easymock-2.4.jar"/>
+
+ <target name="init">
+ <!-- Create the build directory structure used by compile -->
+ <mkdir dir="${build}"/>
+ <mkdir dir="${build.test}"/>
+ <mkdir dir="${javadoc}"/>
+ <mkdir dir="${dist}"/>
+ </target>
+
+ <target name="compile" depends="init"
+ description="compile the source" >
+ <!-- Compile the java code from ${src} into ${build} -->
+ <javac srcdir="${src}" destdir="${build}"/>
+ </target>
+
+ <target name="compile-tests" depends="init,compile"
+ description="compile the unit tests" >
+ <javac srcdir="tests" destdir="${build.test}" classpath="${build}"/>
+ </target>
+
+ <target name="test" depends="init,compile,compile-tests" description="run unit tests">
+ <junit printsummary="yes" haltonfailure="yes" haltonerror="yes">
+ <classpath>
+ <pathelement location="${build}"/>
+ <pathelement location="${build.test}"/>
+ </classpath>
+
+ <formatter type="plain" usefile="false"/>
+
+ <batchtest>
+ <fileset dir="tests">
+ <include name="**/*Test*.java"/>
+ <exclude name="**/AllTests.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="javadoc" depends="init" description="generate api docs">
+ <javadoc destdir="${javadoc}" source="1.5">
+ <fileset dir="${src}" defaultexcludes="yes"/>
+ </javadoc>
+ </target>
+
+ <target name="jar" depends="compile"
+ description="generate the jarfile" >
+
+ <jar jarfile="${jarfile}" basedir="${build}"/>
+ </target>
+
+ <target name="clean"
+ description="clean up" >
+ <!-- Delete the ${build} and ${dist} directory trees -->
+ <delete dir="${build}"/>
+ <delete dir="${build.test}"/>
+ <delete dir="${javadoc}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
Deleted: tags/easymock/2.4+ds1-1/debian/changelog
===================================================================
--- trunk/easymock/debian/changelog 2008-02-01 09:43:52 UTC (rev 5587)
+++ tags/easymock/2.4+ds1-1/debian/changelog 2008-08-13 08:09:16 UTC (rev 6889)
@@ -1,14 +0,0 @@
-easymock (2.3+ds1-2) unstable; urgency=low
-
- * Updated Vcs-* and Homepage fields in control file
- * Updated watch file to match upstream version correctly (M. Koch)
- * Updated dependency to current gcj-java-compat-dev (Closes: #450422)
- * Updated standards version to 3.7.3
-
- -- Jan-Pascal van Best <janpascal at vanbest.org> Fri, 11 Jan 2008 16:14:31 +0100
-
-easymock (2.3+ds1-1) unstable; urgency=low
-
- * Initial release. (Closes: #441839)
-
- -- Jan-Pascal van Best <janpascal at vanbest.org> Thu, 13 Sep 2007 20:21:48 +0200
Copied: tags/easymock/2.4+ds1-1/debian/changelog (from rev 6869, trunk/easymock/debian/changelog)
===================================================================
--- tags/easymock/2.4+ds1-1/debian/changelog (rev 0)
+++ tags/easymock/2.4+ds1-1/debian/changelog 2008-08-13 08:09:16 UTC (rev 6889)
@@ -0,0 +1,25 @@
+easymock (2.4+ds1-1) unstable; urgency=low
+
+ * New upstream version
+ * Build with OpenJDK (gcj hangs 'sometimes' during builds)
+ * Reformatted debian/copyright to pacify lintian
+ * Update build.xml to build javadocs with source=5
+ * Update standards-version to 3.8.0
+ * Update doc-base section to Programming/Java
+
+ -- Jan-Pascal van Best <janpascal at vanbest.org> Mon, 11 Aug 2008 20:21:27 +0200
+
+easymock (2.3+ds1-2) unstable; urgency=low
+
+ * Updated Vcs-* and Homepage fields in control file
+ * Updated watch file to match upstream version correctly (M. Koch)
+ * Updated dependency to current gcj-java-compat-dev (Closes: #450422)
+ * Updated standards version to 3.7.3
+
+ -- Jan-Pascal van Best <janpascal at vanbest.org> Fri, 11 Jan 2008 16:14:31 +0100
+
+easymock (2.3+ds1-1) unstable; urgency=low
+
+ * Initial release. (Closes: #441839)
+
+ -- Jan-Pascal van Best <janpascal at vanbest.org> Thu, 13 Sep 2007 20:21:48 +0200
Deleted: tags/easymock/2.4+ds1-1/debian/control
===================================================================
--- trunk/easymock/debian/control 2008-02-01 09:43:52 UTC (rev 5587)
+++ tags/easymock/2.4+ds1-1/debian/control 2008-08-13 08:09:16 UTC (rev 6889)
@@ -1,36 +0,0 @@
-Source: easymock
-Section: libs
-Priority: optional
-Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
-Uploaders: Jan-Pascal van Best <janpascal at vanbest.org>
-Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/easymock/
-Vcs-svn: svn://svn.debian.org/svn/pkg-java/trunk/easymock/
-Build-Depends: cdbs, debhelper (>= 5.0.42), dpatch (>= 2.0),
- java-gcj-compat-dev (>= 1.0.77-2), ant-optional (>= 1.7.0),
- junit4 (>= 4.3.1)
-Standards-Version: 3.7.3
-Homepage: http://www.easymock.org
-
-Package: libeasymock-java
-Architecture: all
-Depends: java-gcj-compat (>= 1.0.76) | java2-runtime
-Suggests: libeasymock-java-doc
-Description: Java library to generate Mock Objects for given interfaces
- EasyMock 2 is a library that provides an easy way to use Mock Objects for given
- interfaces. Mock Objects simulate parts of the behavior of domain code,
- and are able to check whether they are used as defined.
- Domain classes can be tested in isolation
- by simulating their collaborators with Mock Objects.
-
-Package: libeasymock-java-doc
-Architecture: all
-Section: doc
-Enhances: libeasymock-java
-Description: Java library to generate Mock Objects for given interfaces (documentation)
- EasyMock 2 is a library that provides an easy way to use Mock Objects for given
- interfaces. Mock Objects simulate parts of the behavior of domain code,
- and are able to check whether they are used as defined.
- Domain classes can be tested in isolation
- by simulating their collaborators with Mock Objects.
- .
- This package contains the documentation for the Mock Objects library.
Copied: tags/easymock/2.4+ds1-1/debian/control (from rev 6869, trunk/easymock/debian/control)
===================================================================
--- tags/easymock/2.4+ds1-1/debian/control (rev 0)
+++ tags/easymock/2.4+ds1-1/debian/control 2008-08-13 08:09:16 UTC (rev 6889)
@@ -0,0 +1,36 @@
+Source: easymock
+Section: libs
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Jan-Pascal van Best <janpascal at vanbest.org>
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/easymock/
+Vcs-svn: svn://svn.debian.org/svn/pkg-java/trunk/easymock/
+Build-Depends: cdbs, debhelper (>= 5.0.42), dpatch (>= 2.0),
+ openjdk-6-jdk (>= 6b11-5), ant-optional (>= 1.7.0),
+ junit4 (>= 4.3.1)
+Standards-Version: 3.8.0
+Homepage: http://www.easymock.org
+
+Package: libeasymock-java
+Architecture: all
+Depends: openjdk-6-jre (>= 6b11) | java5-runtime
+Suggests: libeasymock-java-doc
+Description: Java library to generate Mock Objects for given interfaces
+ EasyMock 2 is a library that provides an easy way to use Mock Objects for given
+ interfaces. Mock Objects simulate parts of the behavior of domain code,
+ and are able to check whether they are used as defined.
+ Domain classes can be tested in isolation
+ by simulating their collaborators with Mock Objects.
+
+Package: libeasymock-java-doc
+Architecture: all
+Section: doc
+Enhances: libeasymock-java
+Description: Java library to generate Mock Objects for given interfaces (documentation)
+ EasyMock 2 is a library that provides an easy way to use Mock Objects for given
+ interfaces. Mock Objects simulate parts of the behavior of domain code,
+ and are able to check whether they are used as defined.
+ Domain classes can be tested in isolation
+ by simulating their collaborators with Mock Objects.
+ .
+ This package contains the documentation for the Mock Objects library.
Deleted: tags/easymock/2.4+ds1-1/debian/copyright
===================================================================
--- trunk/easymock/debian/copyright 2008-02-01 09:43:52 UTC (rev 5587)
+++ tags/easymock/2.4+ds1-1/debian/copyright 2008-08-13 08:09:16 UTC (rev 6889)
@@ -1,36 +0,0 @@
-This package was debianized by Jan-Pascal van Best <janpascal at vanbest.org> on
-Tue, 11 Sep 2007 14:03:47 +0200
-
-It was downloaded from http://www.easymock.org/Downloads.html
-
-Run the debian/get-orig-source.sh script to download the upstream ZIP file and
-create the source tarball used by Debian. See README.Debian-source for details.
-
-Upstream Authors: Tammo Freese <http://tammofreese.de>
-
-Copyright: 2001-2007 OFFIS <http://www.offis.de>
- 2001-2007 Tammo Freese <http://tammofreese.de>
-
-License:
- EasyMock 2 License (MIT License)
-
- Permission is hereby granted, free of charge, to any person obtaining a copy of
- this software and associated documentation files (the "Software"), to deal in
- the Software without restriction, including without limitation the rights to
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
- the Software, and to permit persons to whom the Software is furnished to do so,
- subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-The Debian packaging (build.xml and the files under debian/) is
-Copyright 2007 Jan-Pascal van Best <janpascal at vanbest.org>. It is
-licensed under the terms of the EasyMock 2 License above.
Copied: tags/easymock/2.4+ds1-1/debian/copyright (from rev 6844, trunk/easymock/debian/copyright)
===================================================================
--- tags/easymock/2.4+ds1-1/debian/copyright (rev 0)
+++ tags/easymock/2.4+ds1-1/debian/copyright 2008-08-13 08:09:16 UTC (rev 6889)
@@ -0,0 +1,37 @@
+This package was debianized by Jan-Pascal van Best <janpascal at vanbest.org> on
+Tue, 11 Sep 2007 14:03:47 +0200
+
+It was downloaded from http://www.easymock.org/Downloads.html
+
+Run the debian/get-orig-source.sh script to download the upstream ZIP file and
+create the source tarball used by Debian. See README.Debian-source for details.
+
+Upstream Authors: Tammo Freese <http://tammofreese.de>
+
+Copyright: 2001-2007 OFFIS <http://www.offis.de>
+ 2001-2007 Tammo Freese <http://tammofreese.de>
+
+License:
+ EasyMock 2 License (MIT License)
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
+The Debian packaging (build.xml and the files under debian/) is
+Copyright 2007 Jan-Pascal van Best <janpascal at vanbest.org>. It is
+licensed under the terms of the EasyMock 2 License above.
Deleted: tags/easymock/2.4+ds1-1/debian/libeasymock-java-doc.doc-base
===================================================================
--- trunk/easymock/debian/libeasymock-java-doc.doc-base 2008-02-01 09:43:52 UTC (rev 5587)
+++ tags/easymock/2.4+ds1-1/debian/libeasymock-java-doc.doc-base 2008-08-13 08:09:16 UTC (rev 6889)
@@ -1,16 +0,0 @@
-Document: easymock-manual
-Title: EasyMock
-Author: Tammo Freese
-Abstract: This document describes how to use the
- Java EasyMock library when testing your Java code.
- Contains API documentation and sample code.
-Section: Apps/Programming
-
-Format: HTML
-Index: /usr/share/doc/libeasymock-java-doc/Documentation.html
-Files: /usr/share/doc/libeasymock-java-doc/*.html
- /usr/share/doc/libeasymock-java-doc/api/*.html
- /usr/share/doc/libeasymock-java-doc/api/org/easymock/*.html
- /usr/share/doc/libeasymock-java-doc/api/org/easymock/internal/*.html
- /usr/share/doc/libeasymock-java-doc/api/org/easymock/internal/matchers/*.html
- /usr/share/doc/libeasymock-java-doc/samples/org/easymock/samples/*.java
Copied: tags/easymock/2.4+ds1-1/debian/libeasymock-java-doc.doc-base (from rev 6844, trunk/easymock/debian/libeasymock-java-doc.doc-base)
===================================================================
--- tags/easymock/2.4+ds1-1/debian/libeasymock-java-doc.doc-base (rev 0)
+++ tags/easymock/2.4+ds1-1/debian/libeasymock-java-doc.doc-base 2008-08-13 08:09:16 UTC (rev 6889)
@@ -0,0 +1,16 @@
+Document: easymock-manual
+Title: EasyMock
+Author: Tammo Freese
+Abstract: This document describes how to use the
+ Java EasyMock library when testing your Java code.
+ Contains API documentation and sample code.
+Section: Programming/Java
+
+Format: HTML
+Index: /usr/share/doc/libeasymock-java-doc/Documentation.html
+Files: /usr/share/doc/libeasymock-java-doc/*.html
+ /usr/share/doc/libeasymock-java-doc/api/*.html
+ /usr/share/doc/libeasymock-java-doc/api/org/easymock/*.html
+ /usr/share/doc/libeasymock-java-doc/api/org/easymock/internal/*.html
+ /usr/share/doc/libeasymock-java-doc/api/org/easymock/internal/matchers/*.html
+ /usr/share/doc/libeasymock-java-doc/samples/org/easymock/samples/*.java
Deleted: tags/easymock/2.4+ds1-1/debian/rules
===================================================================
--- trunk/easymock/debian/rules 2008-02-01 09:43:52 UTC (rev 5587)
+++ tags/easymock/2.4+ds1-1/debian/rules 2008-08-13 08:09:16 UTC (rev 6889)
@@ -1,66 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-#
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/dpatch.mk
-include /usr/share/cdbs/1/class/ant.mk
-
-# Uncomment this to turn on verbose mode.
-# export DH_VERBOSE=1
-
-# UPSTREAM_VERSION is what Apache Solr thinks its version is
-# DEB_UPSTREAM_VERSION is the Debian source package version (with the +dsN)
-UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | grep -o "^[^+]*")
-UPSTREAM_BASENAME = easymock-$(UPSTREAM_VERSION)
-CHANGESFILE = ../easymock_$(DEB_VERSION)_$(DEB_BUILD_ARCH).changes
-
-INSTDIR=$(CURDIR)/debian/libeasymock-java
-JAVADIR=$(INSTDIR)/usr/share/java
-
-# Explicitly build with gcj
-JAVA_HOME = /usr/lib/jvm/java-gcj
-JAR = $(JAVA_HOME)/bin/jar
-
-# Set ant parameters
-DEB_ANT_BUILD_TARGET = jar javadoc
-DEB_ANT_CHECK_TARGET = test
-DEB_JARS = ant-junit junit4
-
-DEB_INSTALL_DOCS_libeasymock-java := debian/README.Debian-source
-DEB_INSTALL_DOCS_libeasymock-java-doc := debian/README.Debian-source Documentation*.html easymock.css samples api
-
-cleanbuilddir:: src
-src:
- debian/rules restore-from-source
-
-clean::
-
-install/libeasymock-java::
- install -m 0644 dist/easymock-$(UPSTREAM_VERSION).jar $(JAVADIR)
- dh_link /usr/share/java/easymock-$(UPSTREAM_VERSION).jar /usr/share/java/easymock.jar
-
-remove-source:
- rm -rf src tests samples
- rm -f *.html *.css
- rm -f *stamp
- rm -rf debian/patched
-
-restore-from-source: remove-source ../easymock_$(DEB_UPSTREAM_VERSION).orig.tar.gz
- tar xzf ../easymock_$(DEB_UPSTREAM_VERSION).orig.tar.gz
- mv $(UPSTREAM_BASENAME)/* .
- rmdir $(UPSTREAM_BASENAME)
-
-get-orig-source: ../easymock_$(DEB_UPSTREAM_VERSION).orig.tar.gz
-
-../easymock_$(DEB_UPSTREAM_VERSION).orig.tar.gz:
- debian/get-orig-source
-
-check:
- lintian -i $(CHANGESFILE)
- linda -i $(CHANGESFILE)
- zgrep "^---" ../easymock_$(DEB_VERSION).diff.gz | grep -v "debian\|build.xml" ; [ $$? != 0 ]
- ( dpkg --contents ../libeasymock-java_$(DEB_VERSION)_all.deb ; \
- dpkg --contents ../libeasymock-java-doc_$(DEB_VERSION)_all.deb ) | less
-
-upload:
- dupload -t mentors $(CHANGESFILE)
Copied: tags/easymock/2.4+ds1-1/debian/rules (from rev 6844, trunk/easymock/debian/rules)
===================================================================
--- tags/easymock/2.4+ds1-1/debian/rules (rev 0)
+++ tags/easymock/2.4+ds1-1/debian/rules 2008-08-13 08:09:16 UTC (rev 6889)
@@ -0,0 +1,66 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+# UPSTREAM_VERSION is what Apache Solr thinks its version is
+# DEB_UPSTREAM_VERSION is the Debian source package version (with the +dsN)
+UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | grep -o "^[^+]*")
+UPSTREAM_BASENAME = easymock-$(UPSTREAM_VERSION)
+CHANGESFILE = ../easymock_$(DEB_VERSION)_$(DEB_BUILD_ARCH).changes
+
+INSTDIR=$(CURDIR)/debian/libeasymock-java
+JAVADIR=$(INSTDIR)/usr/share/java
+
+# Explicitly build with OpenJDK
+JAVA_HOME = /usr/lib/jvm/java-6-openjdk
+JAR = $(JAVA_HOME)/bin/jar
+
+# Set ant parameters
+DEB_ANT_BUILD_TARGET = jar javadoc
+DEB_ANT_CHECK_TARGET = test
+DEB_JARS = ant-junit junit4
+
+DEB_INSTALL_DOCS_libeasymock-java := debian/README.Debian-source
+DEB_INSTALL_DOCS_libeasymock-java-doc := debian/README.Debian-source Documentation*.html easymock.css samples api
+
+cleanbuilddir:: src
+src:
+ debian/rules restore-from-source
+
+clean::
+
+install/libeasymock-java::
+ install -m 0644 dist/easymock-$(UPSTREAM_VERSION).jar $(JAVADIR)
+ dh_link /usr/share/java/easymock-$(UPSTREAM_VERSION).jar /usr/share/java/easymock.jar
+
+remove-source:
+ rm -rf src tests samples
+ rm -f *.html *.css
+ rm -f *stamp
+ rm -rf debian/patched
+
+restore-from-source: remove-source ../easymock_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+ tar xzf ../easymock_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+ mv $(UPSTREAM_BASENAME)/* .
+ rmdir $(UPSTREAM_BASENAME)
+
+get-orig-source: ../easymock_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+
+../easymock_$(DEB_UPSTREAM_VERSION).orig.tar.gz:
+ debian/get-orig-source
+
+check:
+ lintian -i $(CHANGESFILE)
+ linda -i $(CHANGESFILE)
+ zgrep "^---" ../easymock_$(DEB_VERSION).diff.gz | grep -v "debian\|build.xml" ; [ $$? != 0 ]
+ ( dpkg --contents ../libeasymock-java_$(DEB_VERSION)_all.deb ; \
+ dpkg --contents ../libeasymock-java-doc_$(DEB_VERSION)_all.deb ) | less
+
+upload:
+ dupload -t mentors $(CHANGESFILE)
More information about the pkg-java-commits
mailing list