[libpulse-java] 01/01: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed May 21 07:57:13 UTC 2014


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

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

commit 9c9b6c8a5d34ecc039c670c5b5ccc074fc004aac
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed May 21 09:55:04 2014 +0200

    Initial packaging
---
 debian/README.Debian           | 11 ++++++++++
 debian/README.source           |  8 +++++++
 debian/build.xml               | 30 +++++++++++++++++++++++++
 debian/changelog               |  5 +++++
 debian/compat                  |  1 +
 debian/control                 | 26 ++++++++++++++++++++++
 debian/copyright               | 50 ++++++++++++++++++++++++++++++++++++++++++
 debian/orig-tar.sh             | 14 ++++++++++++
 debian/rules                   | 43 ++++++++++++++++++++++++++++++++++++
 debian/source/format           |  1 +
 debian/source/include-binaries |  7 ++++++
 debian/watch                   |  2 ++
 12 files changed, 198 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..a7cd552
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,11 @@
+PulseAudio sound driver for Java
+--------------------------------
+
+The PulseAudio driver can be used with OpenJDK or the Oracle JDK. It's enabled
+by replacing the following properties in the <JAVA_HOME>/jre/lib/sound.properties
+file (or /etc/java-<n>-openjdk/sound.properties when using OpenJDK):
+
+javax.sound.sampled.Clip=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
+javax.sound.sampled.Port=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
+javax.sound.sampled.SourceDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
+javax.sound.sampled.TargetDataLine=org.classpath.icedtea.pulseaudio.PulseAudioMixerProvider
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..a12b867
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,8 @@
+Information about libpulse-java
+-------------------------------
+
+This package contains the PulseAudio driver for Java extracted from the IcedTea
+build harness for OpenJDK 7 (also used for the openjdk-7 package).
+
+The libpulse-java package can be used with any Java implementation such as
+OpenJDK 8 or the Oracle JDK.
diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..d79fa97
--- /dev/null
+++ b/debian/build.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<project name="PulseAudio Java Driver" basedir="..">
+
+  <target name="compile">
+    <mkdir dir="target/classes"/>
+    <javac srcdir="src/java" destdir="target/classes" source="1.6" target="1.6" debug="yes" includeantruntime="false"/>
+
+    <mkdir dir="target/native"/>
+    <javah destdir="target/native" classpath="target/classes">
+      <class name="org.classpath.icedtea.pulseaudio.EventLoop"/>
+      <class name="org.classpath.icedtea.pulseaudio.Stream"/>
+      <class name="org.classpath.icedtea.pulseaudio.Operation"/>
+      <class name="org.classpath.icedtea.pulseaudio.PulseAudioSourcePort"/>
+      <class name="org.classpath.icedtea.pulseaudio.PulseAudioTargetPort"/>
+      <class name="org.classpath.icedtea.pulseaudio.ContextEvent"/>
+    </javah>
+  </target>
+
+  <target name="jar" depends="compile">
+    <jar jarfile="target/pulse-java-${icedtea.version}.jar">
+      <fileset dir="src/java" includes="META-INF/**"/>
+      <fileset dir="target/classes"/>
+    </jar>
+  </target>
+
+  <target name="clean">
+    <delete dir="target"/>
+  </target>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f44f407
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libpulse-java (2.4.7-1) unstable; urgency=medium
+
+  * Initial release. (Closes: #748814)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Tue, 20 May 2014 23:48:57 +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..fb04ccb
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: libpulse-java
+Section: java
+Priority: extra
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: debhelper (>= 9), default-jdk, ant, libpulse-dev (>= 0.9.12)
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-java/libpulse-java.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/libpulse-java.git
+Homepage: http://icedtea.classpath.org
+
+Package: libpulse-java
+Architecture: all
+Depends: libpulse-jni, ${misc:Depends}
+Description: PulseAudio sound driver for Java
+ IcedTea implementation of javax.sound.sampled.spi.MixerProvider using
+ PulseAudio as a mixer.
+
+Package: libpulse-jni
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: PulseAudio sound driver for Java (JNI libraries)
+ IcedTea implementation of javax.sound.sampled.spi.MixerProvider using
+ PulseAudio as a mixer.
+ .
+ This package contains the architecture specific Java native interface part.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..edd41fe
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,50 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: IcedTea PulseAudio sound driver
+Source: http://icedtea.classpath.org/hg/icedtea7/
+
+Files: debian/*
+Copyright: 2014, Emmanuel Bourg <ebourg at apache.org>
+License: GPL-2
+
+Files: *
+Copyright: 2008-2013, Red Hat, Inc
+License: GPL-2 with Classpath exception
+
+License: GPL-2
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in `/usr/share/common-licenses/GPL-2'.
+
+License: GPL-2 with Classpath exception
+ IcedTea 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, version 2.
+ .
+ IcedTea 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 IcedTea; see the file COPYING.  If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301 USA.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in `/usr/share/common-licenses/GPL-2'.
+ .
+ Linking this library statically or dynamically with other modules is
+ making a combined work based on this library.  Thus, the terms and
+ conditions of the GNU General Public License cover the whole
+ combination.
+ .
+ As a special exception, the copyright holders of this library give you
+ permission to link this library with independent modules to produce an
+ executable, regardless of the license terms of these independent
+ modules, and to copy and distribute the resulting executable under
+ terms of your choice, provided that you also meet, for each linked
+ independent module, the terms and conditions of the license of that
+ module.  An independent module is a module which is not derived from
+ or based on this library.  If you modify this library, you may extend
+ this exception to your version of the library, but you are not
+ obligated to do so.  If you do not wish to do so, delete this
+ exception statement from your version.
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..d1776df
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+VERSION=$2
+TAR=../libpulse-java_$VERSION.orig.tar.xz
+
+
+tar -xf $3
+rm $3
+
+cd icedtea-$VERSION
+XZ_OPT=--best tar -cJvf ../$TAR pulseaudio
+cd ..
+
+rm -Rf icedtea-$VERSION
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1d99aef
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+
+export JAVA_HOME = /usr/lib/jvm/default-java
+
+DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+CFLAGS   = $(shell dpkg-buildflags --get CFLAGS)
+CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
+LDFLAGS  = $(shell dpkg-buildflags --get LDFLAGS)
+
+NATIVE_SRCS    = $(wildcard src/native/*.c)
+NATIVE_FILES   = $(subst src/native,target/native,$(patsubst %.c,%,$(NATIVE_SRCS)))
+NATIVE_OBJECTS = $(subst src/native,target/native,$(patsubst %.c,%.o,$(NATIVE_SRCS)))
+
+VERSION  = $(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-[^-]*$$/\1/p')
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	ant -f debian/build.xml -Dicedtea.version=$(VERSION) jar
+
+	cp src/native/* target/native
+	for f in $(NATIVE_FILES); do \
+	  $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -I$(JAVA_HOME)/include/linux -I$(JAVA_HOME)/include -Itarget/native -o $$f.o -c $$f.c ; \
+	done
+
+	$(CC) $(LDFLAGS) -shared -lpulse $(NATIVE_OBJECTS) -o target/libpulse-java.so
+
+override_dh_auto_install:
+	dh_auto_install
+
+	dh_install -plibpulse-java target/pulse-java-$(VERSION).jar usr/share/java
+	dh_link -plibpulse-java /usr/share/java/pulse-java-$(VERSION).jar usr/share/java/pulse-java.jar
+
+	dh_install -plibpulse-jni target/libpulse-java.so usr/lib/$(DEB_HOST_MULTIARCH)/jni
+
+override_dh_auto_clean:
+	dh_auto_clean
+	ant -f debian/build.xml clean
+
+get-orig-source:
+	uscan --download-current-version --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/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..eaf429c
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1,7 @@
+debian/icons/visualvm-22x22.png
+debian/icons/visualvm-32x32.png
+debian/icons/visualvm-48x48.png
+debian/icons/visualvm-64x64.png
+debian/icons/visualvm-128x128.png
+debian/icons/visualvm-256x256.png
+debian/icons/visualvm-512x512.png
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ffc44ac
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://icedtea.wildebeest.org/download/source/icedtea-([\d\.]+).tar.xz debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list