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

seamlik-guest pushed a commit to branch master
in repository smali-1.

commit 2aa955a43020e8aa7c903ead5171ef910f9102a9
Author: Kai-Chung Yan (殷啟聰) <seamli...@gmail.com>
Date:   Thu Feb 16 18:02:55 2017 +0800

    Initial packaging
---
 debian/.gitignore                  | 11 +++++
 debian/changelog                   |  5 ++
 debian/compat                      |  1 +
 debian/control                     | 30 ++++++++++++
 debian/copyright                   | 95 ++++++++++++++++++++++++++++++++++++++
 debian/libsmali-dexlib-1-java.poms |  1 +
 debian/maven.rules                 |  1 +
 debian/patches/fix_version.patch   | 34 ++++++++++++++
 debian/patches/groupId.patch       | 10 ++++
 debian/patches/series              |  2 +
 debian/rules                       | 15 ++++++
 debian/source/format               |  1 +
 12 files changed, 206 insertions(+)

diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..6f466c7
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,11 @@
+/.gradle/
+/.javahelper_clean
+/.mh/
+/*.doc-base.javadoc
+/*.log
+/*.substvars
+/build/
+/debhelper-build-stamp
+/files
+/lib*-java-doc/
+/lib*-java/
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4f6d2c7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+smali-1 (1.4.2-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #855274)
+
+ -- Kai-Chung Yan <seamli...@gmail.com>  Thu, 16 Feb 2017 17:52:29 +0800
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..9a03714
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
\ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0ba241e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: smali-1
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers 
<pkg-java-maintain...@lists.alioth.debian.org>
+Uploaders: Kai-Chung Yan <seamli...@gmail.com>
+Build-Depends:
+ debhelper (>= 10~),
+ default-jdk-headless | default-jdk,
+ gradle-debian-helper,
+ maven-repo-helper,
+ libjgit-java,
+ libguava-java,
+ libjsr305-java
+Standards-Version: 3.9.8
+Homepage: https://github.com/JesusFreke/smali
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/smali-1.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/smali-1.git
+
+Package: libsmali-dexlib-1-java
+Architecture: all
+Depends: libguava-java,
+         libjsr305-java,
+         ${misc:Depends}
+Description: assembler/disassembler for Android's dex format
+ smali/baksmali is an assembler/disassembler for the dex format used by dalvik,
+ Android's Java VM implementation. The syntax is loosely based on
+ Jasmin's/dedexer's syntax and supports the full functionality of the dex
+ format like annotations, debug info and line info.
+ .
+ This library provides APIs for interacting the DEX format.
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2640732
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,95 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: smali
+Source: https://github.com/JesusFreke/smali/releases
+Files-Excluded: *.jar
+
+Files: *
+Copyright: 2010-2016, Ben Gruver
+           2007-2008, Terence Parr
+License: BSD-3-clause
+
+Files: deodexerant/*
+       dexlib/*
+       smali/build.gradle
+       util/build.gradle
+Copyright: 2011-2016, Google Inc.
+License: BSD-3-clause-Google
+
+Files: scripts/*
+Copyright: 2007 The Android Open Source Project
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016, Kai-Chung Yan (殷啟聰)
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
+
+License: BSD-3-clause-Google
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ *     * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *     * 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.
+ *     * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS 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 COPYRIGHT
+ * OWNER OR 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.
+
+License: BSD-3-clause
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ ** Redistributions of source code must retain the above copyright
+ *  notice, this list of conditions and the following disclaimer.
+ ** 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.
+ ** The name of the author may not be used to endorse or promote products
+ *  derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS 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 COPYRIGHT
+ * OWNER OR 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.
+ */
+
diff --git a/debian/libsmali-dexlib-1-java.poms 
b/debian/libsmali-dexlib-1-java.poms
new file mode 100644
index 0000000..70fc7ba
--- /dev/null
+++ b/debian/libsmali-dexlib-1-java.poms
@@ -0,0 +1 @@
+dexlib/build/debian/dexlib.pom --java-lib --artifact=dexlib/build/libs/*.jar
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..21753b6
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+com.google.code.findbugs jsr305 jar s/.*/0.x/
\ No newline at end of file
diff --git a/debian/patches/fix_version.patch b/debian/patches/fix_version.patch
new file mode 100644
index 0000000..aa62dc4
--- /dev/null
+++ b/debian/patches/fix_version.patch
@@ -0,0 +1,34 @@
+Author: Kai-Chung Yan (殷啟聰)
+Last-Update: 2017-02-15
+--- a/build.gradle
++++ b/build.gradle
+@@ -35,29 +35,6 @@
+ 
+ def jarVersion = version
+ 
+-if (!('release' in gradle.startParameter.taskNames)) {
+-    def versionSuffix
+-    try {
+-        def git = org.eclipse.jgit.api.Git.open(file('.'))
+-        def head = git.getRepository().getRef("HEAD")
+-        versionSuffix = head.getObjectId().abbreviate(8).name()
+-
+-        if (!git.status().call().clean) {
+-            versionSuffix += '-dirty'
+-        }
+-    } catch (Exception) {
+-        // In case we can't get the commit for some reason,
+-        // just use -dev
+-        versionSuffix = 'dev'
+-    }
+-
+-    def baseVersion = version
+-    version = baseVersion + '-' + versionSuffix
+-
+-    // use something like module-1.2.3-dev.jar for the jar name, rather than 
the full
+-    // module-1.2.3-001afe02-dirty.jar
+-    jarVersion = baseVersion + '-dev'
+-}
+ 
+ subprojects {
+     apply plugin: 'java'
diff --git a/debian/patches/groupId.patch b/debian/patches/groupId.patch
new file mode 100644
index 0000000..5cafe9a
--- /dev/null
+++ b/debian/patches/groupId.patch
@@ -0,0 +1,10 @@
+--- a/build.gradle
++++ b/build.gradle
+@@ -41,6 +41,7 @@
+     apply plugin: 'idea'
+ 
+     version = parent.version
++    group = 'org.smali'
+ 
+     jar {
+         version = jarVersion
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..84da469
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+fix_version.patch
+groupId.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b19053d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/pkg-info.mk
+
+%:
+       dh $@ --parallel --with maven_repo_helper --buildsystem=gradle
+
+override_dh_auto_build:
+       dh_auto_build -- -Dfile.encoding=UTF-8 :dexlib:assemble
+
+get-orig-source: $(DEB_VERSION_UPSTREAM).tar.gz
+       mk-origtargz --repack --compression xz $<
+
+$(DEB_VERSION_UPSTREAM).tar.gz:
+       wget https://github.com/JesusFreke/smali/archive/v$@ -O $@
\ No newline at end of file
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/smali-1.git

_______________________________________________
pkg-java-commits mailing list
pkg-java-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to