--- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/ant.properties +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/ant.properties @@ -0,0 +1,9 @@ +# Ant properties file for Debian commons-csv source package + +# javac settings used by commons-csv compilation +javac.debug=on +javac.nowarn=off +javac.verbose=yes +#build.compiler=gcj +compile.debug=on +compile.optimize=on --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/rules +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/rules @@ -0,0 +1,47 @@ +#!/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 + +# Use OpenJDK +JAVA_HOME = /usr/lib/jvm/java-6-openjdk + +DEB_ANT_BUILD_TARGET = init compile jar javadoc +DEB_ANT_BUILDFILE = debian/build.xml + +# Needed for running the unit tests +DEB_JARS = ant-junit junit + +# Upstream version information +UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | grep -o "^.*svn[0-9]\+") +UPSTREAM_RELEASE := $(shell echo $(UPSTREAM_VERSION) | grep -o "^[^+]\+") +UPSTREAM_BASENAME = $(DEB_SOURCE_PACKAGE)-$(UPSTREAM_RELEASE) + +install/libcommons-csv-java:: + install -m 0644 -D target/$(UPSTREAM_BASENAME).jar $(CURDIR)/debian/libcommons-csv-java/usr/share/java/commons-csv-$(UPSTREAM_VERSION).jar + dh_link /usr/share/java/commons-csv-$(UPSTREAM_VERSION).jar /usr/share/java/commons-csv.jar + +install/libcommons-csv-java-doc:: + install -d $(CURDIR)/debian/libcommons-csv-java-doc/usr/share/doc/libcommons-csv-java-doc + cp -r dist/docs/api $(CURDIR)/debian/libcommons-csv-java-doc/usr/share/doc/libcommons-csv-java-doc/ + +remove-source: + rm -f checkstyle.xml LICENSE.txt maven.xml NOTICE.txt pom.xml + rm -f project.properties project.xml + rm -rf debian/patched + rm -rf src target dist + +restore-from-source: remove-source + echo $(DEB_VERSION) + tar xzf ../commons-csv_$(UPSTREAM_VERSION).orig.tar.gz + +get-orig-source: + debian/get-orig-source + +upload: + cd .. ; dupload -t vanbest commons-csv_$(DEB_VERSION)_$(DEB_HOST_ARCH).changes --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/uscan +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/uscan @@ -0,0 +1,14 @@ +#!/bin/sh + +# Check whether the source version of the Debian package is the most recent +# revision of commons-cvs in the Apache subversion repository. + +REVISION=`dpkg-parsechangelog | grep "^Version:" | grep -o "+svn[0-9]\+" | grep -o "[0-9]\+"` +BASEURL="http://svn.apache.org/repos/asf/commons/sandbox/csv/trunk/" +LATEST_UPSTREAM_REVISION=`svn info -R $BASEURL | grep -i "last changed rev:" | grep -o "[0-9]\+" | sort -n | tail -n 1` + +if [ "$REVISION" != "$LATEST_UPSTREAM_REVISION" ]; then + echo "Using revision $REVISION; Latest revision in upstream repository: $LATEST_UPSTREAM_REVISION" +else + echo "Using up-to-date revision $REVISION" +fi --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/compat +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/compat @@ -0,0 +1 @@ +5 --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/changelog +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/changelog @@ -0,0 +1,24 @@ +commons-csv (0.1-SNAPSHOT+svn678580-1) unstable; urgency=low + + [ Kumar Appaiah ] + * Add Homepage field to debian/control. + * Add Vcs-Svn and Vcs-Browser to debian/control. + + [ Jan-Pascal van Best ] + * New upstream revision + * Bump standards-version to 3.8.0 + * Added debian/build.xml for building, since commons-csv now uses a + Maven-based build system. + * Remove full Apache license from debian/copyright and referred to + /usr/share/common-licenses instead. + * Added DM-Upload-Allowed: yes to debian/control. + * Compile with OpenJDK (instead of gcj). + * Mo + + -- Jan-Pascal van Best Wed, 10 Sep 2008 20:58:00 +0200 + +commons-csv (0.1-SNAPSHOT+svn558885-1) unstable; urgency=low + + * Initial release, based on subversion revision 558885 (2007-07-25) (Closes: #429779) + + -- Jan-Pascal van Best Fri, 27 Jul 2007 09:45:30 +0200 --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/copyright +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Jan-Pascal van Best on +Tue, 19 Jun 2007 14:24:31 +0200 + +It was downloaded using subversion from the Subversion repository at +http://svn.apache.org/repos/asf/commons/sandbox/csv/trunk/ + +Use + debian/rules get-orig-source +to download the source from this location and re-create the .orig.tar.gz. + +Copyright Holder: Copyright 2005-2007 The Apache Software Foundation + +Authors: +Henri Yandell , Martin van den Bemt + +Commons-csv is licensed under the Apache License, version 2.0. On Debian +systems, the complete text of the Apache License, version 2.0, can +be found in `/usr/share/common-licenses/Apache-2.0'. + +The Debian packaging (the files under debian/) is +Copyright 2007,2008 Jan-Pascal van Best . It is +also licensed under the terms of the Apache License, version 2.0. --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/control +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/control @@ -0,0 +1,29 @@ +Source: commons-csv +Section: libs +Priority: optional +Maintainer: Debian Java Maintainers +Uploaders: Jan-Pascal van Best +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 5.0.0), cdbs (>=0.4.48), dpatch (>= 2.0), + openjdk-6-jdk, ant-optional (>= 1.6.5), junit (>= 3.8.1) +Standards-Version: 3.8.0 +Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/commons-csv +Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/commons-csv +Homepage: http://jakarta.apache.org/commons/sandbox/csv/ + +Package: libcommons-csv-java +Architecture: all +Depends: openjdk-6-jre | java2-runtime +Suggests: java-virtual-machine +Description: a Java library for working with csv (comma separated values) files + libcommons-csv-java is the Apache Commons library for working with csv (comma + separated value) files. + +Package: libcommons-csv-java-doc +Architecture: all +Section: doc +Description: documentation for libcommons-csv-java + libcommons-csv-java is the Apache Commons library for working with csv (comma + separated value) files. + . + This package contains the API documentation for the Commons CSV library --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/get-orig-source +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/get-orig-source @@ -0,0 +1,27 @@ +#!/bin/sh + +# Retrieves the svn revision indicated in the Debian changelog from the Apache +# subversion repository and builds the .orig.tar.gz file. + +REVISION=`dpkg-parsechangelog | grep "^Version:" | grep -o "+svn[0-9]\+" | grep -o "[0-9]\+"` +BASEURL="http://svn.apache.org/repos/asf/commons/sandbox/csv/trunk/" + +TEMPDIR=`mktemp -d` +DESTDIR=$PWD/.. + +cd $TEMPDIR +echo "Checking out revision $REVISION from $BASEURL to $TEMPDIR" +svn co -q -r $REVISION "$BASEURL" + +cd trunk +REVISION=`svn info | grep "^Revision:" | grep -o "[0-9]\+"` +DESTFILE="${DESTDIR}/commons-csv_0.1-SNAPSHOT+svn${REVISION}.orig.tar.gz" + +echo "Creating $DESTFILE" +tar czf "$DESTFILE" --exclude=".svn" . + +echo "Cleaning up $TEMPDIR" +rm -rf "$TEMPDIR" + +LATEST_UPSTREAM_REVISION=`svn info -R $BASEURL | grep -i "last changed rev:" | grep -o "[0-9]\+" | sort -n | tail -n 1` +echo "Using revision $REVISION; Latest revision in upstream repository: $LATEST_UPSTREAM_REVISION" --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/build.xml +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/build.xml @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ================================= WARNING ================================ + Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed. + ========================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/patches/00list +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/patches/00list @@ -0,0 +1 @@ +10_remove_all_jarfiles.dpatch --- commons-csv-0.1-SNAPSHOT+svn678580.orig/debian/patches/10_remove_all_jarfiles.dpatch +++ commons-csv-0.1-SNAPSHOT+svn678580/debian/patches/10_remove_all_jarfiles.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh +## 10_remove_all_jarfiles.dpatch -- Jan-Pascal van Best +## +## DP: We want to be use we do not build using jar files contained +## DP: in the source tarball, so we start by removing all jar files. + +OPERATION="$1" +DIRECTORY="$2" + +if [ -z "$OPERATION" ]; then + echo "Illegal arguments" + exit 1 +fi + +if [ -z "$DIRECTORY" ]; then + DIRECTORY="." +fi + +case "$OPERATION" in + -patch) + echo "Removing all jar files under $DIRECTORY" + find $DIRECTORY -name \*.jar -exec rm {} \; + ;; + -unpatch) + echo "Unable to magic back jar files..." + ;; + *) + echo "Illegal command line $1 $2" + exit 1 + ;; +esac +