[pkg-java] r17317 - trunk/jmagick/debian

Emmanuel Bourg ebourg-guest at alioth.debian.org
Mon Oct 7 14:01:44 UTC 2013


Author: ebourg-guest
Date: 2013-10-07 14:01:44 +0000 (Mon, 07 Oct 2013)
New Revision: 17317

Added:
   trunk/jmagick/debian/pom.xml
Modified:
   trunk/jmagick/debian/changelog
   trunk/jmagick/debian/control
   trunk/jmagick/debian/rules
Log:
Install the Maven artifacts in /usr/share/maven-repo



Modified: trunk/jmagick/debian/changelog
===================================================================
--- trunk/jmagick/debian/changelog	2013-10-07 13:36:35 UTC (rev 17316)
+++ trunk/jmagick/debian/changelog	2013-10-07 14:01:44 UTC (rev 17317)
@@ -17,6 +17,8 @@
     - Generate Java 6 compatible bytecode
     - Include the debug information in the compiled classes
     - Enabled hardening for libJMagick.so
+    - Install the Maven artifacts in /usr/share/maven-repo
+    - Added the get-orig-pom target to download the pom from Maven central
   * Renamed debian/README.Debian-source to README.source
   * Moved the examples to the documentation package
   * Registered the documentation with doc-base

Modified: trunk/jmagick/debian/control
===================================================================
--- trunk/jmagick/debian/control	2013-10-07 13:36:35 UTC (rev 17316)
+++ trunk/jmagick/debian/control	2013-10-07 14:01:44 UTC (rev 17317)
@@ -4,7 +4,14 @@
 Section: graphics
 Priority: optional
 Standards-Version: 3.9.4
-Build-Depends: debhelper (>= 9), cdbs, default-jdk, libmagickcore-dev, autotools-dev, chrpath, hardening-wrapper
+Build-Depends: autotools-dev,
+               cdbs,
+               chrpath,
+               debhelper (>= 9),
+               default-jdk,
+               hardening-wrapper,
+               libmagickcore-dev,
+               maven-repo-helper
 Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/jmagick
 Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/jmagick
 Homepage: http://sourceforge.net/projects/jmagick/

Added: trunk/jmagick/debian/pom.xml
===================================================================
--- trunk/jmagick/debian/pom.xml	                        (rev 0)
+++ trunk/jmagick/debian/pom.xml	2013-10-07 14:01:44 UTC (rev 17317)
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>jmagick</groupId>
+  <artifactId>jmagick</artifactId>
+  <packaging>jar</packaging>
+  <version>6.6.9</version>
+  <name>jMagick</name>
+  <description>Java JNI wrapper around ImageMagick.</description>
+  <inceptionYear>2008</inceptionYear>
+  <url>http://www.jmagick.org/index.html</url>
+  <licenses>
+    <license>
+      <name>GNU LESSER GENERAL PUBLIC LICENSE</name>
+      <url>https://www.gnu.org/copyleft/lesser.html</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <scm>
+    <connection>https://jmagick.svn.sourceforge.net/svnroot/jmagick</connection>
+    <url>http://jmagick.svn.sourceforge.net/</url>
+  </scm>
+  <developers>
+    <developer>
+      <id>nordfalk</id>
+    </developer>
+    <developer>
+      <id>ajkerr</id>
+    </developer>
+    <developer>
+      <id>miyamo-rakuten</id>
+    </developer>
+  </developers>
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+  <dependencies>
+  </dependencies>
+  <build>
+    <sourceDirectory>${basedir}/src</sourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.0</version>
+        <configuration>
+          <source>1.6</source>
+          <target>1.6</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <version>2.2.1</version>
+        <configuration>
+          <includes>
+            <include>**/*.java</include>
+          </includes>
+        </configuration>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>2.9</version>
+        <configuration>
+          <quiet>true</quiet>
+        </configuration>
+        <executions>
+          <execution>
+            <id>attach-javadocs</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-gpg-plugin</artifactId>
+        <version>1.4</version>
+        <executions>
+          <execution>
+            <id>sign-artifacts</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>sign</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Modified: trunk/jmagick/debian/rules
===================================================================
--- trunk/jmagick/debian/rules	2013-10-07 13:36:35 UTC (rev 17316)
+++ trunk/jmagick/debian/rules	2013-10-07 14:01:44 UTC (rev 17317)
@@ -18,14 +18,13 @@
 DEB_DH_INSTALL_SOURCEDIR = debian/tmp
 DEB_COMPRESS_EXCLUDE = .java
 DEB_INSTALL_CHANGELOGS_ALL := Changelog.txt
+VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^~-]+).*,\1,p')
 
 export JFLAGS = -source 1.6 -target 1.6 -g
 
 install/libjmagick6-java::
-	mkdir -p $(DEB_DESTDIR)/usr/share/java
-	install -m 644 -D ./lib/jmagick.jar $(DEB_DESTDIR)/usr/share/java/jmagick6-$(DEB_UPSTREAM_VERSION).jar
-	dh_install --sourcedir=debian/tmp usr/share/java/jmagick6-$(DEB_UPSTREAM_VERSION).jar
-	dh_link usr/share/java/jmagick6-$(DEB_UPSTREAM_VERSION).jar usr/share/java/jmagick6.jar
+	mh_installpom -plibjmagick6-java -e$(VERSION) debian/pom.xml
+	mh_installjar -plibjmagick6-java -e$(VERSION) --java-lib debian/pom.xml lib/jmagick.jar
 
 install/libjmagick6-jni::
 	chrpath -d ./lib/libJMagick.so
@@ -39,7 +38,11 @@
 	rm -rf Make.def libtool config.cache config.log config.status obj/magick/.libs
 	rm -rf autom4te.cache
 	rm -rf lib/*.jar
+	mh_clean
 
 .PHONY: get-orig-source
 get-orig-source:
 	uscan --upstream-version 0 --force-download --rename
+
+get-orig-pom:
+	wget http://central.maven.org/maven2/jmagick/jmagick/$(VERSION)/jmagick-$(VERSION).pom -O debian/pom.xml




More information about the pkg-java-commits mailing list