--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/control
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/control
@@ -0,0 +1,27 @@
+Source: freehep-graphicsio-swf
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Giovanni Mascellani <mascellani@poisson.phc.unipi.it>,
+ Gabriele Giacone <1o5g4r8o@gmail.com>
+Build-Depends: debhelper (>= 7), cdbs, maven-debian-helper, default-jdk
+Build-Depends-Indep: libfreehep-graphicsio-java, libfreehep-graphicsio-tests-java,
+ junit
+Standards-Version: 3.8.4
+Vcs-Git: git://git.debian.org/git/pkg-java/freehep/freehep-graphicsio-swf.git
+Vcs-Browser: http://git.debian.org/?p=pkg-java/freehep/freehep-graphicsio-swf.git
+Homepage: http://java.freehep.org/
+
+Package: libfreehep-graphicsio-swf-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}, openjdk-6-jre | java2-runtime
+Recommends: ${maven:OptionalDepends}
+Description: FreeHEP SWF (Flash) Driver
+ The GraphicsIO library offers a base interface for image exporters in many
+ vector or bitmap image formats. It features direct support for GIF, PNG, PPM
+ and RAW formats, as well as the ability to manage TrueType fonts. Support
+ for other file types can be added with plugins.
+ .
+ This package contains a GraphicsIO plugin to export to SWF (Flash) format.
+ .
+ FreeHEP is a collection of Java libraries used in High Energy Physics.
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/compat
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/compat
@@ -0,0 +1 @@
+7
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/maven.rules
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/maven.rules
@@ -0,0 +1 @@
+junit junit jar s/.*/3.x/ *
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/gbp.conf
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/gbp.conf
@@ -0,0 +1,7 @@
+
+[DEFAULT]
+cleaner = fakeroot debian/rules clean
+upstream-branch = upstream
+debian-branch = build
+pristine-tar = True
+
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/copyright
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/copyright
@@ -0,0 +1,23 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Name: FreeHEP SWF (Flash) Driver
+Maintainer: The FreeHEP team <developers@freehep.org>
+Source: http://java.freehep.org/
+
+Files: *
+Copyright: 2000-2007, CERN, Geneva, Switzerland
+           2000-2007, SLAC, Stanford, California, U.S.A.
+           2000-2007, University of California Santa Cruz, U.S.A.
+License: LGPL-2.1+
+  On Debian GNU/Linux system you can find the complete text of the
+  LGPL-2.1 license in '/usr/share/common-licenses/LGPL-2.1'
+  No license files are included in upstream tarball but copyright holders
+  list is available at
+  <http://java.freehep.org/svn/repos/freehep/show/freehep/trunk/vectorgraphics/LICENSE.txt>
+  and adopted license at <http://java.freehep.org/license.html>
+
+Files: debian/*
+Copyright: 2010, Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
+	   2010, Gabriele Giacone <1o5g4r8o@gmail.com>
+License: GPL-3+
+  On Debian GNU/Linux system you can find the complete text of the
+  GPL-3 license in '/usr/share/common-licenses/GPL-3'
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/rules
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/maven.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/maven.properties
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/maven.properties
@@ -0,0 +1 @@
+maven.test.skip=true
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/README.source
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/README.source
@@ -0,0 +1,23 @@
+Information about freehep-graphicsio-swf
+----------------------------------------
+
+DEBIANIZATION
+
+This package was debianized using the mh_make command
+from the maven-debian-helper package.
+
+The build system uses Maven but prevents it from downloading
+anything from the Internet, making the build compliant with
+the Debian policy.
+
+REPACKAGING
+
+ To comply with DFSG, the following binary files have been removed from
+ upstream tarball:
+
+ - src/examples/image/image.ai
+ - src/examples/basic/*.swf
+ - src/examples/image/image-jpeg.swf
+ - src/test/resources/swf/*.swf
+ - src/examples/extended/*.swf
+
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/libfreehep-graphicsio-swf-java.poms
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/libfreehep-graphicsio-swf-java.poms
@@ -0,0 +1 @@
+pom.xml --no-parent
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/watch
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="uversionmangle=s/^.*-SNAPSHOT/~$1/,dversionmangle=s/\+dfsg//" \
+  http://java.freehep.org/maven2/org/freehep/freehep-graphicsio-swf/ \
+  (\d.*)/ debian debian/orig-tar.sh
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/maven.ignoreRules
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/maven.ignoreRules
@@ -0,0 +1 @@
+hep.aida aida * *
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/changelog
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/changelog
@@ -0,0 +1,5 @@
+freehep-graphicsio-swf (2.1.1+dfsg-1) unstable; urgency=low
+
+  * Initial release (Closes: #572574)
+
+ -- Gabriele Giacone <1o5g4r8o@gmail.com>  Fri, 05 Mar 2010 01:19:35 +0100
--- freehep-graphicsio-swf-2.1.1+dfsg.orig/debian/orig-tar.sh
+++ freehep-graphicsio-swf-2.1.1+dfsg/debian/orig-tar.sh
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+VERSION=$2
+PACKAGE=$(dpkg-parsechangelog | sed -n 's/^Source: //p')
+TAR=../${PACKAGE}_${VERSION}.orig.tar.gz
+DIR=${PACKAGE}-${VERSION}
+
+svn export svn://svn.freehep.org/svn/freehep/tags/vectorgraphics-${VERSION}/$PACKAGE $DIR
+GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir && echo "moved $TAR to $origDir"
+fi
