[maven-source-plugin] 01/20: Adapted work by Thomas Koch for earlier 2.0 version, which is what I needed and may be of some help also for others. Please ping me with suggestions about how to proceed.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Wed Dec 9 22:23:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository maven-source-plugin.
commit bc12221d88bb413f8c400954522a3684eb6f0bfe
Author: Steffen Möller <moeller at debian.org>
Date: Fri Aug 16 09:02:46 2013 +0000
Adapted work by Thomas Koch for earlier 2.0 version,
which is what I needed and may be of some help also
for others. Please ping me with suggestions about
how to proceed.
---
2.0.x/debian/README.source | 7 ++++
2.0.x/debian/TODO | 1 +
2.0.x/debian/changelog | 8 +++++
2.0.x/debian/compat | 1 +
2.0.x/debian/control | 37 ++++++++++++++++++++++
2.0.x/debian/copyright | 17 ++++++++++
.../libmaven-source-plugin-java-doc.doc-base.api | 10 ++++++
.../debian/libmaven-source-plugin-java-doc.install | 2 ++
2.0.x/debian/libmaven-source-plugin-java.poms | 28 ++++++++++++++++
2.0.x/debian/maven.cleanIgnoreRules | 1 +
2.0.x/debian/maven.ignoreRules | 1 +
2.0.x/debian/maven.properties | 4 +++
2.0.x/debian/maven.publishedRules | 2 ++
2.0.x/debian/maven.rules | 6 ++++
2.0.x/debian/orig-tar.sh | 16 ++++++++++
2.0.x/debian/rules | 9 ++++++
2.0.x/debian/source/format | 1 +
2.0.x/debian/watch | 4 +++
18 files changed, 155 insertions(+)
diff --git a/2.0.x/debian/README.source b/2.0.x/debian/README.source
new file mode 100644
index 0000000..139545a
--- /dev/null
+++ b/2.0.x/debian/README.source
@@ -0,0 +1,7 @@
+This package was downloaded via
+
+svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-source-plugin-2.0.x
+
+and tar-ed after removing two .cvsignore files.
+
+ -- Thomas Koch <thomas at koch.ro>, Wed, 31 Oct 2012 15:37:37 +0100
diff --git a/2.0.x/debian/TODO b/2.0.x/debian/TODO
new file mode 100644
index 0000000..a227275
--- /dev/null
+++ b/2.0.x/debian/TODO
@@ -0,0 +1 @@
+The packaging needs a link in /usr/share/java, still. Also, the 'debian' version is missing.
diff --git a/2.0.x/debian/changelog b/2.0.x/debian/changelog
new file mode 100644
index 0000000..fb26fca
--- /dev/null
+++ b/2.0.x/debian/changelog
@@ -0,0 +1,8 @@
+maven-source-plugin (2.0.4-1) unstable; urgency=low
+
+ * Initial release (Closes: #691927)
+ * demoted to version 2.0 vs the current 2.2 because of build
+ dependency to maven-plugin-tools by Steffen Moeller.
+ - junit version 3
+
+ -- Thomas Koch <thomas at koch.ro> Wed, 31 Oct 2012 15:34:36 +0100
diff --git a/2.0.x/debian/compat b/2.0.x/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/2.0.x/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/2.0.x/debian/control b/2.0.x/debian/control
new file mode 100644
index 0000000..9d36417
--- /dev/null
+++ b/2.0.x/debian/control
@@ -0,0 +1,37 @@
+Source: maven-source-plugin
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Thomas Koch <thomas at koch.ro>
+Build-Depends: debhelper (>= 9), cdbs, default-jdk, maven-debian-helper (>= 1.5)
+Build-Depends-Indep: libmaven-plugin-tools-java, libmaven-archiver-java,
+ libmaven2-core-java, libplexus-archiver-java, libplexus-utils-java,
+ junit, libmaven-plugin-testing-java, libmaven-plugin-tools-java,
+ default-jdk-doc,
+ libmaven-archiver-java-doc, libmaven2-core-java-doc,
+ libplexus-utils-java-doc, libmaven-javadoc-plugin-java,
+Standards-Version: 3.9.4
+Vcs-Git: git://anonscm.debian.org/pkg-java/maven-source-plugin.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/maven-source-plugin.git
+Homepage: http://maven.apache.org/plugins/maven-source-plugin
+
+Package: libmaven-source-plugin-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Recommends: ${maven:OptionalDepends}
+Suggests: libmaven-source-plugin-java-doc
+Description: Maven Source Plugin
+ The Maven 2 Source Plugin creates a JAR archive of the source files of
+ the current project.
+
+Package: libmaven-source-plugin-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${maven:DocDepends}
+Recommends: ${maven:DocOptionalDepends}
+Suggests: libmaven-source-plugin-java
+Description: Documentation for Maven Source Plugin
+ The Maven 2 Source Plugin creates a JAR archive of the source files of
+ the current project.
+ .
+ This package contains the API documentation of libmaven-source-plugin-java.
diff --git a/2.0.x/debian/copyright b/2.0.x/debian/copyright
new file mode 100644
index 0000000..b553637
--- /dev/null
+++ b/2.0.x/debian/copyright
@@ -0,0 +1,17 @@
+Format: http://dep.debian.net/deps/dep5/
+Upstream-Name: Maven Source Plugin
+Source: http://maven.apache.org/plugins/maven-source-plugin
+
+Files: *
+Copyright: 2012, The Apache Software Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2012, Thomas Koch <thomas at koch.ro>
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian GNU/Linux system you can find the complete text of the
+ Apache-2.0 license in '/usr/share/common-licenses/Apache-2.0'
+
+
diff --git a/2.0.x/debian/libmaven-source-plugin-java-doc.doc-base.api b/2.0.x/debian/libmaven-source-plugin-java-doc.doc-base.api
new file mode 100644
index 0000000..6a09bdf
--- /dev/null
+++ b/2.0.x/debian/libmaven-source-plugin-java-doc.doc-base.api
@@ -0,0 +1,10 @@
+Document: libmaven-source-plugin-java
+Title: API Javadoc for Maven Source Plugin
+Author: Maven Source Plugin developers
+Abstract: This is the API Javadoc provided for the
+ libmaven-source-plugin-java library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libmaven-source-plugin-java/api/index.html
+Files: /usr/share/doc/libmaven-source-plugin-java/api/*
diff --git a/2.0.x/debian/libmaven-source-plugin-java-doc.install b/2.0.x/debian/libmaven-source-plugin-java-doc.install
new file mode 100644
index 0000000..68db8bf
--- /dev/null
+++ b/2.0.x/debian/libmaven-source-plugin-java-doc.install
@@ -0,0 +1,2 @@
+target/site/apidocs/* usr/share/doc/libmaven-source-plugin-java/api
+
diff --git a/2.0.x/debian/libmaven-source-plugin-java.poms b/2.0.x/debian/libmaven-source-plugin-java.poms
new file mode 100644
index 0000000..5ad70f2
--- /dev/null
+++ b/2.0.x/debian/libmaven-source-plugin-java.poms
@@ -0,0 +1,28 @@
+# 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
diff --git a/2.0.x/debian/maven.cleanIgnoreRules b/2.0.x/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/2.0.x/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/2.0.x/debian/maven.ignoreRules b/2.0.x/debian/maven.ignoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/2.0.x/debian/maven.ignoreRules
@@ -0,0 +1 @@
+
diff --git a/2.0.x/debian/maven.properties b/2.0.x/debian/maven.properties
new file mode 100644
index 0000000..11f9276
--- /dev/null
+++ b/2.0.x/debian/maven.properties
@@ -0,0 +1,4 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+maven.test.skip=true
+
diff --git a/2.0.x/debian/maven.publishedRules b/2.0.x/debian/maven.publishedRules
new file mode 100644
index 0000000..9d87a49
--- /dev/null
+++ b/2.0.x/debian/maven.publishedRules
@@ -0,0 +1,2 @@
+
+junit junit jar s/3\..*/3.x/ * *
diff --git a/2.0.x/debian/maven.rules b/2.0.x/debian/maven.rules
new file mode 100644
index 0000000..c5a5cbe
--- /dev/null
+++ b/2.0.x/debian/maven.rules
@@ -0,0 +1,6 @@
+
+junit junit jar s/3\..*/3.x/ * *
+s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-harness * s/.*/debian/ * *
+s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-tools * s/.*/debian/ * *
+s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing * s/.*/debian/ * *
+s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-test-tools * s/.*/debian/ * *
diff --git a/2.0.x/debian/orig-tar.sh b/2.0.x/debian/orig-tar.sh
new file mode 100755
index 0000000..061a427
--- /dev/null
+++ b/2.0.x/debian/orig-tar.sh
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../maven-source-plugin_$VERSION.orig.tar.gz
+DIR=maven-source-plugin-$VERSION
+TAG=$(echo "maven-source-plugin-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
+
+svn export http://svn.apache.org/repos/asf/maven/plugins/tags/${TAG}/ $DIR
+GZIP=--best tar -c -z -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/2.0.x/debian/rules b/2.0.x/debian/rules
new file mode 100755
index 0000000..b76c54a
--- /dev/null
+++ b/2.0.x/debian/rules
@@ -0,0 +1,9 @@
+#!/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
+
+get-orig-source:
+ uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
diff --git a/2.0.x/debian/source/format b/2.0.x/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/2.0.x/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/2.0.x/debian/watch b/2.0.x/debian/watch
new file mode 100644
index 0000000..0885023
--- /dev/null
+++ b/2.0.x/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="uversionmangle=s/-(alpha|beta)-/~$1/" \
+ http://svn.apache.org/repos/asf/maven/plugins/tags/ \
+ maven-source-plugin-(2\.0\.\d.*)/ debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-source-plugin.git
More information about the pkg-java-commits
mailing list