This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to branch master in repository apache-directory-api.
commit f4add4bcc7c7ca8df1b4c3fd23a36d5ba0e10d6f Author: Emmanuel Bourg <[email protected]> Date: Thu Jun 25 00:19:05 2015 +0200 Initial packaging --- debian/README.source | 9 ++ debian/changelog | 5 + debian/compat | 1 + debian/control | 38 ++++++ debian/copyright | 67 +++++++++++ debian/libapache-directory-api-java.poms | 59 ++++++++++ debian/maven.ignoreRules | 15 +++ debian/maven.properties | 5 + debian/maven.publishedRules | 2 + debian/maven.rules | 9 ++ debian/orig-tar.sh | 20 ++++ debian/patches/01-jar-packaging.patch | 191 +++++++++++++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 21 ++++ debian/source/format | 1 + debian/watch | 4 + 16 files changed, 448 insertions(+) diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..699a7ee --- /dev/null +++ b/debian/README.source @@ -0,0 +1,9 @@ +Information about apache-directory-api +-------------------------------------- + +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..c53d4b7 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +apache-directory-api (1.0.0~M20-1) unstable; urgency=medium + + * Initial release (Closes: #789679) + + -- Emmanuel Bourg <[email protected]> Thu, 25 Jun 2015 00:13:11 +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..ca9d7ca --- /dev/null +++ b/debian/control @@ -0,0 +1,38 @@ +Source: apache-directory-api +Section: java +Priority: optional +Maintainer: Debian Java Maintainers <[email protected]> +Uploaders: Emmanuel Bourg <[email protected]> +Build-Depends: cdbs, + debhelper (>= 9), + default-jdk, + findbugs, + libantlr-maven-plugin-java, + libcommons-collections3-java, + libcommons-io-java, + libcommons-lang-java (>= 2.6), + libcommons-pool-java, + libdom4j-java, + libjaxp1.3-java, + libmaven-antrun-plugin-java, + libmaven-dependency-plugin-java, + libmaven-shade-plugin-java, + libosgi-core-java, + libslf4j-java, + libxpp3-java, + maven-debian-helper (>= 1.5), + libmina2-java +Standards-Version: 3.9.6 +Vcs-Git: git://anonscm.debian.org/pkg-java/apache-directory-api.git +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/apache-directory-api.git +Homepage: http://directory.apache.org/api/ + +Package: libapache-directory-api-java +Architecture: all +Depends: ${maven:Depends}, ${misc:Depends} +Suggests: ${maven:OptionalDepends} +Description: Apache Directory LDAP API + The Apache Directory LDAP API is an ongoing effort to provide an enhanced + LDAP API, as a replacement for JNDI and the existing LDAP API (jLdap and + Mozilla LDAP API). This is a "schema aware" API with some convenient ways + to access all types of LDAP servers, not only ApacheDS but any LDAP server. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4350f08 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,67 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Apache Directory LDAP API +Source: http://svn.apache.org/repos/asf/directory/shared/trunk + +Files: * +Copyright: 2003-2013, The Apache Software Foundation +License: Apache-2.0 + +Files: util/src/main/java/org/apache/directory/api/util/UnixCrypt.java +Copyright: 1996, Aki Yoshida + 2001, Iris Van den Broeke, Daniel Deville +License: other + Permission to use, copy, modify and distribute this software + for non-commercial or commercial purposes and without fee is + hereby granted provided that this copyright notice appears in + all copies. + +Files: ldap/model/src/test/resources/org/apache/directory/api/ldap/model/schema/parsers/* +Copyright: 1998-2007, The OpenLDAP Foundation + 1997-2003, The Internet Society +License: BSD-3-clause + Redistribution and use of this software and associated documentation + ("Software"), with or without modification, are permitted provided + that the following conditions are met: + . + 1. Redistributions in source form must retain copyright statements + and notices, + . + 2. Redistributions in binary form must reproduce applicable copyright + statements and notices, this list of conditions, and the following + disclaimer in the documentation and/or other materials provided + with the distribution, and + . + 3. Redistributions must contain a verbatim copy of this document. + . + The OpenLDAP Foundation may revise this license from time to time. + Each revision is distinguished by a version number. You may use + this Software under terms of this license revision or under the + terms of any subsequent revision of the license. + . + THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS + CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED 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 OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S) + OR OWNER(S) OF THE SOFTWARE 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. + . + The names of the authors and copyright holders must not be used in + advertising or otherwise to promote the sale, use or other dealing + in this Software without specific, written prior permission. Title + to copyright in this Software shall at all times remain with copyright + holders. + +Files: debian/* +Copyright: 2015, Emmanuel Bourg <[email protected]> +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/libapache-directory-api-java.poms b/debian/libapache-directory-api-java.poms new file mode 100644 index 0000000..09b465c --- /dev/null +++ b/debian/libapache-directory-api-java.poms @@ -0,0 +1,59 @@ +# 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 --no-parent +i18n/pom.xml --has-package-version --ignore-pom +util/pom.xml --has-package-version --ignore-pom +asn1/pom.xml --has-package-version --ignore-pom +asn1/api/pom.xml --has-package-version --ignore-pom +asn1/ber/pom.xml --has-package-version --ignore-pom +all/pom.xml --has-package-version --java-lib +ldap/pom.xml --has-package-version --ignore-pom +ldap/model/pom.xml --has-package-version --ignore-pom +ldap/codec/pom.xml --has-package-version --ignore-pom +ldap/codec/core/pom.xml --has-package-version --ignore-pom +ldap/codec/standalone/pom.xml --has-package-version --ignore-pom +ldap/schema/pom.xml --has-package-version --ignore-pom +ldap/schema/data/pom.xml --has-package-version --ignore-pom +ldap/schema/converter/pom.xml --has-package-version --ignore-pom +ldap/net/pom.xml --has-package-version --ignore-pom +ldap/net/mina/pom.xml --has-package-version --ignore-pom +ldap/client/pom.xml --has-package-version --ignore-pom +ldap/client/all/pom.xml --ignore +ldap/client/api/pom.xml --has-package-version --ignore-pom +ldap/extras/pom.xml --has-package-version --ignore-pom +ldap/extras/aci/pom.xml --has-package-version --ignore-pom +ldap/extras/codec/pom.xml --has-package-version --ignore-pom +ldap/extras/codec-api/pom.xml --has-package-version --ignore-pom +ldap/extras/sp/pom.xml --has-package-version --ignore-pom +ldap/extras/trigger/pom.xml --has-package-version --ignore-pom +ldap/extras/util/pom.xml --has-package-version --ignore-pom +dsml/pom.xml --has-package-version --ignore-pom +dsml/engine/pom.xml --has-package-version --ignore-pom +dsml/parser/pom.xml --has-package-version --ignore-pom +integ/pom.xml --ignore +distribution/pom.xml --ignore diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules new file mode 100644 index 0000000..1c6cd8b --- /dev/null +++ b/debian/maven.ignoreRules @@ -0,0 +1,15 @@ + +junit junit * * * * +org.apache.directory.junit junit-addons * * * * +org.apache.felix maven-bundle-plugin * * * * +org.apache.maven.plugins maven-jar-plugin * * * * +org.apache.maven.plugins maven-site-plugin * * * * +org.apache.maven.plugins maven-source-plugin * * * * +org.apache.maven.plugins maven-surefire-plugin * * * * +org.apache.maven.wagon wagon-ssh-external * * * * +org.apache.maven.wagon wagon-ssh * * * * +org.apache.rat apache-rat-plugin * * * * +org.ops4j.pax.exam pax-exam-container-default * * * * +org.ops4j.pax.exam pax-exam-junit * * * * +org.ops4j.pax.exam pax-exam * * * * +org.slf4j slf4j-log4j12 * * * * 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.publishedRules b/debian/maven.publishedRules new file mode 100644 index 0000000..8e3b005 --- /dev/null +++ b/debian/maven.publishedRules @@ -0,0 +1,2 @@ + +org.apache.directory.api s/api-.*/api-all/ * s/.*/debian/ * * diff --git a/debian/maven.rules b/debian/maven.rules new file mode 100644 index 0000000..2adce86 --- /dev/null +++ b/debian/maven.rules @@ -0,0 +1,9 @@ + +antlr antlr jar s/2\..*/2.x/ * * +commons-collections commons-collections jar s/3\..*/3.x/ * * +s/findbugs/com.google.code.findbugs/ annotations * s/.*/debian/ * * +log4j log4j * s/1\.2\..*/1.2.x/ * * +s/org.apache.felix/org.osgi/ org.osgi.core * * * * +org.apache.mina mina-core * s/.*/2.x/ * * +org.osgi s/org.osgi/org.osgi.core/ * s/.*/debian/ * * +org.apache.mina * s/.*/jar/ s/2\..*/2.x/ * * diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh new file mode 100755 index 0000000..c67ba88 --- /dev/null +++ b/debian/orig-tar.sh @@ -0,0 +1,20 @@ +#!/bin/sh -e +# +# Removes unwanted content from the upstream sources. +# Called by uscan with '--upstream-version' <version> <file> +# + +VERSION=$2 +TAR=../apache-directory-api_$VERSION.orig.tar.xz +DIR=apache-directory-api-$VERSION +TAG=$(echo "$VERSION" | sed -re's/~(alpha|beta|rc|M)/-\1/') + +svn export http://svn.apache.org/repos/asf/directory/shared/tags/${TAG}/ $DIR +XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR +rm -rf $DIR ../$TAG + +# move to directory 'tarballs' +if [ -r .svn/deb-layout ]; then + . .svn/deb-layout + mv $TAR $origDir && echo "moved $TAR to $origDir" +fi diff --git a/debian/patches/01-jar-packaging.patch b/debian/patches/01-jar-packaging.patch new file mode 100644 index 0000000..4b692dc --- /dev/null +++ b/debian/patches/01-jar-packaging.patch @@ -0,0 +1,191 @@ +Description: Change the packaging type from bundle to jar + (for some reason the resolution of the inter module dependencies doesn't work) +Author: Emmanuel Bourg <[email protected]> +Forwarded: not-needed +--- a/asn1/api/pom.xml ++++ b/asn1/api/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-asn1-api</artifactId> + <name>Apache Directory API ASN.1 API</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + + <description>ASN.1 API</description> + +--- a/asn1/ber/pom.xml ++++ b/asn1/ber/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-asn1-ber</artifactId> + <name>Apache Directory API ASN.1 BER</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + + <description>A BER Codec Implementation for ASN.1</description> + +--- a/dsml/engine/pom.xml ++++ b/dsml/engine/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-dsml-engine</artifactId> + <name>Apache Directory LDAP API DSML Engine</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + + <dependencies> + <dependency> +--- a/dsml/parser/pom.xml ++++ b/dsml/parser/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-dsml-parser</artifactId> + <name>Apache Directory LDAP API DSML Parser</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + + <dependencies> + <dependency> +--- a/i18n/pom.xml ++++ b/i18n/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-i18n</artifactId> + <name>Apache Directory LDAP API I18n</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>Internationalization of errors and other messages</description> + + <build> +--- a/ldap/client/api/pom.xml ++++ b/ldap/client/api/pom.xml +@@ -29,7 +29,7 @@ + + <artifactId>api-ldap-client-api</artifactId> + <name>Apache Directory LDAP API Client API</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <inceptionYear>2009</inceptionYear> + + <issueManagement> +--- a/ldap/codec/core/pom.xml ++++ b/ldap/codec/core/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-codec-core</artifactId> + <name>Apache Directory LDAP API Codec Core</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>LDAP Codec used by clients and servers</description> + + <dependencies> +--- a/ldap/extras/aci/pom.xml ++++ b/ldap/extras/aci/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-extras-aci</artifactId> + <name>Apache Directory LDAP API Extras ACI</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>Extra LDAP API for Access Control Items</description> + + <dependencies> +--- a/ldap/extras/codec-api/pom.xml ++++ b/ldap/extras/codec-api/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-extras-codec-api</artifactId> + <name>Apache Directory LDAP API Extras Codec API</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description> + Extra LDAP controls and extended operation interfaces and POJOs for the + Codec extensions used by clients and servers. +--- a/ldap/extras/codec/pom.xml ++++ b/ldap/extras/codec/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-extras-codec</artifactId> + <name>Apache Directory LDAP API Extras Codec</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description> + Extra LDAP controls and extended operation extentions for the Codec used + by clients and servers. These controls and extended operations are not +--- a/ldap/extras/sp/pom.xml ++++ b/ldap/extras/sp/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-extras-sp</artifactId> + <name>Apache Directory LDAP API Extras Stored Procedures</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>Extras LDAP API stored procedure packages used by clients and servers</description> + + <dependencies> +--- a/ldap/extras/trigger/pom.xml ++++ b/ldap/extras/trigger/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-extras-trigger</artifactId> + <name>Apache Directory LDAP API Extras Trigger</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>Extra LDAP API Trigger API</description> + + <dependencies> +--- a/ldap/extras/util/pom.xml ++++ b/ldap/extras/util/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-extras-util</artifactId> + <name>Apache Directory LDAP API Extras Util</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>LDAP API Extra utility packages used by clients and servers</description> + + <dependencies> +--- a/ldap/model/pom.xml ++++ b/ldap/model/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-model</artifactId> + <name>Apache Directory LDAP API Model</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>Common LDAP Model used by clients and servers</description> + + <dependencies> +--- a/ldap/net/mina/pom.xml ++++ b/ldap/net/mina/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-net-mina</artifactId> + <name>Apache Directory LDAP API Network MINA</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>LDAP ProtocolCodecFactory implementation based on MINA</description> + + <dependencies> +--- a/ldap/schema/converter/pom.xml ++++ b/ldap/schema/converter/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-ldap-schema-converter</artifactId> + <name>Apache Directory LDAP API Schema Converter</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + <description>LDAP Schema Converter</description> + + <dependencies> +--- a/util/pom.xml ++++ b/util/pom.xml +@@ -27,7 +27,7 @@ + + <artifactId>api-util</artifactId> + <name>Apache Directory LDAP API Utilities</name> +- <packaging>bundle</packaging> ++ <packaging>jar</packaging> + + <description>Utilities shared across this top level project</description> + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..da693f0 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +01-jar-packaging.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0ce4bd8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/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 + +install/libapache-directory-api-java:: + # Keep only the api-all artifact + rm -Rf debian/libapache-directory-api-java/usr/share/java/*.jar + rm -Rf debian/libapache-directory-api-java/usr/share/maven-repo/* + rm -Rf all/target/*-sources.jar + mh_installpom -plibapache-directory-api-java all/dependency-reduced-pom.xml + mh_installjar -plibapache-directory-api-java --java-lib --usj-name=apache-directory-api-all all/dependency-reduced-pom.xml all/target/api-all-*.jar + +clean:: + find . -name MANIFEST.MF | xargs -r rm + find . -name dependency-reduced-pom.xml | xargs -r rm + +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..1252dbe --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts="uversionmangle=s/-(alpha|beta|rc|M)(-)?/~$1$2/" \ + http://svn.apache.org/repos/asf/directory/shared/tags/ \ + (\d.*)/ debian debian/orig-tar.sh -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/apache-directory-api.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

