debian/0000755000000000000000000000000012225116377007174 5ustar debian/maven.ignoreRules0000644000000000000000000000073312224644133012520 0ustar com.ibm.websphere websphere_uow_api * * * * javax.xml.bind * * * * * com.sun.xml.bind * * * * * simple-jndi simple-jndi * * * * org.apache.openjpa openjpa-maven-plugin * * * * org.apache.openjpa openjpa-persistence-jdbc * * * * org.codehaus.mojo ianal-maven-plugin * * * * org.codehaus.mojo buildnumber-maven-plugin * * * * org.apache.maven.plugins maven-checkstyle-plugin * * * * org.apache.rat apache-rat-plugin * * * * org.apache.maven.plugins maven-source-plugin * * * * debian/orig-tar.excludes0000644000000000000000000000013212210166205012437 0ustar openjpa-2*/openjpa-kernel/internal-repository/com/ibm/websphere/websphere_uow_api/0.0.1/* debian/libopenjpa-java.doc-base.10000644000000000000000000000052312210734245013766 0ustar Document: libopenjpa-java-releasenotes Title: Apache OpenJPA 2.0 Release Notes Abstract: OpenJPA is Apache's implementation of Sun's Java Persistence 2.0 API (JSR-317 JPA 2.0) specification Section: Programming Format: HTML Index: /usr/share/doc/libopenjpa-java/RELEASE-NOTES.html Files: /usr/share/doc/libopenjpa-java/RELEASE-NOTES.html debian/libopenjpa-java.install0000644000000000000000000000006212210166205013611 0ustar RELEASE-NOTES.html usr/share/doc/libopenjpa-java debian/changelog0000644000000000000000000000274412225112541011042 0ustar openjpa (2.2.2-1) unstable; urgency=low [ Miguel Landaeta ] * New upstream release. (Closes: #716937). This release includes a fix for security issue CVE-2013-1768 that allowed remote attackers to execute arbitrary code. * Switch build system from Ant to Maven since that was upstream use. Replace debhelper with cdbs. Several Maven plugins and libraries were added to dependency lists. * Bump Standards-Version to 3.9.4. No changes were required. * Added Stephen Nelson to Uploaders list. * Drop java7-compat.diff patch, it's not needed anymore. * Use canonical form of Vcs-* fields. * Remove obsolete DMUA header. * OpenJPA user manual is no longer included in -doc. [ Stephen Nelson ] * Fix FTBFS cause by libhsqldb-java API changes. (Closes: #706176). -- Miguel Landaeta Sun, 06 Oct 2013 20:39:22 -0300 openjpa (2.0.1-1) unstable; urgency=low [ Miguel Landaeta ] * New upstream release. * Bump Standards-Version to 3.9.3. No changes were required. * Include the complete text of BSD license in debian/copyright file. * Fix FTBFS with OpenJDK 7. * Replace dependencies on libpg-java with libpostgresql-jdbc-java. (Closes: #659398). * Update copyright file. [ tony mancill ] * Set DMUA flag. -- Miguel Landaeta Mon, 25 Jun 2012 21:31:26 -0430 openjpa (2.0.0-1) unstable; urgency=low * Initial release. (Closes: #581855) -- Miguel Landaeta Wed, 02 Jun 2010 21:04:22 -0430 debian/preserve0000644000000000000000000000007112224644133010743 0ustar openjpa/dependency-reduced-pom.xml openjpa-2.2.2/pom.xml debian/source/0000755000000000000000000000000012210166205010461 5ustar debian/source/format0000644000000000000000000000001412210166205011667 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012224657237010627 5ustar debian/patches/exclude-was-uow.diff0000644000000000000000000000366312224657237014522 0ustar Description: Disable code depending on non-free code (WebSphere stuff) Author: Miguel Landaeta Forwarded: no Last-Update: 2013-10-08 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASRegistryManagedRuntime.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/ee/WASRegistryManagedRuntime.java @@ -18,12 +18,6 @@ */ package org.apache.openjpa.ee; -import com.ibm.wsspi.uow.UOWAction; -import com.ibm.wsspi.uow.UOWActionException; -import com.ibm.wsspi.uow.UOWException; -import com.ibm.wsspi.uow.UOWManager; -import com.ibm.wsspi.uow.UOWManagerFactory; - /** * WASRegistryManagedRuntime provides WebSphere specific extensions to * {@link RegistryManagedRuntime}. Currently these extensions consist of using @@ -38,37 +32,7 @@ */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { - try { - UOWManagerFactory.getUOWManager().runUnderUOW( - UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, - new DelegatingUOWAction(runnable)); - } - catch(UOWActionException e ) { - RuntimeException re = new RuntimeException(e.getMessage()); - re.initCause(e); - throw re; - } - catch(UOWException e ) { - RuntimeException re = new RuntimeException(e.getMessage()); - re.initCause(e); - throw re; - } + throw new RuntimeException("Not implemented"); } - - /** - * Delegate for the WebSphere proprietary UOWAction interface. Enables a - * {@link Runnable} to be passed in to the WebSphere UOWManager. - */ - class DelegatingUOWAction implements UOWAction { - Runnable _del; - - public DelegatingUOWAction(Runnable delegate) { - _del = delegate; - } - - public void run() throws Exception { - _del.run(); - } - } } debian/patches/fix_poms.diff0000644000000000000000000002136312224644133013301 0ustar Description: Modify dependencies list to allow modules to build with Debian maven repo Author: Miguel Landaeta Forwarded: no Last-Update: 2013-09-01 --- openjpa-2.2.2.orig/openjpa-lib/pom.xml +++ openjpa-2.2.2/openjpa-lib/pom.xml @@ -41,43 +41,52 @@ jakarta-regexp jakarta-regexp test + debian commons-logging commons-logging provided + debian log4j log4j provided + 1.2.x org.slf4j slf4j-api provided + debian commons-lang commons-lang + debian org.apache.ant ant provided + debian commons-collections commons-collections + 3.x net.sourceforge.serp serp + debian org.apache.geronimo.specs geronimo-validation_1.0_spec provided + debian --- openjpa-2.2.2.orig/openjpa-kernel/pom.xml +++ openjpa-2.2.2/openjpa-kernel/pom.xml @@ -45,14 +45,17 @@ org.apache.geronimo.specs geronimo-jms_1.1_spec + debian org.apache.geronimo.specs geronimo-jta_1.1_spec + debian commons-pool commons-pool + debian com.ibm.websphere @@ -64,6 +67,7 @@ org.apache.ant ant provided + debian --- openjpa-2.2.2.orig/openjpa-jdbc/pom.xml +++ openjpa-2.2.2/openjpa-jdbc/pom.xml @@ -47,42 +47,50 @@ jaxb-api compile true + debian com.sun.xml.bind jaxb-impl compile true + debian hsqldb hsqldb provided + debian postgresql postgresql provided + 9.2.jdbc3 commons-dbcp commons-dbcp provided + debian org.apache.ant ant provided + debian org.jmock jmock test + 2.x org.jmock jmock-junit3 test + 2.x --- openjpa-2.2.2.orig/openjpa-persistence/pom.xml +++ openjpa-2.2.2/openjpa-persistence/pom.xml @@ -45,11 +45,13 @@ org.apache.geronimo.specs geronimo-jpa_2.0_spec + debian org.apache.geronimo.specs geronimo-validation_1.0_spec provided + debian --- openjpa-2.2.2.orig/openjpa-persistence-jdbc/pom.xml +++ openjpa-2.2.2/openjpa-persistence-jdbc/pom.xml @@ -826,22 +826,26 @@ commons-collections commons-collections test + 3.x jakarta-regexp jakarta-regexp test + debian javax.xml.bind jaxb-api test + debian com.sun.xml.bind jaxb-impl test + debian simple-jndi --- openjpa-2.2.2.orig/openjpa-slice/pom.xml +++ openjpa-2.2.2/openjpa-slice/pom.xml @@ -51,6 +51,7 @@ org.apache.geronimo.specs geronimo-jpa_2.0_spec test + debian org.apache.openjpa --- openjpa-2.2.2.orig/openjpa/pom.xml +++ openjpa-2.2.2/openjpa/pom.xml @@ -58,6 +58,7 @@ org.apache.maven.plugins maven-shade-plugin + 1.2.1 package @@ -103,6 +103,7 @@ org.apache.felix maven-bundle-plugin + 2.3.5 true --- openjpa-2.2.2.orig/openjpa-jest/pom.xml +++ openjpa-2.2.2/openjpa-jest/pom.xml @@ -45,6 +45,7 @@ org.apache.geronimo.specs geronimo-jpa_2.0_spec + debian org.apache.openjpa --- openjpa-2.2.2.orig/openjpa-xmlstore/pom.xml +++ openjpa-2.2.2/openjpa-xmlstore/pom.xml @@ -60,6 +60,7 @@ + debian/patches/series0000644000000000000000000000011312224644133012026 0ustar 706176_hsql-upstream-fix-2390-2391.diff fix_poms.diff exclude-was-uow.diff debian/patches/706176_hsql-upstream-fix-2390-2391.diff0000644000000000000000000000605512224644133016670 0ustar Description: Upstream fix for libhsqldb-java 2.2.x API change Origin: upstream Bug-Debian: http://bugs.debian.org/706176 Forwarded: no Last-Update: 2013-09-01 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/HSQLDictionary.java @@ -18,6 +18,7 @@ */ package org.apache.openjpa.jdbc.sql; +import java.lang.reflect.Field; import java.math.BigDecimal; import java.sql.Connection; import java.sql.DatabaseMetaData; @@ -27,7 +28,6 @@ import java.util.Arrays; import org.apache.commons.lang.StringUtils; -import org.hsqldb.Trace; import org.apache.openjpa.jdbc.identifier.DBIdentifier; import org.apache.openjpa.jdbc.kernel.exps.FilterValue; import org.apache.openjpa.jdbc.schema.Column; @@ -50,6 +50,8 @@ public boolean cacheTables = false; private int dbMajorVersion; + private int dbMinorVersion; + private int violation_of_unique_index_or_constraint; private SQLBuffer _oneBuffer = new SQLBuffer(this).append("1"); @@ -114,6 +116,28 @@ // but doesn't support it for columns references ("schema.table.column") useSchemaName = false; } + if (dbMajorVersion > 1 && dbMinorVersion > 0) { + nextSequenceQuery += " LIMIT 1"; + } + String packageName; + String fieldName; + if (dbMajorVersion > 1) { + // default value for "X_23505" + violation_of_unique_index_or_constraint = 104; + packageName = "org.hsqldb.error.ErrorCode"; + fieldName = "X_23505"; + } else { + // default value for "VIOLATION_OF_UNIQUE_INDEX" + violation_of_unique_index_or_constraint = 9; + packageName = "org.hsqldb.Trace"; + fieldName = "VIOLATION_OF_UNIQUE_INDEX"; + } + try { + Class cls = Class.forName(packageName); + Field fld = cls.getField(fieldName); + violation_of_unique_index_or_constraint = fld.getInt(null); + } catch (Exception e) { + } } /** @@ -126,11 +150,13 @@ if (isJDBC3) { dbMajorVersion = metaData.getDatabaseMajorVersion(); + dbMinorVersion = metaData.getDatabaseMinorVersion(); } else { // String is like "2.0.0" String productVersion = metaData.getDatabaseProductVersion(); String[] version = productVersion.split("\\.") ; dbMajorVersion = Integer.parseInt(version[0]) ; + dbMinorVersion = Integer.parseInt(version[1]); } } @@ -375,7 +401,7 @@ Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException - && causes[0].getErrorCode() == -Trace.VIOLATION_OF_UNIQUE_INDEX) { + && causes[0].getErrorCode() == -violation_of_unique_index_or_constraint) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } debian/rules0000755000000000000000000000062212225112276010246 0ustar #!/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_DOC_TARGET := javadoc:javadoc javadoc:aggregate DEB_MAVEN_ARGS := -e DEB_MAVEN_BUILD_TARGET := install common-post-build-indep:: jh_installjavadoc -v get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename debian/orig-tar.sh0000755000000000000000000000067712210166205011256 0ustar #!/bin/sh set -e # called by uscan with '--upstream-version' echo "version $2" package=`dpkg-parsechangelog | sed -n 's/^Source: //p'` version=$2 tarball=$3 TAR=${package}_${version}.orig.tar.gz DIR=${package}-${version}.orig unzip $tarball && mv "apache-${package}-${version}-source" $DIR GZIP=--best tar --numeric --group 0 --owner 0 -c -v -z -f $TAR \ --anchored -X debian/orig-tar.excludes $DIR rm -rf $tarball $DIR debian/control0000644000000000000000000000502612224657127010604 0ustar Source: openjpa Maintainer: Debian Java Maintainers Uploaders: Miguel Landaeta , Stephen Nelson Section: java Priority: optional Build-Depends: debhelper (>= 7.0.50), default-jdk, javahelper, ant, javacc, ant-optional, libcommons-lang-java, libcommons-collections3-java, glassfish-javaee, libpostgresql-jdbc-java, libhsqldb-java, libcommons-pool-java, liblog4j1.2-java, libcommons-logging-java, aspectj, libserp-java, libgeronimo-validation-1.0-spec-java, cdbs, libgeronimo-jpa-2.0-spec-java, xmlto, libmaven-antrun-plugin-java, libjavacc-maven-plugin-java, libmaven-dependency-plugin-java, libgeronimo-jms-1.1-spec-java, libmaven-enforcer-plugin-java, libderby-java, libmaven-javadoc-plugin-java, libhttpunit-java (>= 1.7+dfsg-10~), libcommons-jci-rhino-java, maven-debian-helper, libmaven-bundle-plugin-java, libmaven-install-plugin-java, libgeronimo-jta-1.1-spec-java, libcommons-dbcp-java, libjmock2-java (>= 2.7~), libmaven-shade-plugin-java Standards-Version: 3.9.4 Homepage: http://openjpa.apache.org/ Vcs-Git: git://anonscm.debian.org/pkg-java/openjpa.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/openjpa.git Package: libopenjpa-java Architecture: all Depends: libcommons-lang-java, libcommons-collections3-java, glassfish-javaee, libpostgresql-jdbc-java, libhsqldb-java, libcommons-pool-java, liblog4j1.2-java, libcommons-logging-java, libserp-java, libgeronimo-validation-1.0-spec-java, libgeronimo-jpa-2.0-spec-java, libgeronimo-jms-1.1-spec-java, libderby-java, libcommons-jci-rhino-java, libgeronimo-jta-1.1-spec-java, libcommons-dbcp-java, ${misc:Depends} Suggests: aspectj, libopenjpa-java-doc (= ${binary:Version}) Description: Java Persistence 2.0 API (JPA) implementation library OpenJPA is Apache's implementation of Sun's Java Persistence 2.0 API (JSR-317 JPA 2.0) specification for the transparent persistence of Java objects. . It is an object-relational mapping (ORM) solution for the Java language, which simplifies storing objects in databases. Package: libopenjpa-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Suggests: libopenjpa-java (= ${binary:Version}) Description: Documentation for libopenjpa-java Documentation for OpenJPA that is Apache's implementation of Sun's Java Persistence 2.0 API (JSR-317 JPA 2.0) specification for the transparent persistence of Java objects. . It is an object-relational mapping (ORM) solution for the Java language, which simplifies storing objects in databases. debian/libopenjpa-java.poms0000644000000000000000000000555212224644133013140 0ustar # List of POM files for the package # Format of this file is: # [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 tag from the POM # --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=: a list of XML elements to keep in the POM # during a clean operation with mh_cleanpom or mh_installpom # --artifact=: 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 to use when installing the library in /usr/share/java # --usj-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=: the destination for the real jar. # It will be installed with mh_install. [mh_install] # --classifier=: Optional, the classifier for the jar. Empty by default. # --site-xml=: Optional, the location for site.xml if it needs to be installed. # Empty by default. [mh_install] # pom.xml --no-parent openjpa-lib/pom.xml --has-package-version --java-lib --no-parent openjpa-kernel/pom.xml --has-package-version --java-lib --no-parent openjpa-jdbc/pom.xml --has-package-version --java-lib --no-parent openjpa-persistence/pom.xml --has-package-version --java-lib --no-parent openjpa-persistence-jdbc/pom.xml --has-package-version --java-lib --no-parent openjpa-persistence-locking/pom.xml --ignore openjpa-xmlstore/pom.xml --has-package-version --java-lib --no-parent openjpa-slice/pom.xml --has-package-version --java-lib --no-parent openjpa-jest/pom.xml --has-package-version --java-lib --no-parent openjpa/pom.xml --has-package-version --java-lib --no-parent openjpa-project/pom.xml --ignore openjpa-examples/pom.xml --ignore openjpa-examples/simple/pom.xml --ignore openjpa-examples/image-gallery/pom.xml --ignore openjpa-examples/openbooks/pom.xml --ignore openjpa-integration/pom.xml --ignore openjpa-integration/daytrader/pom.xml --ignore openjpa-integration/examples/pom.xml --ignore openjpa-integration/slf4j/pom.xml --ignore openjpa-integration/tck/pom.xml --ignore openjpa-integration/validation/pom.xml --ignore openjpa-integration/jmx/pom.xml --ignore openjpa-all/pom.xml --ignore openjpa-tools/pom.xml --ignore openjpa-tools/openjpa-maven-plugin/pom.xml --ignore debian/libopenjpa-java-doc.install0000644000000000000000000000007612224644133014367 0ustar openjpa-examples/* usr/share/doc/libopenjpa-java/examples debian/compat0000644000000000000000000000000212210166205010357 0ustar 7 debian/maven.properties0000644000000000000000000000011112224644133012404 0ustar maven.test.skip=true maven.compiler.source=1.5 maven.compiler.target=1.6 debian/maven.publishedRules0000644000000000000000000000000112224644133013200 0ustar debian/maven.cleanIgnoreRules0000644000000000000000000000000112224644133013447 0ustar debian/libopenjpa-java-doc.javadoc0000644000000000000000000000006712225115112014317 0ustar target/site/apidocs usr/share/doc/libopenjpa-java/api debian/README.source0000644000000000000000000000067712210166205011352 0ustar The upstream tarball has been modified as follows, to comply with DFSG: * websphere_uow_api-0.0.1.* files were removed since those are part of IBM Websphere Application Server and this software is non-free. Those files were located at this directory: apache-openjpa-2.0.0-source/openjpa-kernel/internal-repository/com/ibm/websphere/websphere_uow_api/0.0.1 -- Miguel Landaeta Fri, 28 May 2010 20:50:47 -0430 debian/README.Debian0000644000000000000000000000106212210166205011221 0ustar ------------------ openjpa for Debian ------------------ *** Removal of functionalities *** Apache OpenJPA 2.0 Debian package doesn't contain some of the functionalities of upstream binary releases. Here is a list of excluded files regarding original content of Apache OpenJPA 2.0.0: * libopenjpa-java [non-free] IBM Websphere Application Server is non-free software org/apache/openjpa/ee/WASRegistryManagedRuntime.class org/apache/openjpa/ee/AutomaticManagedRuntime.class -- Miguel Landaeta Fri, 28 May 2010 23:30:28 -0430 debian/copyright0000644000000000000000000004753412210166205011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: OpenJPA Upstream-Contact: Apache OpenJPA project Source: http://openjpa.apache.org/ Files: * Copyright: © 2006-2010 Apache Software Foundation (ASF) 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. . The full text of the Apache 2.0 license is distributed in /usr/share/common-licenses/Apache-2.0 on Debian systems. Files: openjpa-persistence/src/main/resources/org/apache/openjpa/persistence/*.rsrc License: GPL-2 or CDDL Copyright: © 2005-2007 Sun Microsystems, Inc License: GPL-2 This program 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; either version 2 of the License, or (at your option) any later version. . This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . The full text of the GNU General Public License version 2 is distributed in /usr/share/common-licenses/GPL-2 on Debian systems. License: CDDL COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 . 1. Definitions. . 1.1. “Contributor” means each individual or entity that creates or contributes to the creation of Modifications. . 1.2. “Contributor Version” means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor. . 1.3. “Covered Software” means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof. . 1.4. “Executable” means the Covered Software in any form other than Source Code. . 1.5. “Initial Developer” means the individual or entity that first makes Original Software available under this License. . 1.6. “Larger Work” means a work which combines Covered Software or portions thereof with code not governed by the terms of this License. . 1.7. “License” means this document. . 1.8. “Licensable” means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein. . 1.9. “Modifications” means the Source Code and Executable form of any of the following: . A. Any file that results from an addition to, deletion from or modification of the contents of a file containing Original Software or previous Modifications; . B. Any new file that contains any part of the Original Software or previous Modification; or . C. Any new file that is contributed or otherwise made available under the terms of this License. . 1.10. “Original Software” means the Source Code and Executable form of computer software code that is originally released under this License. . 1.11. “Patent Claims” means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor. . 1.12. “Source Code” means (a) the common form of computer software code in which modifications are made and (b) associated documentation included in or with such code. . 1.13. “You” (or “Your”) means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, “You” includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. . 2. License Grants. . 2.1. The Initial Developer Grant. . Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, the Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license: . (a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer, to use, reproduce, modify, display, perform, sublicense and distribute the Original Software (or portions thereof), with or without Modifications, and/or as part of a Larger Work; and . (b) under Patent Claims infringed by the making, using or selling of Original Software, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Software (or portions thereof). . (c) The licenses granted in Sections 2.1(a) and (b) are effective on the date Initial Developer first distributes or otherwise makes the Original Software available to a third party under the terms of this License. . (d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for code that You delete from the Original Software, or (2) for infringements caused by: (i) the modification of the Original Software, or (ii) the combination of the Original Software with other software or devices. . 2.2. Contributor Grant. . Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: . (a) under intellectual property rights (other than patent or trademark) Licensable by Contributor to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof), either on an unmodified basis, with other Modifications, as Covered Software and/or as part of a Larger Work; and . (b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: (1) Modifications made by that Contributor (or portions thereof); and (2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination). . (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first distributes or otherwise makes the Modifications available to a third party. . (d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for any code that Contributor has deleted from the Contributor Version; (2) for infringements caused by: (i) third party modifications of Contributor Version, or (ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or (3) under Patent Claims infringed by Covered Software in the absence of Modifications made by that Contributor. . 3. Distribution Obligations. . 3.1. Availability of Source Code. . Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License. You must include a copy of this License with every copy of the Source Code form of the Covered Software You distribute or otherwise make available. You must inform recipients of any such Covered Software in Executable form as to how they can obtain such Covered Software in Source Code form in a reasonable manner on or through a medium customarily used for software exchange. . 3.2. Modifications. . The Modifications that You create or to which You contribute are governed by the terms of this License. You represent that You believe Your Modifications are Your original creation(s) and/or You have sufficient rights to grant the rights conveyed by this License. . 3.3. Required Notices. . You must include a notice in each of Your Modifications that identifies You as the Contributor of the Modification. You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer. . 3.4. Application of Additional Terms. . You may not offer or impose any terms on any Covered Software in Source Code form that alters or restricts the applicable version of this License or the recipients’ rights hereunder. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, you may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear that any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer. . 3.5. Distribution of Executable Versions. . You may distribute the Executable form of the Covered Software under the terms of this License or under the terms of a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable form does not attempt to limit or alter the recipient’s rights in the Source Code form from the rights set forth in this License. If You distribute the Covered Software in Executable form under a different license, You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. . 3.6. Larger Works. . You may create a Larger Work by combining Covered Software with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Software. . 4. Versions of the License. . 4.1. New Versions. . Sun Microsystems, Inc. is the initial license steward and may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Except as provided in Section 4.3, no one other than the license steward has the right to modify this License. . 4.2. Effect of New Versions. . You may always continue to use, distribute or otherwise make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. If the Initial Developer includes a notice in the Original Software prohibiting it from being distributed or otherwise made available under any subsequent version of the License, You must distribute and make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. Otherwise, You may also choose to use, distribute or otherwise make the Covered Software available under the terms of any subsequent version of the License published by the license steward. . 4.3. Modified Versions. . When You are an Initial Developer and You want to create a new license for Your Original Software, You may create and use a modified version of this License if You: (a) rename the license and remove any references to the name of the license steward (except to note that the license differs from this License); and (b) otherwise make it clear that the license contains terms which differ from this License. . 5. DISCLAIMER OF WARRANTY. . COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN “AS IS” BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. . 6. TERMINATION. . 6.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. . 6.2. If You assert a patent infringement claim (excluding declaratory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You assert such claim is referred to as “Participant”) alleging that the Participant Software (meaning the Contributor Version where the Participant is a Contributor or the Original Software where the Participant is the Initial Developer) directly or indirectly infringes any patent, then any and all rights granted directly or indirectly to You by such Participant, the Initial Developer (if the Initial Developer is not the Participant) and all Contributors under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively and automatically at the expiration of such 60 day notice period, unless if within such 60 day period You withdraw Your claim with respect to the Participant Software against such Participant either unilaterally or pursuant to a written agreement with Participant. . 6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user licenses that have been validly granted by You or any distributor hereunder prior to termination (excluding licenses granted to You by any distributor) shall survive termination. . 7. LIMITATION OF LIABILITY. . UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY’S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. . 8. U.S. GOVERNMENT END USERS. . The Covered Software is a “commercial item,” as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of “commercial computer software” (as that term is defined at 48 C.F.R. § 252.227-7014(a)(1)) and “commercial computer software documentation” as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Software with only those rights set forth herein. This U.S. Government Rights clause is in lieu of, and supersedes, any other FAR, DFAR, or other clause or provision that addresses Government rights in computer software under this License. . 9. MISCELLANEOUS. . This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by the law of the jurisdiction specified in a notice contained within the Original Software (except to the extent applicable law, if any, provides otherwise), excluding such jurisdiction’s conflict-of-law provisions. Any litigation relating to this License shall be subject to the jurisdiction of the courts located in the jurisdiction and venue specified in a notice contained within the Original Software, with the losing party responsible for costs, including, without limitation, court costs and reasonable attorneys’ fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License. You agree that You alone are responsible for compliance with the United States export administration regulations (and the export control laws and regulation of any other countries) when You use, distribute or otherwise make available any Covered Software. . 10. RESPONSIBILITY FOR CLAIMS. . As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability. Files: debian/* Copyright: © 2010,2012 Miguel Landaeta License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. 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. 3. Neither the name of the University 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 REGENTS 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 REGENTS 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. debian/maven.rules0000644000000000000000000000265112224644133011355 0ustar commons-beanutils commons-beanutils jar s/.*/debian/ * * commons-collections commons-collections jar s/3\..*/3.x/ * * commons-dbcp commons-dbcp jar s/.*/debian/ * * junit junit jar s/3\..*/3.x/ * * net.sourceforge.serp serp jar s/.*/debian/ * * org.apache.maven apache-maven pom s/.*/3.0.4/ * * org.apache.maven maven-aether-provider jar s/.*/3.0.4/ * * org.apache.maven maven-artifact jar s/.*/3.0.4/ * * org.apache.maven maven-compat jar s/.*/3.0.4/ * * org.apache.maven maven-core jar s/.*/3.0.4/ * * org.apache.maven maven-embedder jar s/.*/3.0.4/ * * org.apache.maven maven-model-builder jar s/.*/3.0.4/ * * org.apache.maven maven-model jar s/.*/3.0.4/ * * org.apache.maven maven-plugin-api jar s/.*/3.0.4/ * * org.apache.maven maven pom s/.*/3.0.4/ * * s/regexp/jakarta-regexp/ s/regexp/jakarta-regexp/ jar s/.*/debian/ * * commons-logging s/commons-logging-api/commons-logging/ * s/.*/debian/ * * s/hsqldb/org.hsqldb/ hsqldb * s/.*/debian/ * * log4j log4j * s/1\.2\..*/1.2.x/ * * s/ant/org.apache.ant/ * * s/.*/debian/ * * s/org.apache.tomcat/javax.el/ el-api jar s/.*/2.1/ * * s/org.apache.tomcat/javax.servlet/ jsp-api jar s/.*/2.1/ * * s/org.apache.tomcat/javax.servlet/ servlet-api jar s/.*/2.5/ * * s/org.apache.felix/org.osgi/ org.osgi.core * * * * s/org.jmock/jmock/ jmock* jar s/2\..*/2.x/ * * asm asm jar s/.*/3.x/ * * postgresql postgresql jar s/.*/9.2.jdbc3/ * * jmock jmock jar s/.*/2.x/ * * jmock jmock-junit3 jar s/.*/2.x/ * * debian/watch0000644000000000000000000000031612210166205010212 0ustar version=3 opts=downloadurlmangle=s%dyn/closer.cgi%dist% \ http://openjpa.apache.org/downloads.html \ http://www.apache.org/dyn/closer.cgi/openjpa/.*/apache-openjpa-(.*)-source.zip debian debian/orig-tar.sh