debian/0000755000000000000000000000000012315301067007164 5ustar debian/control0000644000000000000000000000232512217255711010576 0ustar Source: jcc Section: python Priority: extra Maintainer: Ludovico Cavedon Build-Depends: debhelper (>= 9), python-setuptools (>= 0.6a9), openjdk-7-jdk, python-all-dev Standards-Version: 3.9.4 Homepage: http://lucene.apache.org/pylucene/jcc/ Vcs-Git: git://anonscm.debian.org/collab-maint/jcc.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/jcc.git X-Python-Version: >= 2.3 Package: jcc Architecture: any Depends: openjdk-7-jdk, ${shlibs:Depends}, ${python:Depends}, ${misc:Depends} Breaks: ${python:Breaks} Description: code generator producing a Python extension from Java classes JCC is a code generator for producing a Python extension providing access to a set of Java classes. For every Java class, JCC generates a C++ wrapper class that hides the gory details necessary for accessing methods and fields from C++ via Java's Native Invocation Interface. JCC can also generate C++ wrappers that make it possible to access these classes from Python. When generating Python wrappers, JCC produces a complete Python extension via the distutils package that makes it readily available to the Python interpreter. JCC is a project maintained by the Open Source Applications Foundation. debian/rules0000755000000000000000000000234512315301017010243 0ustar #!/usr/bin/make -f DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_ARCH_CPU ?=$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU) #DEB_HOST_ARCH_CPU gives correct path on most architectures but powerpc needs special casing JAVAARCH :=$(DEB_HOST_ARCH_CPU) # i386 # armel, arm # powerpc, ppc # , sh ifeq ($(DEB_HOST_ARCH_CPU),powerpc) JAVAARCH :=ppc endif ifeq ($(DEB_HOST_ARCH_CPU),sh4) JAVAARCH :=sh endif ifeq ($(DEB_HOST_ARCH_CPU),arm64) JAVAARCH :=aarch64 endif ifeq ($(DEB_HOST_ARCH_CPU),ppc64el) JAVAARCH :=ppc64le endif JAVA_LIB_PATH := /usr/lib/jvm/java-7-openjdk-$(DEB_HOST_ARCH)/jre/lib/$(JAVAARCH) export JCC_ARGSEP=; export JCC_LFLAGS := -L$(JAVA_LIB_PATH);-ljava;-L$(JAVA_LIB_PATH)/server;-ljvm;-Wl,-rpath=$(JAVA_LIB_PATH):$(JAVA_LIB_PATH)/server export JCC_CFLAGS := -fdollars-in-identifiers export JCC_JDK := /usr/lib/jvm/java-7-openjdk-$(DEB_HOST_ARCH) # For shared mode we need patch http://bugs.python.org/setuptools/issue43 for setuptools to be applied export NO_SHARED=1 %: dh $@ --with python2 --buildsystem=python_distutils override_dh_auto_install: dh_auto_install rm -rf debian/jcc/usr/share/pyshared/jcc/patches override_dh_auto_clean: dh_auto_clean rm -rf build/* rm -f jcc/config.py debian/jcc.lintian-overrides0000644000000000000000000000020612217255655013315 0ustar # allow RPATH against libjava.so in openjdk, until http://bugs.debian.org/562622 is solved. jcc binary: binary-or-shlib-defines-rpath debian/watch0000644000000000000000000000011112217255655010222 0ustar version=3 http://pypi.python.org/packages/source/J/JCC/JCC-(.*)\.tar\.gz debian/compat0000644000000000000000000000000212217255655010376 0ustar 9 debian/copyright0000644000000000000000000000224012217255655011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: JCC Upstream-Contact: Andi Vadja Source: http://pypi.python.org/pypi/JCC Files: * Copyright: 2009, The Apache Software Foundation 2007-2008, Open Source Applications Foundation License: Apache Files: debian/* Copyright: 2010, Ludovico Cavedon 2008, Jeff Breidenbach License: Apache License: Apache 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 full text of the of the Apache License, Version 2.0 can be found in file `/usr/share/common-licenses/Apache-2.0'. debian/source/0000755000000000000000000000000012217255655010500 5ustar debian/source/format0000644000000000000000000000001412217255655011706 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012217255655010627 5ustar debian/patches/avoid-ftbfs-unknown-archs.patch0000644000000000000000000000175512217255655016657 0ustar Description: avoid failing on unknown architectures in case JCC_FLAGS is defined Author: Ludovico Cavedon Forwarded: not-needed Index: jcc/setup.py =================================================================== --- jcc.orig/setup.py 2013-09-21 01:13:24.855368009 -0700 +++ jcc/setup.py 2013-09-21 01:15:14.319363680 -0700 @@ -20,7 +20,7 @@ elif sys.platform == "win32" and "--compiler=mingw32" in sys.argv: platform = 'mingw32' else: - platform = sys.platform + platform = sys.platform.split('-')[0] # Add or edit the entry corresponding to your system in the JDK, INCLUDES, # CFLAGS, DEBUG_CFLAGS, LFLAGS and JAVAC dictionaries below. @@ -155,7 +155,10 @@ } if platform == 'linux2': - LFLAGS['linux2'] = LFLAGS['linux2/%s' %(machine)] + try: + LFLAGS['linux2'] = LFLAGS['linux2/%s' %(machine)] + except KeyError: + pass elif platform == 'darwin': if JAVAHOME is not None: INCLUDES['darwin'] = INCLUDES['darwin/home'] debian/patches/series0000644000000000000000000000004012217255655012036 0ustar avoid-ftbfs-unknown-archs.patch debian/changelog0000644000000000000000000001356512315301061011042 0ustar jcc (2.17-1ubuntu1) trusty; urgency=medium * Fix java arch directory on arm64 and ppc64el. -- Matthias Klose Fri, 28 Mar 2014 15:07:14 +0100 jcc (2.17-1) unstable; urgency=low * Imported Upstream version 2.17 * Refresh avoid-ftbfs-unknown-archs.patch. * Update Standards-Version to 3.9.4. * Change Vcs fields to canonical format. -- Ludovico Cavedon Sat, 21 Sep 2013 02:10:36 -0700 jcc (2.13-1.1) unstable; urgency=low * Non-maintainer upload. * Transition package to use openjdk-7: - d/control: BD on openjdk-7-jdk, switch runtime dependency to openjdk-7-jre. - d/rules: Switch openjdk-6 paths to openjdk-7 equivalents. Thanks to James Page (Closes: #684384) -- Sylvestre Ledru Thu, 13 Jun 2013 09:22:28 +0200 jcc (2.13-1) unstable; urgency=low * Imported Upstream version 2.13 * Update Standrads-Version to 3.9.3. * Use debhelper compat 9. * Update copyright file to machine-readable format 1.0. -- Ludovico Cavedon Mon, 25 Jun 2012 00:27:38 -0700 jcc (2.12-1) unstable; urgency=low * Imported Upstream version 2.12 -- Ludovico Cavedon Sun, 01 Jan 2012 00:52:12 +0100 jcc (2.11-3) unstable; urgency=low * Link against libjvm.so (LP: #848931, thanks to James Page @ Ubuntu). -- Ludovico Cavedon Sat, 29 Oct 2011 15:57:10 -0700 jcc (2.11-2) unstable; urgency=low * Fix arch-dependent paths in rules file (thanks to Nobuhiro Iwamatsu, Closes: #644585). -- Ludovico Cavedon Sun, 09 Oct 2011 14:50:26 -0700 jcc (2.11-1) unstable; urgency=low * New upstream release. * Change paths to openjdk libraries (for openjdk >= 6b23~pre9-1~, Closes: #642814). -- Ludovico Cavedon Tue, 27 Sep 2011 23:51:41 -0700 jcc (2.9-1) unstable; urgency=low * New upstream release. * Update Standards-Version to 3.9.2. -- Ludovico Cavedon Thu, 07 Jul 2011 22:03:05 -0700 jcc (2.8-1) unstable; urgency=low * New upstream release. -- Ludovico Cavedon Thu, 14 Apr 2011 23:53:06 -0700 jcc (2.7-2) unstable; urgency=low * Upload to unstable. * Drop cdbs and switch to debhelper 8 and dh_python2. -- Ludovico Cavedon Sat, 02 Apr 2011 15:03:16 -0700 jcc (2.7-1) experimental; urgency=low * New upstream release. * Update Standards-Version to 3.9.1. -- Ludovico Cavedon Fri, 17 Dec 2010 23:15:17 +0100 jcc (2.6-1) unstable; urgency=low * New upstream release. * Fix typo in README.Debian. * Refresh avoid-ftbfs-unknown-archs.patch. * Update Standards-Version to 3.9.0. -- Ludovico Cavedon Sun, 18 Jul 2010 11:16:04 +0200 jcc (2.5.1-1) unstable; urgency=low * New upstream release. * Update to Standards-Version 3.8.4. * Add support for SH4 architecture. Thanks to Nobuhiro Iwamatsu (closes: 571059). -- Ludovico Cavedon Thu, 18 Mar 2010 23:20:13 -0700 jcc (2.5-3) unstable; urgency=low * Merge patch from Ubuntu by Onkar Shinde: - When CPU type is i686, use the JRE lib directory corresponding to i386. Fixes FTBFS on lpia. -- Ludovico Cavedon Sun, 31 Jan 2010 18:00:47 -0800 jcc (2.5-2) unstable; urgency=low * Update avoid-ftbfs-unknown-archs.patch to work around bug #565367. -- Ludovico Cavedon Thu, 14 Jan 2010 22:14:27 -0800 jcc (2.5-1) unstable; urgency=low * Package takeover because of MIA maintainer. * Add avoid-ftbfs-unknown-archs.patch to avoid FTBFS on many archs. * Add Vcs-* headers. * Update copyright file to DEP-5. * Update to Standards-Version 3.8.3 and debhelper compat 7. * Update to source package version 3.0 (quilt). -- Ludovico Cavedon Tue, 12 Jan 2010 01:15:19 -0800 jcc (2.5-0.1) unstable; urgency=low * Non-maintainer upload (closes: 562405). * New upstream release (closes: 533486). * Add watch file. * Depend on python-all-dev so it will be built against all supported python versions. * Disable shared mode, as it requires patched setuptools (and lower depends on python-setuptools version). * Fix separators in JCC_LFLAGS. * Add depends on ${misc:Depends} required for debhelper. * Remove debina/pycompat and add X.-Python-Version control fileds. * Add lintian override for libjava.so from openjdk, until bug #562622 is solved. * Update copyright file (new Apache 2 license). -- Ludovico Cavedon Sat, 26 Dec 2009 18:50:19 +0100 jcc (1.9-8) unstable; urgency=low * Add ${python:Depends} (closes: 497131) -- Jeff Breidenbach Sat, 30 Aug 2008 18:31:31 -0700 jcc (1.9-7.1) unstable; urgency=low * Non-maintainer upload. * use -fdollars-in-identifiers to allow build on arm*. (closes: 494690) -- Riku Voipio Fri, 22 Aug 2008 22:45:46 +0300 jcc (1.9-7) unstable; urgency=low * Fix important debian/changelog typo -- Jeff Breidenbach Sun, 10 Aug 2008 11:29:55 -0700 jcc (1.9-6) unstable; urgency=low * Fix powerpc build problem (closes: 494496) -- Jeff Breidenbach Sun, 10 Aug 2008 10:45:47 -0700 jcc (1.9-5) unstable; urgency=low * fix build on non-AMD64 (closes: 493992) -- Jeff Breidenbach Thu, 07 Aug 2008 21:54:09 -0700 jcc (1.9-4) unstable; urgency=low * fix a dependency bug -- Jeff Breidenbach Wed, 23 Jul 2008 12:33:40 -0700 jcc (1.9-3) unstable; urgency=low * Move to main using OpenJDK -- Jeff Breidenbach Tue, 22 Jul 2008 21:20:20 -0700 jcc (1.9-2) unstable; urgency=low * Add a file to /etc/ld.so.conf.d -- Jeff Breidenbach Mon, 02 Jun 2008 16:24:31 -0700 jcc (1.9-1) unstable; urgency=low * Initial release. -- Jeff Breidenbach Sun, 27 Apr 2008 21:33:03 -0700 debian/README.Debian0000644000000000000000000000246412217255655011247 0ustar jcc for Debian -------------- If you are wondering whether this package is working or not, run the following command. It should exit silently with no errors. $ python -m jcc or $ python -m jcc.__main__ # on Python 2.6 This package was built using rpath which is very unusual. The reason is we need to link against shared libraries shipped with Java. There's also some discussion on the upstream mailing lists, the Debian Java lists, amongst other distributions, and with the Debian ftp master. This seems like the best idea at the time; talk to the maintainer if you have a better one. Here are some references: http://wiki.debian.org/RpathIssue https://bugzilla.redhat.com/show_bug.cgi?id=449456 http://www.mail-archive.com/pylucene-dev@osafoundation.org/msg02279.html http://www.mail-archive.com/pkg-java-maintainers@lists.alioth.debian.org/msg10991.html Even though building JCC in shared mode would be better [0], right now shared mode is disabled because it requires a patch to be applied to setuptools [1]. [0] http://lists.osafoundation.org/pipermail/pylucene-dev/2008-April/002642.html [1] http://lucene.apache.org/pylucene/jcc/documentation/install.html#shared -- Jeff Breidenbach Wed, 16 Apr 2008 10:57:54 -0700 -- Ludovico Cavedon Wed, 7 Jul 2010 15:15:46 +0200 debian/docs0000644000000000000000000000002312217255655010046 0ustar README DESCRIPTION