[pegdown] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Nov 10 23:07:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository pegdown.

commit 06f01679e576290f7cd4dd756c32be6f20b399de
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Nov 11 00:04:14 2014 +0100

    Initial packaging
---
 debian/build.xml            | 18 ++++++++++++++++
 debian/changelog            |  5 +++++
 debian/compat               |  1 +
 debian/control              | 19 +++++++++++++++++
 debian/copyright            | 15 +++++++++++++
 debian/libpegdown-java.poms | 28 ++++++++++++++++++++++++
 debian/pom.xml              | 52 +++++++++++++++++++++++++++++++++++++++++++++
 debian/rules                | 20 +++++++++++++++++
 debian/source/format        |  1 +
 debian/watch                |  2 ++
 10 files changed, 161 insertions(+)

diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..11453bb
--- /dev/null
+++ b/debian/build.xml
@@ -0,0 +1,18 @@
+<project default="build" basedir="..">
+  <property name="ant.build.javac.source" value="1.6"/>
+  <property name="ant.build.javac.target" value="1.6"/>
+
+  <target name="build">
+    <mkdir dir="target/classes"/>
+    <javac srcdir="src/main/java" destdir="target/classes" debug="yes" includeantruntime="false">
+      <classpath>
+        <pathelement path="/usr/share/java/parboiled-core.jar"/>
+        <pathelement path="/usr/share/java/parboiled-java.jar"/>
+      </classpath>
+    </javac>
+    <jar jarfile="target/pegdown.jar">
+      <fileset dir="target/classes"/>
+    </jar>
+  </target>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..985cadd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pegdown (1.4.2-1) unstable; urgency=medium
+
+  * Initial release (Closes: #685874)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Mon, 10 Nov 2014 23:21:50 +0100
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..bc9d0c8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: pegdown
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: debhelper (>= 9), default-jdk, ant, maven-repo-helper, libparboiled-java
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/pegdown.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/pegdown.git
+Homepage: http://pegdown.org
+
+Package: libpegdown-java
+Architecture: all
+Depends: ${misc:Depends}, libparboiled-java
+Description: Lightweight Markdown processing library
+ Pegdown is nearly 100% compatible with the original Markdown specification
+ and fully passes the original Markdown test suite. On top of the standard
+ Markdown feature set pegdown implements a number of extensions similar
+ to what other popular Markdown processors offer.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..63af5d1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Pegdown
+Source: https://github.com/sirthias/pegdown
+
+Files: *
+Copyright: 2010-2011, Mathias Doenitz
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2014, Emmanuel Bourg <ebourg at apache.org>
+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/libpegdown-java.poms b/debian/libpegdown-java.poms
new file mode 100644
index 0000000..c6cb054
--- /dev/null
+++ b/debian/libpegdown-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]
+#
+debian/pom.xml --has-package-version --java-lib --artifact=target/pegdown.jar
diff --git a/debian/pom.xml b/debian/pom.xml
new file mode 100644
index 0000000..a1a5d7c
--- /dev/null
+++ b/debian/pom.xml
@@ -0,0 +1,52 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.pegdown</groupId>
+    <artifactId>pegdown</artifactId>
+    <packaging>jar</packaging>
+    <description>A Java 1.5+ library providing a clean and lightweight markdown processor</description>
+    <url>http://pegdown.org</url>
+    <version>1.4.2</version>
+    <licenses>
+        <license>
+            <name>Apache 2</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+    <name>pegdown</name>
+    <inceptionYear>2009</inceptionYear>
+    <organization>
+        <name>org.pegdown</name>
+        <url>http://pegdown.org</url>
+    </organization>
+    <scm>
+        <url>git at github.com:sirthias/pegdown.git</url>
+        <connection>scm:git:git at github.com:sirthias/pegdown.git</connection>
+    </scm>
+    <developers>
+        <developer>
+            <id>sirthias</id>
+            <name>Mathias Doenitz</name>
+        </developer>
+    </developers>
+    <dependencies>
+        <dependency>
+            <groupId>org.parboiled</groupId>
+            <artifactId>parboiled-java</artifactId>
+            <version>1.1.6</version>
+        </dependency>
+        <dependency>
+            <groupId>net.sf.jtidy</groupId>
+            <artifactId>jtidy</artifactId>
+            <version>r938</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.specs2</groupId>
+            <artifactId>specs2_2.9.3</artifactId>
+            <version>1.12.4.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+</project>
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..de23393
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+export JAVA_HOME=/usr/lib/jvm/default-java
+VERSION = $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p')
+
+%:
+	dh $@ --buildsystem=ant --with maven-repo-helper
+
+override_dh_auto_build:
+	dh_auto_build -- -f debian/build.xml
+
+override_dh_auto_clean:
+	mh_clean
+	rm -Rf target
+
+get-orig-source:
+	uscan --download-current-version --force-download --rename
+
+get-orig-pom:
+	wget http://central.maven.org/maven2/org/pegdown/pegdown/$(VERSION)/pegdown-$(VERSION).pom -O debian/pom.xml
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..9265ec9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/sirthias/pegdown/releases .*/(\d.*).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/pegdown.git



More information about the pkg-java-commits mailing list