debian swirl logo

Back to the packages list geronimo-ejb-3.0-spec

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

SVN                  := tags/geronimo-ejb_3.0_spec-$(DEB_UPSTREAM_VERSION)
ASFREPO              := http://svn.apache.org/repos/asf/geronimo/specs/$(SVN)
REQUIRED_JVM_VERSION := 1.5

JAVA_HOME            := /usr/lib/jvm/default-java
DEB_ANT_BUILDFILE    := debian/build.xml
DEB_ANT_ARGS         := -DartifactVersion=$(DEB_UPSTREAM_VERSION) \
                        -DartifactId=$(DEB_SOURCE_PACKAGE) \
                        -DsourceVersion=$(REQUIRED_JVM_VERSION) \
                        -DtargetVersion=$(REQUIRED_JVM_VERSION)
DEB_JARS             := geronimo-jta-1.0.1b-spec

binary-post-install/lib$(DEB_SOURCE_PACKAGE)-java::
		dh_install -plib$(DEB_SOURCE_PACKAGE)-java build/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar usr/share/java
		dh_link -plib$(DEB_SOURCE_PACKAGE)-java usr/share/java/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar usr/share/java/$(DEB_SOURCE_PACKAGE).jar

get-orig-source:
		echo "Getting version $(DEB_UPSTREAM_VERSION) from $(SVN)"
		mkdir orig_tmp
		cd orig_tmp && \
			svn export -q $(ASFREPO) $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \
			tar czf ../../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)
		rm -rf orig_tmp

Builds:

libgeronimo-ejb-3.0-spec-java
geronimo api implementation of the ejb 3.0 spec