[pkg-java] r5445 - in trunk/pj: . debian debian/patches
hauro-guest at alioth.debian.org
hauro-guest at alioth.debian.org
Mon Jan 14 16:34:59 UTC 2008
Author: hauro-guest
Date: 2008-01-14 16:34:59 +0000 (Mon, 14 Jan 2008)
New Revision: 5445
Added:
trunk/pj/debian/
trunk/pj/debian/README.Debian-source
trunk/pj/debian/changelog
trunk/pj/debian/compat
trunk/pj/debian/control
trunk/pj/debian/copyright
trunk/pj/debian/libpj-java.dirs
trunk/pj/debian/libpj-java.docs
trunk/pj/debian/patches/
trunk/pj/debian/patches/10-buildfile
trunk/pj/debian/patches/series
trunk/pj/debian/repack.sh
trunk/pj/debian/rules
trunk/pj/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk
Property changes on: trunk/pj/debian
___________________________________________________________________
Name: mergeWithUpstream
+ 1
Added: trunk/pj/debian/README.Debian-source
===================================================================
--- trunk/pj/debian/README.Debian-source (rev 0)
+++ trunk/pj/debian/README.Debian-source 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,19 @@
+README.Debian-source for PJ
+---------------------------
+
+The original upstream code was repacked because it is deployed in a JAR file.
+The Debian Policy mandates it to be a tarball. The repackaging is done with
+debian/repack.sh in the source package.
+
+While repackaging, the following things were removed to reduce the size:
+ - META-INF/ directory, because it is specific to JAR, not used in a tarball,
+ - all .class files, as mandated by Java Sub-Policy
+ - all .shtml files, as they're not needed,
+ - all java2html.sed scripts which recreate the .shtml files,
+ - the doc/ directory, as it can be recreated from source
+ - upstream's .bashrc, as it's not needed,
+ - runjavadoc, compile, genshtml and packages.txt because they are not needed.
+
+The resulting tarball is about 10% of the original JAR file.
+
+ -- Manuel Prinz <debian at pinguinkiste.de>, Sat, 22 Dec 2007 16:40:44 +0100
Added: trunk/pj/debian/changelog
===================================================================
--- trunk/pj/debian/changelog (rev 0)
+++ trunk/pj/debian/changelog 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,6 @@
+pj (0.0~20071212-1) unstable; urgency=low
+
+ * Initial release (Closes: #434496)
+ * Repacked upstream source with debian/repack.sh
+
+ -- Manuel Prinz <debian at pinguinkiste.de> Sun, 16 Dec 2007 15:06:44 +0100
Added: trunk/pj/debian/compat
===================================================================
--- trunk/pj/debian/compat (rev 0)
+++ trunk/pj/debian/compat 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1 @@
+5
Added: trunk/pj/debian/control
===================================================================
--- trunk/pj/debian/control (rev 0)
+++ trunk/pj/debian/control 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,17 @@
+Source: pj
+Section: contrib/libs
+Priority: extra
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Manuel Prinz <debian at pinguinkiste.de>
+Homepage: http://www.cs.rit.edu/~ark/pj.shtml
+Build-Depends: debhelper (>= 5), cdbs, quilt
+Build-Depends-Indep: ant, sun-java5-jdk
+Standards-Version: 3.7.3
+
+Package: libpj-java
+Architecture: all
+Depends: sun-java5-jre | java2-runtime
+Description: The Parallel Java Library
+ Parallel Java (PJ) is an API and middleware for parallel programming
+ in 100% Java on shared memory multiprocessor (SMP) parallel computers,
+ cluster parallel computers, and hybrid SMP cluster parallel computers.
Added: trunk/pj/debian/copyright
===================================================================
--- trunk/pj/debian/copyright (rev 0)
+++ trunk/pj/debian/copyright 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,33 @@
+This package was downloaded from http://www.cs.rit.edu/~ark/pj.shtml
+
+Files: debian/*
+Author: Manuel Prinz <debian at pinguinkiste.de>
+Copyright: Copyright © 2007 Manuel Prinz <debian at pinguinkiste.de>
+License: GPL-3+
+
+ The Debian packaging is licensed under the GPL, version 3 or later,
+ see below.
+
+
+
+Files: *
+Author: Alan Kaminsky <ark at cs.rit.edu>
+Copyright: Copyright © 2007 Alan Kaminsky <ark at cs.rit.edu>
+License: GPL-3+
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with the Debian GNU/Linux distribution in /etc/share/common-licenses/GPL.
+ If not, see <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in /usr/share/common-licenses/GPL.
Added: trunk/pj/debian/libpj-java.dirs
===================================================================
--- trunk/pj/debian/libpj-java.dirs (rev 0)
+++ trunk/pj/debian/libpj-java.dirs 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,2 @@
+usr/share/java
+
Added: trunk/pj/debian/libpj-java.docs
===================================================================
--- trunk/pj/debian/libpj-java.docs (rev 0)
+++ trunk/pj/debian/libpj-java.docs 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1 @@
+debian/README.Debian-source
Added: trunk/pj/debian/patches/10-buildfile
===================================================================
--- trunk/pj/debian/patches/10-buildfile (rev 0)
+++ trunk/pj/debian/patches/10-buildfile 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,71 @@
+Index: pj/build.xml
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ pj/build.xml 2007-12-16 19:18:43.000000000 +0100
+@@ -0,0 +1,66 @@
++<?xml version="1.0"?>
++<!--
++Build.xml file for the Parallel Java Library (PJ)
++Copyright (C) 2007 Manuel Prinz <debian at pinguinkiste.de>
++
++This program is free software; you can redistribute it and/or modify
++it under the terms of the GNU General Public License as published by
++the Free Software Foundation; either version 3 of the License, or
++(at your option) any later version.
++
++This program is distributed in the hope that it will be useful,
++but WITHOUT ANY WARRANTY; without even the implied warranty of
++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++GNU General Public License for more details.
++
++You should have received a copy of the GNU General Public License along
++with this program; if not, write to the Free Software Foundation, Inc.,
++51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
++-->
++<project name="pj" basedir=".">
++
++ <description>The Parallel Java Library</description>
++
++ <target name="init">
++ <property name="app.name" value="pj"/>
++ <property name="app.version" value="20071212"/>
++ </target>
++
++ <target name="compile">
++ <javac srcdir="lib">
++ <!-- Compile all Java files except "old" ones -->
++ <include name="**/*.java"/>
++ <exclude name="**/old/*"/>
++ </javac>
++ </target>
++
++ <target name="jar" depends="init,compile">
++ <jar jarfile="lib/${app.name}-${app.version}.jar" basedir="lib">
++ <include name="**/*.class"/>
++ <!-- Exclude files in the base directory -->
++ <exclude name="*.class"/>
++ </jar>
++ </target>
++
++ <target name="javadoc">
++ <javadoc
++ destdir="doc"
++ sourcepath="lib"
++ overview="lib/overview.html"
++ use="yes"
++ splitindex="yes"
++ doctitle="THE PARALLEL JAVA LIBRARY"
++ windowtitle="Parallel Java Library Documentation">
++ <bottom><![CDATA[<FONT SIZE="-2">Copyright © 2005-2007 by Alan Kaminsky. All rights reserved. Send comments to ark</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">@</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">cs.rit.edu.</FONT>]]></bottom>
++ <fileset dir="lib" includes="**/*.java"/>
++ </javadoc>
++ </target>
++
++ <target name="clean" depends="init">
++ <delete file="lib/${app.name}-${app.version}.jar"/>
++ <delete>
++ <fileset dir="lib" includes="**/*.class"/>
++ </delete>
++ </target>
++
++</project>
Added: trunk/pj/debian/patches/series
===================================================================
--- trunk/pj/debian/patches/series (rev 0)
+++ trunk/pj/debian/patches/series 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1 @@
+10-buildfile
Added: trunk/pj/debian/repack.sh
===================================================================
--- trunk/pj/debian/repack.sh (rev 0)
+++ trunk/pj/debian/repack.sh 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,56 @@
+#!/bin/sh -e
+# Script to repack pj sources
+# Copyright (C) 2007 Manuel Prinz <debian at pinguinkiste.de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+
+VERSION=$1
+DEBEXT=.orig
+
+OLDDIR=$(pwd)
+TEMPDIR=$(mktemp -t -d pj-repack.XXXXXXXX) || exit 1
+
+cp pjsrc${VERSION}.jar $TEMPDIR
+cd $TEMPDIR
+
+# Extract and rename
+jar xf pjsrc${VERSION}.jar
+mv pj/ pj-${VERSION}
+
+# Do the clean-up
+rm -r META-INF
+cd pj-${VERSION}
+# Delete files only useful for upstream
+rm .bashrc runjavadoc compile genshtml packages.txt
+# Delete all class files, required by java-policy
+find . -name '*\.class' -exec rm '{}' \;
+# Delete all SHTML files, of no use
+find . -name '*\.shtml' -exec rm '{}' \;
+# Delete all sed scripts, of no use
+find . -name 'java2html.sed' -exec rm '{}' \;
+# Delete doc directory, can be re-created from source
+rm -r doc/
+cd ..
+
+# Repack
+tar cf pj_${VERSION}${DEBEXT}.tar pj-${VERSION}/
+gzip -9 pj_${VERSION}${DEBEXT}.tar
+cp pj_${VERSION}${DEBEXT}.tar.gz $OLDDIR
+cd $OLDDIR
+
+rm -r $TEMPDIR
+
+exit 0
Added: trunk/pj/debian/rules
===================================================================
--- trunk/pj/debian/rules (rev 0)
+++ trunk/pj/debian/rules 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Copyright (C) 2007 Manuel Prinz <debian at pinguinkiste.de>
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+JAVA_HOME := /usr/lib/jvm/java-1.5.0-sun
+
+DEB_ANT_BUILD_TARGET := jar
+
+PACKAGE := pj
+VERSION := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2 | cut -d- -f1)
+
+ANT_ARGS += -Dapp.version=$(VERSION)
+
+pjsrc$(VERSION).jar:
+ wget http://www.cs.rit.edu/~ark/pjsrc$(VERSION).jar
+
+pj_$(VERSION).orig.tar.gz: pjsrc$(VERSION).jar
+ sh debian/repack.sh $(VERSION)
+
+get-orig-source: pj_$(VERSION).orig.tar.gz
+
+install/lib$(PACKAGE)-java::
+ install -m 0644 lib/$(PACKAGE)-$(VERSION).jar debian/$(cdbs_curpkg)/usr/share/java/$(PACKAGE)-$(VERSION).jar
+ ln -s $(PACKAGE)-$(VERSION).jar debian/$(cdbs_curpkg)/usr/share/java/$(PACKAGE).jar
Property changes on: trunk/pj/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/pj/debian/watch
===================================================================
--- trunk/pj/debian/watch (rev 0)
+++ trunk/pj/debian/watch 2008-01-14 16:34:59 UTC (rev 5445)
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/^/0\.0~/ \
+http://www.cs.rit.edu/~ark/pj.shtml pjsrc(\d{8})\.jar
More information about the pkg-java-commits
mailing list