debian/0000755000000000000000000000000011572333142007167 5ustar debian/repack-source.sh0000755000000000000000000000263011530221312012257 0ustar #!/bin/sh if [ $# -ne 3 ] then echo "Usage: $0 option version filename" echo "If option=--upstream-version, run uupdate after repacking sources." echo "Filename is never used, as uscan will always download the wrong file." exit fi VERSION=$2 CURDIR=$(pwd) TMPDIR=`mktemp -d libjna-tmp.XXXXXX` BASEDIR=$TMPDIR/libjna-java-${VERSION} mkdir ${BASEDIR} TARGET=$(dirname "$3")/libjna-java_${VERSION}.orig.tar.gz # retrieve sources from svn # svn export https://svn.java.net/svn/jna~svn/tags/${VERSION}/jnalib/ --username guest ${BASEDIR} wget --no-check-certificate \ --directory-prefix=${TMPDIR} \ https://svn.java.net/svn/jna~svn/tags/${VERSION}/jnalib/pom.xml \ https://svn.java.net/svn/jna~svn/tags/${VERSION}/jnalib/dist/src.zip \ https://svn.java.net/svn/jna~svn/tags/${VERSION}/jnalib/src/com/sun/jna/overview.html \ https://svn.java.net/svn/jna~svn/tags/${VERSION}/jnalib/src/com/sun/jna/package.html unzip -d ${BASEDIR} ${TMPDIR}/src.zip # remove jar files rm -rf ${BASEDIR}/lib # remove libffi rm -rf ${BASEDIR}/native/libffi # files missing in src.zip mv ${TMPDIR}/*html ${BASEDIR}/src/com/sun/jna/ mv ${TMPDIR}/*xml ${BASEDIR}/ # Repack GZIP=-9 tar -C "$TMPDIR" -czf "${TARGET}" "libjna-java-${VERSION}" # Clean temporary files rm -rf "$TMPDIR" rm -rf "$BASEDIR" rm -f "$FILENAME" if [ $1 = --upstream-version ] ; then uupdate --upstream-version $2 "${TARGET}" fi debian/source/0000755000000000000000000000000011530221312010454 5ustar debian/source/format0000644000000000000000000000001411566257004011702 0ustar 3.0 (quilt) debian/libjna-java-doc.install0000644000000000000000000000006111530221312013462 0ustar doc/javadoc/* /usr/share/doc/libjna-java-doc/api debian/changelog0000644000000000000000000001167111572214460011050 0ustar libjna-java (3.2.7-4) unstable; urgency=low * Remove optional build time dependency on openjdk-6-jdk (depend on default-jdk) to fix Debcheck warning. * Install jna-platform.jar with javahelper instead of mavenhelper (Closes: #629081). -- Andrew Ross Fri, 03 Jun 2011 18:13:57 +0100 libjna-java (3.2.7-3) experimental; urgency=low * Seach multiarch paths for libraries (Closes: #620122) -- Andrew Ross Wed, 25 May 2011 21:19:02 +0100 libjna-java (3.2.7-2) unstable; urgency=low * Build and install platform.jar too. * Bump Standards-Version to 3.9.2. * Drop dependency on jre. * Update debian/copyright to cover platform code. * Add myself to uploaders. -- Andrew Ross Sun, 22 May 2011 21:19:01 +0100 libjna-java (3.2.7-1) unstable; urgency=low * New upstream release (Closes: #602564) * refresh patches * switch debian/watch to new kenai URL * change SVN URL in debian/repack-source.sh * fix debian/repack-source.sh to use the directory given to uscan via -destdir * add mh_clean to clean target in debian/rules * bump Standards-Version to 3.9.1 * bump maven-repo-helper dependency to (>= 1.5~) * don't compress example java files -- Jan Dittberner Sun, 20 Feb 2011 15:18:39 +0100 libjna-java (3.2.4-2) unstable; urgency=low * make libjna-java buildable on GNU/kFreeBSD * debian/control: set Build-Depends to default-jdk | openjdk-6-jdk * set JAVA_HOME to /usr/lib/jvm/default-java * add debian/patches/05-support-gnu-kfreebsd.patch to support GNU/kFreeBSD architectures * debian/rules: add -Djni.md5="" to ant call * import debian/patches/50-remove-gjdoc-inexistent-options.dpatch as debian/patches/06-remove-gjdoc-inexistent-options.patch -- Jan Dittberner Wed, 26 May 2010 00:14:07 +0200 libjna-java (3.2.4-1) unstable; urgency=low [ Ludovic Claude ] * Team upload. * New upstream release * Added myself as uploader * Add Maven metadata * debian/control: - add dependency on maven-repo-helper [ Jan Dittberner ] * refresh patches -- Jan Dittberner Wed, 21 Apr 2010 16:36:37 +0200 libjna-java (3.2.3-2) unstable; urgency=low * Team upload. * refresh patches * add debian/patches/04-load-native-code-from-fs.patch to try to load native library from /usr/lib/jni if system property jna.boot.library.path is not set (Closes: #576879) * debian/control: - set debhelper dependency to >= 7.0.50~ - update Standards-Version to 3.8.4 (no changes needed) - add Vcs-Git and Vcs-Browser fields * switch to source format 3.0 (quilt) - add debian/source/format - remove quilt dependency from debian/control - remove patch rules from debian/rules - modify clean target to work with unpatched sources too * parse version from changelog in debian/rules * add myself to Uploaders * switch to dh7 rules in debian/rules -- Jan Dittberner Thu, 08 Apr 2010 14:51:06 +0200 libjna-java (3.2.3-1) unstable; urgency=low * New upstream release. * Fixed debian/repack-source.sh to correctly use mktemp. * Make libjna-java Depends on *-headless packages. * Moved package under pkg-java control. * Added debian/README.source to describe quilt. * Added myself as Uploader. -- Michael Koch Mon, 02 Nov 2009 14:14:51 +0100 libjna-java (3.1.0-5) unstable; urgency=low * Removing vcs fields. * Removing README.source. * Orphaning package. -- Daniel Baumann Thu, 27 Aug 2009 08:47:56 +0200 libjna-java (3.1.0-4) unstable; urgency=low * Rediffing nbproject.patch (Closes: #538624). * Updating to standards version 3.8.3. * Adding maintainer homepage field to control. * Marking maintainer homepage field to be also included in binary packages and changelog. * Adding README.source. -- Daniel Baumann Tue, 25 Aug 2009 11:41:51 +0200 libjna-java (3.1.0-3) unstable; urgency=low * Updating maintainer field. * Updating vcs fields. * Updating, sorting and wrapping depends. -- Daniel Baumann Sat, 15 Aug 2009 09:40:19 +0200 libjna-java (3.1.0-2) unstable; urgency=low * Removing watch file. * Flipping maintainer and uploaders field. * Upgrading package to standards version 3.8.2. * Updating package sections. -- Daniel Baumann Sun, 26 Jul 2009 15:57:25 +0200 libjna-java (3.1.0-1) unstable; urgency=low * Updating standards to 3.8.1. * Using correct rfc-2822 date formats in changelog. * Merging upstream version 3.1.0. * Updating version number in rules. * Updating year in copyright file. * Updating rules file to current state of the art. -- Daniel Baumann Tue, 09 Jun 2009 11:36:24 +0200 libjna-java (3.0.9-1) unstable; urgency=low * Initial release (Closes: #480074). -- Daniel Baumann Fri, 02 Jan 2009 09:41:00 -0500 debian/copyright0000644000000000000000000000447211566273174011144 0ustar Author: Timothy Wall Download: https://jna.dev.java.net/ Files: * Copyright: (C) 1998 Sun Microsystems, Inc. (C) 2007-2010 Timothy Wall (C) 2007 Thomas Boerkel (C) 2007 Wayne Meissner (C) 2007 Olivier Chafik (C) 2010 Daniel Doubrovkine (C) 2010 Digital Rapids Corp. License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library 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 Library General Public License for more details. . You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU Library General Public License can be found in /usr/share/common-licenses/LGPL-2.1 file. Files: debian/* Copyright: (C) 2008-2009 Daniel Baumann (C) 2008 Sun Microsystems, Inc. License: BSD 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. debian/compat0000644000000000000000000000000211530221312010352 0ustar 7 debian/control0000644000000000000000000000425011572213104010566 0ustar Source: libjna-java Section: java Priority: optional Maintainer: Debian Java maintainers Uploaders: Michael Koch , Jan Dittberner , Ludovic Claude , Andrew Ross Build-Depends: debhelper (>= 7.0.50~), default-jdk, ant, ant-optional, libx11-dev, libxt-dev, libffi-dev, pkg-config, maven-repo-helper (>= 1.5~), javahelper (>=0.32~) Standards-Version: 3.9.2 Homepage: http://jna.dev.java.net/ Vcs-Git: git://git.debian.org/pkg-java/libjna-java.git Vcs-Browser: http://git.debian.org/?p=pkg-java/libjna-java.git;a=summary Package: libjna-java Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Suggests: libjna-java-doc Description: Dynamic access of native libraries from Java without JNI JNA provides Java programs easy access to native shared libraries without writing anything but Java code - no JNI or native code is required. This functionality is comparable to Windows' Platform/Invoke and Python's ctypes. Access is dynamic at runtime without code generation. . JNA's design aims to provide native access in a natural way with a minimum of effort. No boilerplate or generated code is required. While some attention is paid to performance, correctness and ease of use take priority. . The JNA library uses a small native library stub to dynamically invoke native code. The developer uses a Java interface to describe functions and structures in the target native library. This makes it quite easy to take advantage of native platform features without incurring the high overhead of configuring and building JNI code for multiple platforms. Package: libjna-java-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: Dynamic access of native libraries from Java without JNI (documentation) JNA provides Java programs easy access to native shared libraries without writing anything but Java code - no JNI or native code is required. This functionality is comparable to Windows' Platform/Invoke and Python's ctypes. Access is dynamic at runtime without code generation. . This package contains the Javadoc API documentation. debian/ant.properties0000644000000000000000000000013111530221312012047 0ustar dynlink.native=true nomixedjar.native=true javadoc.link=/usr/share/doc/classpath-doc/api/debian/libjna-java.README.Debian0000644000000000000000000000075611530221312013402 0ustar libjna-java for Debian ---------------------- According to the current Debian policy for java [1], all jvm should include /usr/lib/jni in their default library search path. Apparently this is not the case; if libjnidispatch.so is not found when calling jna, please add "-Djava.library.path=/usr/lib/jni" to your java invocation. [1] http://www.debian.org/doc/packaging-manuals/java-policy/c36.html#policy-vm -- Yulia Novozhilova Wed, 18 Jun 2008 15:44:48 +0400 debian/libjna-java.install0000644000000000000000000000005411530221312012721 0ustar build/native/libjnidispatch.so /usr/lib/jni debian/README.source0000644000000000000000000000041611530221312011334 0ustar Patch System ============ This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. See /usr/share/doc/quilt/README.source for a detailed explanation. debian/libjna-java.dirs0000644000000000000000000000003311530221312012211 0ustar usr/share/java usr/lib/jni debian/README.Debian0000644000000000000000000000072611530221312011222 0ustar jna for Debian -------------- According to the current Debian policy for java [1], all jvm should include /usr/lib/jni in their default library search path. Apparently this is not the case; if libjnidispatch.so is not found when calling jna, please add "-Djava.library.path=/usr/lib/jni" to your java invocation. -- Tiago Saboga , Sat, 26 Jul 2008 16:00:07 -0300 [1] - http://www.debian.org/doc/packaging-manuals/java-policy/c36.html#policy-vmdebian/rules0000755000000000000000000000162611572214274010260 0ustar #!/usr/bin/make -f export JAVA_HOME=/usr/lib/jvm/default-java VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') override_dh_auto_clean: if [ -f nbproject/profiler-build-impl.xml ]; then \ ant -f build.xml clean; \ fi rm -f build.number rm -rf build doc rm -rf contrib/platform/build mh_clean dh_clean override_dh_auto_build: ant -f build.xml -Dcflags_extra.native="" -Ddynlink.native=true -Dnomixedjar.native=true -Djni.md5="" jar contrib-jars ant -f build.xml javadoc # install. using platform.jar is a silly idea in /usr/share/java/ as it's bound to collide override_dh_auto_install: mh_installjar -plibjna-java -l --usj-name=jna pom.xml build/jna.jar jh_installlibs -plibjna-java build/jna-platform.jar override_dh_makeshlibs: # don't call dh_makeshlibs override_dh_compress: dh_compress -X.java binary: binary-arch binary-indep %: dh $@ --with maven-repo-helper debian/libjna-java-doc.doc-base0000644000000000000000000000034011530221312013471 0ustar Document: libjna-java-doc Title: JNA API Documentation Author: Timothy Wall and others Section: Programming Format: HTML Index: /usr/share/doc/libjna-java-doc/api/index.html Files: /usr/share/doc/libjna-java-doc/api/*.html debian/watch0000644000000000000000000000013611530221312010205 0ustar version=3 https://svn.java.net/svn/jna~svn/tags/ ([\d\.]+\d)/ debian debian/repack-source.sh debian/libjna-java.poms0000644000000000000000000000001011530221312012221 0ustar pom.xml debian/patches/0000755000000000000000000000000011572214403010614 5ustar debian/patches/10-dynlink-and-cflags.dpatch0000644000000000000000000001236611530221312015663 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 01-dynlink-and-cflags.dpatch by Tiago Saboga ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Dynamically link to system libffi instead of using own copy. @DPATCH@ diff -urNad libjna-java-3.0.4~/build.xml libjna-java-3.0.4/build.xml --- libjna-java-3.0.4~/build.xml 2008-07-25 00:33:37.000000000 -0300 +++ libjna-java-3.0.4/build.xml 2008-07-25 00:34:08.000000000 -0300 @@ -18,6 +18,8 @@ + + @@ -321,11 +323,13 @@ - + + + @@ -334,6 +338,19 @@ + + + + + + + + + + + + + - - - - - - - - - ${java.vm.name} (${java.vm.vendor}, ${java.vm.version}) java.home=${java.home} java.library.path=${java.library.path} + os.name=${os.name} + os.arch=${os.arch} Subject: disable javadoc options that are not supported by gjdoc --- a/build.xml +++ b/build.xml @@ -562,7 +562,7 @@ - + debian/patches/40-change-md5sum.dpatch0000644000000000000000000000214211530221312014645 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 04-change-md5sum.dpatch by Tiago Saboga ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Jna fails to build when it detects a change in the headers ## DP: of the native library, but it relies on the output of javah to ## DP: compute a md5sum, and javah from gcj produces different output. @DPATCH@ diff -urNad libjna-java-3.0.2~/build.xml libjna-java-3.0.2/build.xml --- libjna-java-3.0.2~/build.xml 2008-02-28 16:34:44.000000000 -0300 +++ libjna-java-3.0.2/build.xml 2008-05-23 18:50:49.000000000 -0300 @@ -40,7 +40,7 @@ - + debian/patches/07-include-platform-jar.patch0000644000000000000000000000417711572214227016115 0ustar Include a simple ant build file for the platform.jar part of the source. The next upstream version should already include this. Index: libjna-java-3.2.7/pom.xml =================================================================== --- libjna-java-3.2.7.orig/pom.xml 2011-05-22 20:06:42.104338432 +0100 +++ libjna-java-3.2.7/pom.xml 2011-05-22 20:08:00.283504785 +0100 @@ -33,6 +33,7 @@ + @@ -64,4 +65,4 @@ http://download.java.net/maven/2/ - \ No newline at end of file + Index: libjna-java-3.2.7/contrib/platform/build.xml =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ libjna-java-3.2.7/contrib/platform/build.xml 2011-06-03 18:23:26.431989502 +0100 @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + debian/patches/50-remove-gjdoc-inexistent-options.dpatch0000644000000000000000000000134711530221312020461 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 10-remove-gjdoc-inexistent-options.dpatch by Tiago Saboga ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: gjdoc fails to generate javadoc when it is given the -notimestamp ## DP: option. @DPATCH@ diff -urNad libjna-java-3.0.2~/build.xml libjna-java-3.0.2/build.xml --- libjna-java-3.0.2~/build.xml 2008-05-31 18:23:08.000000000 -0300 +++ libjna-java-3.0.2/build.xml 2008-05-31 18:23:09.000000000 -0300 @@ -472,7 +472,6 @@ - debian/patches/30-link-javadoc-to-classpath.dpatch0000644000000000000000000000150711530221312017155 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 03-link-javadoc-to-classpath.dpatch by Tiago Saboga ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Remove reference to web documentation and refer instead to ## DP: classpath-doc. @DPATCH@ diff -urNad libjna-java-3.0.2~/build.xml libjna-java-3.0.2/build.xml --- libjna-java-3.0.2~/build.xml 2008-02-28 16:34:44.000000000 -0300 +++ libjna-java-3.0.2/build.xml 2008-05-20 23:09:25.000000000 -0300 @@ -450,7 +450,7 @@ JNA API Documentation
${header}
${footer} - + debian/patches/02-builddir.patch0000644000000000000000000000102111530221312013633 0ustar Author: Yulia Novozhilova Description: no special build dir for d64 --- a/build.xml +++ b/build.xml @@ -99,7 +99,7 @@ - + debian/patches/20-set-library-path-for-tests.dpatch0000644000000000000000000000160111530221312017320 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 02-set-library-path-for-tests.dpatch by Tiago Saboga ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Set library path for junit tests. @DPATCH@ diff -urNad libjna-java-3.0.4~/build.xml libjna-java-3.0.4/build.xml --- libjna-java-3.0.4~/build.xml 2008-07-24 22:45:15.000000000 -0300 +++ libjna-java-3.0.4/build.xml 2008-07-24 22:49:56.000000000 -0300 @@ -402,6 +402,7 @@ + debian/patches/25-no-special-build-dir-for-d64.dpatch0000644000000000000000000000340311530221312017276 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 25-no-special-build-dir-for-d64.dpatch by Tiago Saboga ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Do not build files for 64 bit platforms in a separate dir, as ## DP: this would mean detecting it again in package building scripts. @DPATCH@ diff -urNad libjna-java-3.0.4~/build.xml libjna-java-3.0.4/build.xml --- libjna-java-3.0.4~/build.xml 2008-07-25 00:08:43.000000000 -0300 +++ libjna-java-3.0.4/build.xml 2008-07-25 00:11:48.000000000 -0300 @@ -76,7 +76,7 @@ - + @@ -396,16 +396,12 @@ - - - - debian/patches/04-load-native-code-from-fs.patch0000644000000000000000000000117011530221312016526 0ustar Subject: try to load native library from /usr/lib/jni if system property jna.boot.library.path is not set Author: Jan Dittberner --- a/src/com/sun/jna/Native.java +++ b/src/com/sun/jna/Native.java @@ -648,6 +648,9 @@ private static void loadNativeLibrary() { String libName = "jnidispatch"; String bootPath = System.getProperty("jna.boot.library.path"); + if (bootPath == null) { + bootPath = "/usr/lib/jni"; + } if (bootPath != null) { String[] dirs = bootPath.split(File.pathSeparator); for (int i = 0; i < dirs.length; ++i) { debian/patches/05-support-gnu-kfreebsd.patch0000644000000000000000000000156211530221312016140 0ustar Author: Jan Dittberner Subject: patch build.xml and native/Makefile to support Debian GNU/kFreeBSD --- a/native/Makefile +++ b/native/Makefile @@ -22,6 +22,7 @@ OS=$(shell uname | sed -e 's/\(CYGWIN\|MINGW32\).*/win32/g' \ -e 's/SunOS.*/solaris/g' \ + -e 's/GNU\/kFreeBSD/linux/g' \ -e 's/FreeBSD.*/freebsd/g' \ -e 's/OpenBSD.*/openbsd/g' \ -e 's/Darwin.*/darwin/g' \ --- a/build.xml +++ b/build.xml @@ -129,6 +129,9 @@ + + + debian/patches/01-nbproject.patch0000644000000000000000000000106511530221312014032 0ustar Author: Rene Engelhard Description: fix build.xml to remove nbproject usage as we don't have it. --- a/build.xml +++ b/build.xml @@ -647,7 +647,6 @@ - debian/patches/series0000644000000000000000000000034311572214375012041 0ustar 01-nbproject.patch 02-builddir.patch 03-dynlink-and-cflags.patch 04-load-native-code-from-fs.patch 05-support-gnu-kfreebsd.patch 06-remove-gjdoc-inexistent-options.patch 07-include-platform-jar.patch 08-multiarch-support.patch debian/patches/03-dynlink-and-cflags.patch0000644000000000000000000000314311530221312015512 0ustar Author: Yulia Novozhilova Description: dynlink and cflags --- a/build.xml +++ b/build.xml @@ -393,6 +393,19 @@ + + + + + + + + + + + + + - - - - - - - - -