[bytecode-compatibility-transformer] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Sep 26 09:02:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository bytecode-compatibility-transformer.

commit 020ec9f8a0b27c1b531429d0bd02e0b0bae927b2
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Sep 26 11:00:07 2014 +0200

    Initial packaging
---
 debian/README.source                               |   9 ++
 debian/changelog                                   |   5 +
 debian/compat                                      |   1 +
 debian/control                                     |  32 ++++++
 debian/copyright                                   |  33 ++++++
 ...libbytecode-compatibility-transformer-java.poms |  28 +++++
 debian/maven.cleanIgnoreRules                      |   1 +
 debian/maven.ignoreRules                           |   2 +
 debian/maven.properties                            |   4 +
 debian/maven.publishedRules                        |   1 +
 debian/maven.rules                                 |   5 +
 debian/patches/01-use-system-asm.patch             | 118 +++++++++++++++++++++
 debian/patches/series                              |   1 +
 debian/rules                                       |   9 ++
 debian/source/format                               |   1 +
 debian/watch                                       |   2 +
 16 files changed, 252 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..be5167c
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about bytecode-compatibility-transformer
+----------------------------------------------------
+
+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.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9ff48ea
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+bytecode-compatibility-transformer (1.5-1) unstable; urgency=medium
+
+  * Initial release (Closes: #762881)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Fri, 26 Sep 2014 10:59:47 +0200
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..73038ee
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: bytecode-compatibility-transformer
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: cdbs,
+               debhelper (>= 9),
+               default-jdk,
+               ivy,
+               junit4,
+               libannotation-indexer-java,
+               libasm4-java,
+               libcommons-io-java,
+               libjenkins-constant-pool-scanner-java,
+               libmaven-antrun-plugin-java,
+               libmaven-dependency-plugin-java,
+               maven-debian-helper (>= 1.5)
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/bytecode-compatibility-transformer.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/bytecode-compatibility-transformer.git
+Homepage: https://github.com/jenkinsci/bytecode-compatibility-transformer
+
+Package: libbytecode-compatibility-transformer-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Bytecode transformation-based library for managing backward compatibility
+ This Java library provides a set of annotations and bytecode transformer
+ that helps evolving a modular codebase without losing compatibility. Field
+ access can be adapted to either getter/setter methods or to another field.
+ Both instance and static fields can be adapted. The type of a field can also
+ be changed to a subtype.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4dd9638
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Bytecode Compatibility Transformer
+Source: https://github.com/jenkinsci/bytecode-compatibility-transformer
+
+Files: *
+Copyright: 2013-2014, Kohsuke Kawaguchi <kk at kohsuke.org>
+License: MIT
+Comment:
+ The source files do not contain a license header, but the license
+ is specified in the Maven project descriptor (pom.xml).
+
+Files: debian/*
+Copyright: 2014, Emmanuel Bourg <ebourg at apache.org>
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
diff --git a/debian/libbytecode-compatibility-transformer-java.poms b/debian/libbytecode-compatibility-transformer-java.poms
new file mode 100644
index 0000000..8545d14
--- /dev/null
+++ b/debian/libbytecode-compatibility-transformer-java.poms
@@ -0,0 +1,28 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+pom.xml --no-parent
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..4cc5226
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,2 @@
+
+com.sun tools * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..7c29bd7
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,4 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..5f4428a
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,5 @@
+
+junit junit jar s/4\..*/4.x/ * *
+org.jenkins-ci bytecode-compatibility-transformer jar s/.*/debian/ * *
+org.jenkins-ci constant-pool-scanner jar s/.*/debian/ * *
+s/org.kohsuke/org.ow2.asm/ s/asm5/asm/ * s/.*/4.x/ * *
diff --git a/debian/patches/01-use-system-asm.patch b/debian/patches/01-use-system-asm.patch
new file mode 100644
index 0000000..3c1e046
--- /dev/null
+++ b/debian/patches/01-use-system-asm.patch
@@ -0,0 +1,118 @@
+Description: Use the original ASM library instead of the Jenkins specific one
+ relocated under the org.kohsuke.asm5 package
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/src/main/java/org/jenkinsci/bytecode/AdaptField.java
++++ b/src/main/java/org/jenkinsci/bytecode/AdaptField.java
+@@ -1,8 +1,8 @@
+ package org.jenkinsci.bytecode;
+ 
+ import org.jvnet.hudson.annotation_indexer.Indexed;
+-import org.kohsuke.asm5.MethodVisitor;
+-import org.kohsuke.asm5.Type;
++import org.objectweb.asm.MethodVisitor;
++import org.objectweb.asm.Type;
+ 
+ import java.lang.annotation.Retention;
+ import java.lang.annotation.Target;
+@@ -14,7 +14,7 @@
+ 
+ import static java.lang.annotation.ElementType.*;
+ import static java.lang.annotation.RetentionPolicy.*;
+-import static org.kohsuke.asm5.Opcodes.*;
++import static org.objectweb.asm.Opcodes.*;
+ 
+ /**
+  * Rewrites a field reference by adapting the type of the field.
+--- a/src/main/java/org/jenkinsci/bytecode/ClassRewritingContext.java
++++ b/src/main/java/org/jenkinsci/bytecode/ClassRewritingContext.java
+@@ -1,16 +1,16 @@
+ package org.jenkinsci.bytecode;
+ 
+-import org.kohsuke.asm5.ClassVisitor;
+-import org.kohsuke.asm5.Label;
+-import org.kohsuke.asm5.MethodVisitor;
+-import org.kohsuke.asm5.Opcodes;
+-import org.kohsuke.asm5.Type;
++import org.objectweb.asm.ClassVisitor;
++import org.objectweb.asm.Label;
++import org.objectweb.asm.MethodVisitor;
++import org.objectweb.asm.Opcodes;
++import org.objectweb.asm.Type;
+ 
+ import java.util.HashMap;
+ import java.util.Map;
+ import java.util.Map.Entry;
+ 
+-import static org.kohsuke.asm5.Opcodes.*;
++import static org.objectweb.asm.Opcodes.*;
+ 
+ /**
+  * Remembers what class is being rewritten and what helper methods need to be generated into this class.
+--- a/src/main/java/org/jenkinsci/bytecode/Kind.java
++++ b/src/main/java/org/jenkinsci/bytecode/Kind.java
+@@ -1,6 +1,6 @@
+ package org.jenkinsci.bytecode;
+ 
+-import org.kohsuke.asm5.MethodVisitor;
++import org.objectweb.asm.MethodVisitor;
+ 
+ /**
+  * Rewriting a method reference and a field reference takes a very similar code path,
+--- a/src/main/java/org/jenkinsci/bytecode/Transformer.java
++++ b/src/main/java/org/jenkinsci/bytecode/Transformer.java
+@@ -1,15 +1,15 @@
+ package org.jenkinsci.bytecode;
+ 
+-import org.kohsuke.asm5.ClassReader;
+-import org.kohsuke.asm5.ClassVisitor;
+-import org.kohsuke.asm5.ClassWriter;
+-import org.kohsuke.asm5.MethodVisitor;
++import org.objectweb.asm.ClassReader;
++import org.objectweb.asm.ClassVisitor;
++import org.objectweb.asm.ClassWriter;
++import org.objectweb.asm.MethodVisitor;
+ 
+ import java.io.IOException;
+ import java.util.Collection;
+ import java.util.Collections;
+ 
+-import static org.kohsuke.asm5.Opcodes.*;
++import static org.objectweb.asm.Opcodes.*;
+ 
+ /**
+  * Transform byte code where code references bytecode rewrite annotations.
+--- a/src/main/java/org/jenkinsci/bytecode/MemberAdapter.java
++++ b/src/main/java/org/jenkinsci/bytecode/MemberAdapter.java
+@@ -1,7 +1,7 @@
+ package org.jenkinsci.bytecode;
+ 
+-import org.kohsuke.asm5.MethodVisitor;
+-import org.kohsuke.asm5.Type;
++import org.objectweb.asm.MethodVisitor;
++import org.objectweb.asm.Type;
+ 
+ import java.lang.reflect.Member;
+ 
+--- a/src/main/java/org/jenkinsci/bytecode/MemberTransformSpec.java
++++ b/src/main/java/org/jenkinsci/bytecode/MemberTransformSpec.java
+@@ -1,15 +1,15 @@
+ package org.jenkinsci.bytecode;
+ 
+-import org.kohsuke.asm5.Label;
+-import org.kohsuke.asm5.MethodVisitor;
+-import org.kohsuke.asm5.Type;
++import org.objectweb.asm.Label;
++import org.objectweb.asm.MethodVisitor;
++import org.objectweb.asm.Type;
+ 
+ import java.util.HashMap;
+ import java.util.HashSet;
+ import java.util.Map.Entry;
+ import java.util.Set;
+ 
+-import static org.kohsuke.asm5.Opcodes.*;
++import static org.objectweb.asm.Opcodes.*;
+ 
+ /**
+  * All the adapters of {@linkplain #kind a specific member type} keyed by their name and descriptor.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7c75890
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-use-system-asm.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..261ec16
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/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
+
+get-orig-source:
+	uscan --download-current-version --force-download --rename
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)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ab008c3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/jenkinsci/bytecode-compatibility-transformer/releases .*bytecode-compatibility-transformer-([\d\.]+).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/bytecode-compatibility-transformer.git



More information about the pkg-java-commits mailing list