[mp4parser] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Nov 3 23:35:18 UTC 2014


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

ebourg-guest pushed a commit to branch master
in repository mp4parser.

commit 86d9eb74cd2d7ce22eb4329a5940bca55bec0517
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Nov 4 00:23:58 2014 +0100

    Initial packaging
---
 debian/README.source                           |  9 ++++++
 debian/changelog                               |  5 +++
 debian/compat                                  |  1 +
 debian/control                                 | 26 ++++++++++++++++
 debian/copyright                               | 42 ++++++++++++++++++++++++++
 debian/libisoparser-java.poms                  | 31 +++++++++++++++++++
 debian/maven.ignoreRules                       |  9 ++++++
 debian/maven.properties                        |  5 +++
 debian/maven.rules                             |  6 ++++
 debian/orig-tar.sh                             | 27 +++++++++++++++++
 debian/patches/01-maven2-compatibility.patch   | 17 +++++++++++
 debian/patches/02-disable-android-logger.patch | 33 ++++++++++++++++++++
 debian/patches/series                          |  2 ++
 debian/rules                                   | 11 +++++++
 debian/source/format                           |  1 +
 debian/watch                                   |  2 ++
 16 files changed, 227 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..8d63617
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about mp4parser
+---------------------------
+
+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..b373838
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+mp4parser (1.0.4.2-1) unstable; urgency=medium
+
+  * Initial release (Closes: #712972)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Mon, 03 Nov 2014 21:08:57 +0100
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..0cc72e4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: mp4parser
+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,
+               junit4,
+               libaspectj-maven-plugin-java,
+               libcommons-codec-java,
+               libcommons-io-java,
+               maven-debian-helper (>= 1.5)
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/mp4parser.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/mp4parser.git
+Homepage: http://code.google.com/p/mp4parser/
+
+Package: libisoparser-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Generic parser and writer for ISO 14496 based files
+ The isoparser API can read and write the MP4 file structure. It is a low
+ level tool dealing with the so called boxes but it is as well as dealing
+ with structure like tracks and movies.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0993946
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,42 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: MP4 Parser Project
+Upstream-Contact: Sebastian Annies
+Source: http://code.google.com/p/mp4parser/
+
+Files: *
+Copyright: 2008, CoreMedia AG
+           2009-2012, castLabs GmbH
+           2011-2012, Sebastian Annies
+License: Apache-2.0
+
+Files: isoparser/src/main/java/com/googlecode/mp4parser/h264/*
+Copyright: 2011, Stanislav Vitvitskiy
+License: Expat
+ 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.
+
+Files: isoparser/src/main/java/com/coremedia/iso/Hex.java
+Copyright: 2003-2011, The Apache Software Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2014, Emmanuel Bourg <ebourg at apache.org>
+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/libisoparser-java.poms b/debian/libisoparser-java.poms
new file mode 100644
index 0000000..7cd44a2
--- /dev/null
+++ b/debian/libisoparser-java.poms
@@ -0,0 +1,31 @@
+# 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 --has-package-version
+isoparser/pom.xml --has-package-version
+examples/pom.xml --ignore
+androidtest/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..2cab128
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,9 @@
+
+com.googlecode.mp4parser androidtest apk * * *
+com.googlecode.mp4parser examples jar * * *
+com.google.android android * * * *
+com.google.code.maven-svn-wagon maven-svn-wagon * * * *
+org.apache.maven.plugins maven-deploy-plugin * * * *
+org.apache.maven.plugins maven-release-plugin * * * *
+org.apache.maven.plugins maven-site-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..e593715
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,5 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..f4acd3a
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,6 @@
+
+s/aspectj/org.aspectj/ aspectjrt jar s/.*/debian/ * *
+s/aspectj/org.aspectj/ aspectjtools jar s/.*/debian/ * *
+s/aspectj/org.aspectj/ aspectjweaver jar s/.*/debian/ * *
+junit junit jar s/4\..*/4.x/ * *
+org.codehaus.mojo aspectj-maven-plugin * s/.*/LATEST/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..fdf438c
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+VERSION=$2
+TAR=../mp4parser_$VERSION.orig.tar.xz
+DIR=mp4parser-$VERSION
+
+mkdir $DIR
+tar -xf $3 --strip-components=1 -C $DIR
+rm $3
+
+XZ_OPT=--best tar -c -v -J -f $TAR \
+    --exclude='examples/src' \
+    --exclude='androidtest/src' \
+    --exclude='*.3gp' \
+    --exclude='*.aac' \
+    --exclude='*.ac3' \
+    --exclude='*.f4v' \
+    --exclude='*.m4a' \
+    --exclude='*.m4p' \
+    --exclude='*.m4s' \
+    --exclude='*.mp4' \
+    --exclude='*.mp4f' \
+    --exclude='*.h264' \
+    --exclude='*.srt' \
+    --exclude='*.odf' \
+    $DIR
+rm -Rf $DIR
diff --git a/debian/patches/01-maven2-compatibility.patch b/debian/patches/01-maven2-compatibility.patch
new file mode 100644
index 0000000..f2b4ae6
--- /dev/null
+++ b/debian/patches/01-maven2-compatibility.patch
@@ -0,0 +1,17 @@
+Description: Remove the prerequisites on Maven 3
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+diff --git a/pom.xml b/pom.xml
+index 1d080c9..6863889 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -16,9 +16,6 @@
+         <module>isoparser</module>
+         <module>examples</module>
+     </modules>
+-    <prerequisites>
+-        <maven>3.0</maven>
+-    </prerequisites>
+     <profiles>
+         <profile>
+             <id>android</id>
diff --git a/debian/patches/02-disable-android-logger.patch b/debian/patches/02-disable-android-logger.patch
new file mode 100644
index 0000000..3371eda
--- /dev/null
+++ b/debian/patches/02-disable-android-logger.patch
@@ -0,0 +1,33 @@
+Description: Disable the Android logger since the android platform isn't available
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/isoparser/src/main/java/com/googlecode/mp4parser/util/AndroidLogger.java
++++ b/isoparser/src/main/java/com/googlecode/mp4parser/util/AndroidLogger.java
+@@ -1,6 +1,6 @@
+ package com.googlecode.mp4parser.util;
+ 
+-import android.util.Log;
++//import android.util.Log;
+ 
+ /**
+  * Logs on Android.
+@@ -15,16 +15,16 @@
+ 
+     @Override
+     public void logDebug(String message) {
+-        Log.d(TAG, name + ":" + message);
++        //Log.d(TAG, name + ":" + message);
+     }
+ 
+     @Override
+     public void logWarn(String message) {
+-        Log.w(TAG, name + ":" + message);
++        //Log.w(TAG, name + ":" + message);
+     }
+ 
+     @Override
+     public void logError(String message) {
+-        Log.e(TAG, name + ":" + message);
++        //Log.e(TAG, name + ":" + message);
+     }
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f529437
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-maven2-compatibility.patch
+02-disable-android-logger.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ff341cb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/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
+
+DEB_MAVEN_ARGS := -DtoolsjarSystemPath=$(JAVA_HOME)/lib/tools.jar
+
+get-orig-source:
+	uscan --download-current-version --force-download --no-symlink
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..79981f0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/sannies/mp4parser/tags .*/mp4parser-project-(.*).tar.gz debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list