This is an automated email from the git hooks/post-receive script. nomadium pushed a commit to branch master in repository jruby-maven-plugins.
commit 0619eb937dc8d01d87b3457a876f767f9e58bbee Author: Miguel Landaeta <nomad...@debian.org> Date: Sun Oct 4 21:45:56 2015 -0300 Initial debianization --- debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 41 +++++++++++++++++++++++++++ debian/copyright | 47 +++++++++++++++++++++++++++++++ debian/jruby-maven-plugins.poms | 46 ++++++++++++++++++++++++++++++ debian/m2.conf | 7 +++++ debian/maven.cleanIgnoreRules | 1 + debian/maven.publishedRules | 1 + debian/maven.rules | 25 ++++++++++++++++ debian/maven3.mk | 14 +++++++++ debian/orig-tar.sh | 16 +++++++++++ debian/patches/disable-rubygems-repo.diff | 34 ++++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 32 +++++++++++++++++++++ debian/source/format | 1 + debian/watch | 5 ++++ 16 files changed, 277 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..653ce6a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +jruby-maven-plugins (1.0.10.ds1-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #796002). + + -- Miguel Landaeta <nomad...@debian.org> Sun, 04 Oct 2015 15:48:09 -0300 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..2ad5692 --- /dev/null +++ b/debian/control @@ -0,0 +1,41 @@ +Source: jruby-maven-plugins +Section: java +Priority: optional +Maintainer: Debian Java Maintainers <pkg-java-maintain...@lists.alioth.debian.org> +Uploaders: Miguel Landaeta <nomad...@debian.org> +Build-Depends: debhelper (>= 9), default-jdk, maven-repo-helper (>= 1.5) +Build-Depends-Indep: jruby (>= 1.7.22~), + libmaven-compiler-plugin-java (>= 3.2~), + libmaven-dependency-plugin-java, + libmaven-exec-plugin-java, + libbuild-helper-maven-plugin-java, + libmaven-install-plugin-java, + libmaven-source-plugin-java, + maven-debian-helper, + maven (>= 3.3~) +Standards-Version: 3.9.6 +Homepage: https://github.com/torquebox/jruby-maven-plugins +Vcs-Git: git://anonscm.debian.org/pkg-java/jruby-maven-plugins.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/jruby-maven-plugins.git + +Package: jruby-maven-plugins +Architecture: all +Depends: ant, + jruby (>= 1.7.22~), + junit4, + libplexus-archiver-java, + libplexus-build-api-java, + libplexus-classworlds2-java, + libplexus-containers1.5-java, + libplexus-utils2-java, + libplexus-velocity-java, + libyaml-snake-java, + maven (>= 3.3~), + ${maven:Depends}, + ${misc:Depends}, +Recommends: ${maven:OptionalDepends} +Description: Maven plugins to handle Ruby gems in a Maven compatible way + jruby-maven-plugins is a set of utilities and plugins to handle + Ruby gems with Maven. This allows one to integrate JRuby and other + Java libraries with rspec, rails, cucumber, rake and another + standard Ruby development tools. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0715269 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,47 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: jruby maven plugins +Upstream-Contact: Christian Meier +Source: https://github.com/torquebox/jruby-maven-plugins + +Files: * +Copyright: 2009 Christian Meier <m.krist...@web.de> +License: Expat + +Files: integration-tests/src/it/big_gemfile2pom/public/javascripts/controls.js +Copyright: 2005-2009 Thomas Fuchs + 2005-2009 Ivan Krstic + 2005-2009 Jon Tirsen +License: Expat + +Files: integration-tests/src/it/big_gemfile2pom/public/javascripts/dragdrop.js + integration-tests/src/it/big_gemfile2pom/public/javascripts/effects.js +Copyright: 2005-2009 Thomas Fuchs +License: Expat + +Files: integration-tests/src/it/big_gemfile2pom/public/javascripts/prototype.js +Copyright: 2005-2010 Sam Stephenson +License: Expat + +Files: debian/* +Copyright: 2015, Miguel Landaeta <nomad...@debian.org> +License: Expat + +License: Expat + 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. diff --git a/debian/jruby-maven-plugins.poms b/debian/jruby-maven-plugins.poms new file mode 100644 index 0000000..4159118 --- /dev/null +++ b/debian/jruby-maven-plugins.poms @@ -0,0 +1,46 @@ +# 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 --has-package-version +parent-mojo/pom.xml --has-package-version +rails3-maven-plugin/pom.xml --ignore +gem-parent-mojo/pom.xml --ignore +gem-with-jar-extension/pom.xml --ignore +integration-tests/pom.xml --ignore +runit-maven-plugin/pom.xml --ignore +bundler-maven-plugin/pom.xml --ignore +rake-maven-plugin/pom.xml --ignore +gem-maven-plugin/pom.xml --has-package-version --artifact=gem-maven-plugin/target/gem-maven-plugin-*.jar +rspec-maven-plugin/pom.xml --ignore +minitest-maven-plugin/pom.xml --ignore +jruby-maven-plugin/pom.xml --has-package-version --artifact=jruby-maven-plugin/target/jruby-maven-plugin-*.jar +gem-extension/pom.xml --ignore +cucumber-maven-plugin/pom.xml --ignore +gem-assembly-descriptors/pom.xml --ignore +tests-parent-mojo/pom.xml --ignore +gem-proxy/pom.xml --ignore +ruby-tools/pom.xml --has-package-version --artifact=ruby-tools/target/ruby-tools-*.jar diff --git a/debian/m2.conf b/debian/m2.conf new file mode 100644 index 0000000..a107568 --- /dev/null +++ b/debian/m2.conf @@ -0,0 +1,7 @@ +main is org.apache.maven.cli.MavenCli from plexus.core + +set maven.home default /usr/share/maven + +[plexus.core] +optionally ${maven.home}/lib/ext/*.jar +load ${maven.home}/lib/*.jar diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/debian/maven.cleanIgnoreRules @@ -0,0 +1 @@ + diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/debian/maven.publishedRules @@ -0,0 +1 @@ + diff --git a/debian/maven.rules b/debian/maven.rules new file mode 100644 index 0000000..e61e24c --- /dev/null +++ b/debian/maven.rules @@ -0,0 +1,25 @@ +# Maven rules - transform Maven dependencies and plugins +# Format of this file is: +# [group] [artifact] [type] [version] [classifier] [scope] +# where each element can be either +# - the exact string, for example org.apache for the group, or 3.1 +# for the version. In this case, the element is simply matched +# and left as it is +# - * (the star character, alone). In this case, anything will +# match and be left as it is. For example, using * on the +# position of the artifact field will match any artifact id +# - a regular expression of the form s/match/replace/ +# in this case, elements that match are transformed using +# the regex rule. +# All elements much match before a rule can be applied +# Example rule: match jar with groupid= junit, artifactid= junit +# and version starting with 3., replacing the version with 3.x +# junit junit jar s/3\..*/3.x/ + +de.saumya.mojo jruby-maven-plugin jar * * * +org.apache.maven maven-artifact jar s/.*/3.x/ * * +org.apache.maven maven-core jar s/.*/3.x/ * * +org.apache.maven maven-model jar s/.*/3.x/ * * +org.apache.maven maven-plugin-api jar s/.*/3.x/ * * +org.yaml snakeyaml jar s/.*/1.x/ * * +junit junit jar s/4\..*/4.x/ * * diff --git a/debian/maven3.mk b/debian/maven3.mk new file mode 100644 index 0000000..331165a --- /dev/null +++ b/debian/maven3.mk @@ -0,0 +1,14 @@ +# replace this with a saner integration between maven3 and debhelper +DEB_BUILDDIR = . +JAVACMD = $(JAVA_HOME)/bin/java +DEB_MAVEN_REPO := $(CURDIR)/debian/maven-repo +MAVEN_HOME = /usr/share/maven +DEB_CLASSPATH = $(MAVEN_HOME)/boot/plexus-classworlds-2.x.jar +DEB_MAVEN_INVOKE = cd $(DEB_BUILDDIR) && $(JAVACMD) -classpath $(DEB_CLASSPATH) \ + $(JAVA_OPTS) -Dclassworlds.conf=$(CURDIR)/debian/m2.conf \ + -Dmaven.home=/usr/share/maven \ + -Dmaven.multiModuleProjectDirectory=$(CURDIR) \ + org.codehaus.plexus.classworlds.launcher.Launcher \ + -s/etc/maven2/settings-debian.xml \ + -Dmaven.repo.local=$(DEB_MAVEN_REPO) \ + $(if $(DEB_MAVEN_ARGS_$(cdbs_curpkg)),$(DEB_MAVEN_ARGS_$(cdbs_curpkg)),$(DEB_MAVEN_ARGS)) diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh new file mode 100755 index 0000000..4bbf27e --- /dev/null +++ b/debian/orig-tar.sh @@ -0,0 +1,16 @@ +#!/bin/sh +set -e + +DEB_VERSION_UPSTREAM=$2 +UPSTREAM_TARBALL=$3 +DEB_SOURCE=jruby-maven-plugins +DEB_VERSION="${DEB_VERSION_UPSTREAM}.ds1" +REPACKED_DIR="./${DEB_SOURCE}-${DEB_VERSION}.orig" +REPACKED_TARBALL="./${DEB_SOURCE}_${DEB_VERSION}.orig.tar.gz" +TAR_FLAGS="--numeric-owner --owner=0 --group=0" + +mkdir "${REPACKED_DIR}" && tar xzf "${UPSTREAM_TARBALL}" --strip=1 -C "${REPACKED_DIR}" +find "${REPACKED_DIR}" -type f -name 'ant-*.pom' -delete +find "${REPACKED_DIR}" -type f -name '*.jar' -delete +GZIP=--best tar $TAR_FLAGS -czf "${REPACKED_TARBALL}" "${REPACKED_DIR}" +rm -rf "${REPACKED_DIR}" "${UPSTREAM_TARBALL}" diff --git a/debian/patches/disable-rubygems-repo.diff b/debian/patches/disable-rubygems-repo.diff new file mode 100644 index 0000000..ad49310 --- /dev/null +++ b/debian/patches/disable-rubygems-repo.diff @@ -0,0 +1,34 @@ +Description: Disable access to rubygems Maven repo during build time +Author: Miguel Landaeta <nomad...@debian.org> +Forwarded: no +Last-Update: 2015-09-27 + +diff --git a/ruby-tools/pom.xml b/ruby-tools/pom.xml +index bc15eae..7f58514 100644 +--- a/ruby-tools/pom.xml ++++ b/ruby-tools/pom.xml +@@ -191,13 +191,16 @@ + </activation> + + <repositories> ++ <!-- + <repository> + <id>rubygems-releases</id> + <url>http://rubygems-proxy.torquebox.org/releases</url> + </repository> ++ --> + </repositories> + + <dependencies> ++ <!-- + <dependency> + <groupId>rubygems</groupId> + <artifactId>maven-tools</artifactId> +@@ -205,6 +208,7 @@ + <type>gem</type> + <scope>provided</scope> + </dependency> ++ --> + </dependencies> + </profile> + </profiles> diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..7c79afa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +disable-rubygems-repo.diff diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..945d174 --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f + +export JAVA_HOME := /usr/lib/jvm/default-java + +include /usr/share/dpkg/default.mk +include $(CURDIR)/debian/maven3.mk + +%: + dh $@ --with maven_repo_helper + +override_dh_auto_clean: + -$(DEB_MAVEN_INVOKE) clean + dh_clean + mh_unpatchpoms -p$(DEB_SOURCE) + mh_clean + rm -rf -- "$(DEB_MAVEN_REPO)" + +override_dh_auto_configure: + /usr/share/maven-debian-helper/copy-repo.sh "$(CURDIR)/debian" + mh_patchpoms -p$(DEB_SOURCE) --debian-build --keep-pom-version \ + --maven-repo="$(DEB_MAVEN_REPO)" --build-no-docs + +override_dh_auto_build: + dh_auto_build + $(DEB_MAVEN_INVOKE) -Djruby.version=debian package install + +override_dh_installdeb: + -cd "$(CURDIR)/debian/$(DEB_SOURCE)" && rm -rf ./gem-maven-plugin/ ./jruby-maven-plugin/ + dh_installdeb + +get-orig-source: + uscan --verbose --download-current-version 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..5b530c6 --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=3 +opts=dversionmangle=s/\.ds\d*$// \ +https://github.com/torquebox/jruby-maven-plugins/releases \ + /torquebox/jruby-maven-plugins/archive/jruby-maven-plugins-([0-9].+)\.tar\.gz \ + debian debian/orig-tar.sh -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-maven-plugins.git _______________________________________________ pkg-java-commits mailing list pkg-java-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits