[relaxngcc] 01/01: initial packaging
Timo Aaltonen
tjaalton-guest at moszumanska.debian.org
Tue Jan 7 17:17:28 UTC 2014
This is an automated email from the git hooks/post-receive script.
tjaalton-guest pushed a commit to branch master
in repository relaxngcc.
commit 1f389ba3624be072f2ad98db32f958082846abf6
Author: Timo Aaltonen <tjaalton at ubuntu.com>
Date: Tue Jan 7 19:16:57 2014 +0200
initial packaging
---
debian/changelog | 5 ++++
debian/compat | 1 +
debian/control | 36 +++++++++++++++++++++++
debian/copyright | 57 ++++++++++++++++++++++++++++++++++++
debian/librelaxngcc-java-doc.javadoc | 1 +
debian/librelaxngcc-java.jlibs | 1 +
debian/relaxngcc-build.xml | 44 ++++++++++++++++++++++++++++
debian/rules | 55 ++++++++++++++++++++++++++++++++++
debian/source/format | 1 +
9 files changed, 201 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d8bb24f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+relaxngcc (20031218-1) UNRELEASED; urgency=low
+
+ * Initial release. (Closes: #732374)
+
+ -- Ade Lee <alee at redhat.com> Tue, 03 Dec 2013 22:03:45 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b7dd471
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: relaxngcc
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Timo Aaltonen <tjaalton at ubuntu.com>
+Build-Depends: debhelper (>= 9), default-jdk, javahelper (>= 0.45),
+ ant,
+ javacc,
+ libmsv-java,
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-java/xsom.git
+Vcs-Browser: http://anonscm.debian.org/git/pkg-java/xsom.git
+Homepage: http://relaxngcc.sourceforge.net/en/index.htm
+
+Package: librelaxngcc-java
+Architecture: all
+Depends: ${java:Depends}, ${misc:Depends}
+Recommends: ${java:Recommends}
+Description: RELAX NG Compiler Compiler
+ RelaxNGCC is a tool for generating Java source code from a given RELAX NG
+ grammar. By embedding code fragments in the grammar like yacc or JavaCC, you
+ can take appropriate actions while parsing valid XML documents against the
+ grammar.
+
+Package: librelaxngcc-java-doc
+Architecture: all
+Section: doc
+Depends: ${java:Depends}, ${misc:Depends}
+Recommends: ${java:Recommends}
+Description: RELAX NG Compiler Compiler -- documentation
+ RelaxNGCC is a tool for generating Java source code from a given RELAX NG
+ grammar. By embedding code fragments in the grammar like yacc or JavaCC, you
+ can take appropriate actions while parsing valid XML documents against the
+ grammar.
+ .
+ This package contains javadoc for librelaxngcc-java.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c00f5f1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,57 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: relaxngcc
+Source: http://relaxngcc.sourceforge.net/en/index.htm
+
+Files: *
+Copyright: 2000-2003, Daisuke Okajima and Kohsuke Kawaguchi
+License: ASL-1.1
+
+License: ASL-1.1
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ 3. The end-user documentation included with the redistribution, if
+ any, must include the following acknowledgment:
+ .
+ "This product includes software developed by Daisuke Okajima
+ and Kohsuke Kawaguchi (http://relaxngcc.sf.net/)."
+ .
+ Alternately, this acknowledgment may appear in the software itself,
+ if and wherever such third-party acknowledgments normally appear.
+ .
+ 4. The names of the copyright holders must not be used to endorse or
+ promote products derived from this software without prior written
+ permission. For written permission, please contact the copyright
+ holders.
+ .
+ 5. Products derived from this software may not be called "RELAXNGCC",
+ nor may "RELAXNGCC" appear in their name, without prior written
+ permission of the copyright holders.
+ .
+ THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
+ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: debian/*
+Copyright: 2013, Ade Lee <alee at redhat.com>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/librelaxngcc-java-doc.javadoc b/debian/librelaxngcc-java-doc.javadoc
new file mode 100644
index 0000000..863d673
--- /dev/null
+++ b/debian/librelaxngcc-java-doc.javadoc
@@ -0,0 +1 @@
+javadoc
diff --git a/debian/librelaxngcc-java.jlibs b/debian/librelaxngcc-java.jlibs
new file mode 100644
index 0000000..e45ffe4
--- /dev/null
+++ b/debian/librelaxngcc-java.jlibs
@@ -0,0 +1 @@
+relaxngcc.jar
diff --git a/debian/relaxngcc-build.xml b/debian/relaxngcc-build.xml
new file mode 100644
index 0000000..905bd36
--- /dev/null
+++ b/debian/relaxngcc-build.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+
+<project name="relaxngcc" default="jar">
+
+ <!-- Compile Java source files: -->
+ <target name="compile">
+ <mkdir dir="bin"/>
+ <javacc target="src/relaxngcc/javabody/JavaBodyParser.jj" outputdirectory="src/relaxngcc/javabody" javacchome="lib" static="false"/>
+ <javac srcdir="src" destdir="bin" debug="on" optimize="off" classpath="lib">
+ <classpath>
+ <fileset dir="lib" includes="**/*.jar"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <!-- Generate javadoc documentation: -->
+ <target name="javadoc" depends="compile">
+ <mkdir dir="javadoc"/>
+ <javadoc locale="en_US" sourcepath="src" destdir="javadoc" windowtitle="RelaxNGCC" public="yes">
+ <package name="relaxngcc.*"/>
+ <classpath>
+ <fileset dir="lib" includes="*.jar"/>
+ </classpath>
+ </javadoc>
+ </target>
+
+ <!-- Create the jar file: -->
+ <target name="jar" depends="compile">
+ <tstamp/>
+ <jar jarfile="relaxngcc.jar">
+ <manifest>
+ <attribute name="Version" value="${DSTAMP}"/>
+ <attribute name="Main-Class" value="relaxngcc.RelaxNGCC"/>
+ </manifest>
+ <fileset dir="src" includes="**/*.properties"/>
+ <fileset dir="src" includes="**/*.xsl"/>
+ <fileset dir="src" includes="**/*.jelly"/>
+ <fileset dir="src" includes="relaxngcc/runtime/*.java"/>
+ <fileset dir="bin" includes="**/*.class"/>
+ <fileset dir="." includes="project.xml"/>
+ </jar>
+ </target>
+
+</project>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e962b2b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,55 @@
+#!/usr/bin/make -f
+
+export JAVA_HOME=/usr/lib/jvm/default-java
+
+# Put depended upon jars in here
+# export CLASSPATH=
+
+VERSION = $(shell dpkg-parsechangelog |grep Version| sed 's/.*: //;s/-.*//')
+ORIG_BDIR = relaxngcc-$(VERSION)
+ZIP = relaxngcc-$(VERSION).zip
+
+%:
+ dh $@ --with javahelper
+
+override_dh_auto_build:
+ ln -s debian/relaxngcc-build.xml build.xml
+ mkdir lib
+ ln -sf /usr/share/java/msv-core.jar lib
+ ln -sf /usr/share/java/relaxngDatatype.jar lib
+ ln -sf /usr/share/java/xercesImpl.jar lib
+ ln -sf /usr/share/java/xsdlib.jar lib
+ ln -sf /usr/share/java/javacc.jar lib
+ ln -sf /usr/share/java/ant.jar lib
+ ant jar javadoc
+
+override_dh_auto_clean:
+ dh_clean
+ -rm -rf bin javadoc lib relaxngcc.jar
+ -rm -f src/relaxngcc/javabody/*.java
+
+get-orig-source:
+ wget http://prdownloads.sourceforge.net/relaxngcc/relaxngcc-$(VERSION).zip
+ unzip relaxngcc-$(VERSION).zip
+
+ # Remove the sources that will be generated with JavaCC:
+ rm $(ORIG_BDIR)/src/relaxngcc/javabody/*.java
+
+ # Remove to avoid dependency on commons-jelly:
+ rm $(ORIG_BDIR)/src/relaxngcc/maven/ChildAntProjectTag.java
+
+ # Some of the sources don't use the correct end of line encoding, so to be
+ # conservative fix all of them:
+ find $(ORIG_BDIR) -type f -exec dos2unix {} \;
+
+ # Some of the source files contain characters outside of the ASCII set that
+ # cause problems when compiling, so make sure that they are translated to
+ # ASCII:
+ native2ascii -encoding UTF8 $(ORIG_BDIR)/src/relaxngcc/builder/SwitchBlockInfo.java \
+ $(ORIG_BDIR)/src/relaxngcc/builder/SwitchBlockInfo.java
+
+ XZ_OPT=--best tar -cJf ../relaxngcc_$(VERSION).orig.tar.xz \
+ --exclude '*.jar' \
+ --exclude '*.class' \
+ $(ORIG_BDIR)
+ rm -rf $(ZIP) $(ORIG_BDIR)
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/relaxngcc.git
More information about the pkg-java-commits
mailing list