This is an automated email from the git hooks/post-receive script. apo-guest pushed a commit to branch master in repository easymock.
commit 62f00f7baca9f07b5a2207b259922d3e7831c2e7 Author: Jan-Pascal van Best <[email protected]> Date: Tue Sep 11 13:59:13 2007 +0000 Added easymock trunk --- build.xml | 75 ++++++++++++++++++++++++++++++++++++++ debian/ant.properties | 11 ++++++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 23 ++++++++++++ debian/copyright | 34 +++++++++++++++++ debian/get-orig-source | 56 ++++++++++++++++++++++++++++ debian/libeasymock-java.dirs | 2 + debian/rules | 68 ++++++++++++++++++++++++++++++++++ debian/uscan-upstream-version.xslt | 10 +++++ debian/uscan-url.xslt | 10 +++++ debian/watch | 3 ++ 12 files changed, 298 insertions(+) diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..a6ef900 --- /dev/null +++ b/build.xml @@ -0,0 +1,75 @@ +<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="javadoc"/> + <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}" source="1.5" target="1.5"/> + </target> + + <target name="compile-tests" depends="init,compile" + description="compile the unit tests" > + <javac srcdir="tests" destdir="${build.test}" source="1.5" target="1.5" + classpath="${build}"/> + </target> + + <target name="javadoc" depends="init" description="generate api docs"> + <javadoc destdir="${javadoc}"> + <fileset dir="${src}" defaultexcludes="yes"> + <include name="org/easymock/**"/> + <exclude name="org/easymock/LogicalOperator.java"/> + </fileset> + </javadoc> + </target> + + <target name="test" depends="init,compile,compile-tests" description="run unit tests"> + <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"> + <classpath> + <pathelement location="/usr/share/java/junit.jar"/> + <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="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> diff --git a/debian/ant.properties b/debian/ant.properties new file mode 100644 index 0000000..9e0d843 --- /dev/null +++ b/debian/ant.properties @@ -0,0 +1,11 @@ +# Ant properties file for Debian easymock source package + +# javac settings used by Lucene compilation +javac.debug=off +javac.nowarn=on +javac.verbose=no +build.compiler=javac1.5 +compile.debug=off +compile.optimize=on +ant.build.javac.source=1.5 +ant.build.javac.target=1.5 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2433f1f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +easymock (2.3+ds1-1~pre1) unstable; urgency=low + + * Initial release. (Closes: #441839) + + -- Jan-Pascal van Best <[email protected]> Mon, 10 Sep 2007 21:06:34 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9e755c0 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: easymock +Section: libs +Priority: optional +Maintainer: Debian Java Maintainers <[email protected]> +Uploaders: Jan-Pascal van Best <[email protected]> +XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/easymock/ +XS-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.76), + ant (>= 1.7.0), ant-optional (>= 1.7.0), junit4 (>= 4.3.1) +Standards-Version: 3.7.2 + +Package: libeasymock-java +Architecture: all +Depends: java-gcj-compat (>= 1.0.76) | java2-runtime +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. + . + Homepage: http://www.easymock.org diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..987135b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by Jan-Pascal van Best <[email protected]> on +Tue, 11 Sep 2007 14:03:47 +0200 + +It was downloaded from +http://www.easymock.org/Downloads.html + +The easymockVERSION.zip file provided by upstream contains the source files in +another zip file. It also contains the pre-built jar file and pre-built +javadocs. +Use the script debian/get-orig-source.sh to download the upstream source and +create easymock_VERSION.orig.tar.gz containing the easymock source files. + +Copyright (c) 2001-2007 OFFIS <http://www.offis.de>, 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. diff --git a/debian/get-orig-source b/debian/get-orig-source new file mode 100755 index 0000000..3a97883 --- /dev/null +++ b/debian/get-orig-source @@ -0,0 +1,56 @@ +#!/bin/sh + +USCAN_VERSION=`uscan --version | grep -o "version [0-9.]*" | grep -o "[0-9]*\.[0-9]*\.[0-9]*"` +if [ ${USCAN_VERSION:0:4} = "2.9." ]; then + # Version 2.9 of uscan has a bug, fixed in 2.10 + DEHS=`( uscan --no-download --dehs ; echo "</dehs>")` +else + DEHS=`uscan --no-download --dehs` +fi + +URL=`echo $DEHS | xsltproc debian/uscan-url.xslt -` +VERSION=`echo $DEHS | xsltproc debian/uscan-upstream-version.xslt -` + +DESTDIR=$PWD/.. +UPSTREAM_SOURCE=$DESTDIR/easymock$VERSION.zip +ORIGFILE=$DESTDIR/easymock_$VERSION+ds1.orig.tar.gz + +# Download upstream source +#wget "$URL" -O $UPSTREAM_SOURCE + +# Easymock.zip contains the source files +# Repackage upstream source file without the third party jars +TEMPDIR=`mktemp -d easymockXXXXXX` +BASEDIR="$TEMPDIR/easymock-$VERSION" + +echo "Unpacking into tempdir $TEMPDIR..." +unzip -q $UPSTREAM_SOURCE -d $TEMPDIR + +mv $TEMPDIR/easymock$VERSION $BASEDIR + +mkdir $BASEDIR/src +mkdir $BASEDIR/tests + +unzip -q $BASEDIR/src.zip -d $BASEDIR/src +rm -f $BASEDIR/src.zip + +unzip -q $BASEDIR/tests.zip -d $BASEDIR/tests +find $BASEDIR/tests -name \*.class -exec rm {} \; +rm -f $BASEDIR/tests.zip + +unzip -q $BASEDIR/samples.zip -d $BASEDIR/samples +find $BASEDIR/samples -name \*.class -exec rm {} \; +rm -f $BASEDIR/samples.zip + +rm -rf $BASEDIR/clover +rm -rf $BASEDIR/javadoc +rm -f $BASEDIR/easymock.jar + +echo "Packing new orig source tarball $ORIGFILE..." +rm -f $ORIGFILE +cd $TEMPDIR +GZIP=--best tar czf $ORIGFILE * +cd $DESTDIR + +echo "Removing tempdir..." +rm -rf "$TEMPDIR" diff --git a/debian/libeasymock-java.dirs b/debian/libeasymock-java.dirs new file mode 100644 index 0000000..501aeb0 --- /dev/null +++ b/debian/libeasymock-java.dirs @@ -0,0 +1,2 @@ +/usr/share/java +/usr/share/doc/libeasymock-java/html diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..eb7f124 --- /dev/null +++ b/debian/rules @@ -0,0 +1,68 @@ +#!/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 +DOCDIR=$(INSTDIR)/usr/share/doc/libeasymock-java +JAVADIR=$(INSTDIR)/usr/share/java + +# Explicitly build with gcj +JAVA_HOME = /usr/lib/jvm/java-gcj +#JAVA_HOME = /usr/lib/jvm/java-1.5.0-sun +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_CHANGELOGS_solr-common := CHANGES.txt + +cleanbuilddir:: build.xml +build.xml: + debian/rules restore-from-source + +clean:: + +install/libeasymock-java:: + install -m 0644 dist/easymock-$(UPSTREAM_VERSION).jar $(JAVADIR)/ + ln -s easymock-$(UPSTREAM_VERSION).jar $(JAVADIR)/easymock.jar + + install -m 0644 Documentation*.html easymock.css $(DOCDIR)/html + +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 ) | less + +upload: + dupload -t mentors $(CHANGESFILE) diff --git a/debian/uscan-upstream-version.xslt b/debian/uscan-upstream-version.xslt new file mode 100644 index 0000000..c257df4 --- /dev/null +++ b/debian/uscan-upstream-version.xslt @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="text"/> + +<xsl:template match="dehs"> + <xsl:value-of select="upstream-version"/> +</xsl:template> + +</xsl:stylesheet> + diff --git a/debian/uscan-url.xslt b/debian/uscan-url.xslt new file mode 100644 index 0000000..a5eedf2 --- /dev/null +++ b/debian/uscan-url.xslt @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="text"/> + +<xsl:template match="dehs"> + <xsl:value-of select="upstream-url"/> +</xsl:template> + +</xsl:stylesheet> + diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..3136e1a --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/easymock/easymock([0-9.]*).zip -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/easymock.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

