--- clirr-0.6.orig/debian/maven.rules +++ clirr-0.6/debian/maven.rules @@ -0,0 +1,4 @@ +s/ant/org.apache.ant/ * * s/.*/debian/ +s/bcel/org.apache.bcel/ bcel jar s/5\..*/5.x/ +antlr antlr jar s/2\..*/2.x/ + --- clirr-0.6.orig/debian/copyright +++ clirr-0.6/debian/copyright @@ -0,0 +1,22 @@ +Format-Specification: http://dep.debian.net/deps/dep5/ +Name: Clirr +Maintainer: Lars Kühne +Source: http://clirr.sourceforge.net/ + +Files: * +Copyright: 2003-2005 Lars Kühne +License: LGPL-2.1+ + +Files: debian/* +Copyright: 2009, Ludovic Claude +License: GPL-3+ + +License: LGPL-2.1 + On Debian GNU/Linux system you can find the complete text of the + LGPL 2.1 license in '/usr/share/common-licenses/LGPL-2.1'. + +License: GPL-3 + On Debian GNU/Linux system you can find the complete text of the + GNU General Public License version 3 license in + '/usr/share/common-licenses/GPL-3'. + --- clirr-0.6.orig/debian/clirr.poms +++ clirr-0.6/debian/clirr.poms @@ -0,0 +1 @@ +debian/pom.xml --no-parent --- clirr-0.6.orig/debian/pom.xml +++ clirr-0.6/debian/pom.xml @@ -0,0 +1,125 @@ + + + + 4.0.0 + + net.sf.clirr + + clirr-core + + Clirr + + 0.6 + + + + Lars K�hne + mailto:clirr-devel@lists.sourceforge.net + + + 2003 + + Clirr is a tool that checks Java libraries for binary + compatibility with older releases. Basically you give it two sets + of jar files and Clirr dumps out a list of changes in the public + api. Clirr provides an Ant task that can be configured to break + the build if it detects incompatible api changes. In a continuous + integration process Clirr can automatically prevent accidental + introduction of binary compatibility problems in Java libraries. + + + http://clirr.sourceforge.net/ + + sourceforge + https://sourceforge.net/tracker/?group_id=89627&atid=590799 + + + + scm:cvs:pserver:anonymous@cvs.sourceforge.net:/cvsroot/clirr:clirr/core + http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/clirr/core + + + + + clirr-user + http://lists.sourceforge.net/lists/listinfo/clirr-user + http://lists.sourceforge.net/lists/listinfo/clirr-user + http://lists.sourceforge.net/lists/listinfo/clirr-user + + + clirr-devel + http://lists.sourceforge.net/lists/listinfo/clirr-devel + http://lists.sourceforge.net/lists/listinfo/clirr-devel + http://lists.sourceforge.net/lists/listinfo/clirr-devel + + + + + + Lars K�hne + lkuehne + ppi Media + +1 + + Java Developer + Project Admin + + + + Vincent Massol + vmassol + Apache Software Foundation + +1 + http://blogs.codehaus.org/people/vmassol + + Initial Inspiration and Feedback + Java Developer + Maven Guru + + + + Simon Kitching + s_kitching + ECN + +12 + + Java Developer + + + + + + + Stephen Colebourne + Apache Software Foundation + + + + + + bcel + bcel + 5.1 + + + ant + ant + 1.5.3-1 + true + + + commons-cli + commons-cli + 1.0 + true + + + commons-lang + commons-lang + 1.0.1 + true + + + + + --- clirr-0.6.orig/debian/rules +++ clirr-0.6/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/ant.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +PACKAGE := $(DEB_SOURCE_PACKAGE) +VERSION := $(DEB_UPSTREAM_VERSION) +JAVA_HOME := /usr/lib/jvm/default-java +DEB_JARS := ant-nodeps bcel commons-cli commons-lang +DEB_ANT_BUILD_TARGET := package +DEB_ANT_BUILDFILE := /usr/share/maven-ant-helper/maven-build.xml +DEB_ANT_ARGS := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dbin.package=$(PACKAGE) -Dversion=$(VERSION) -Dpom.file=debian/pom.xml + +get-orig-source: + -uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename --repack + +binary-post-install/$(PACKAGE):: + mh_installpoms -p$(PACKAGE) + mh_installjar -p$(PACKAGE) -l --usj-name=clirr debian/pom.xml build/clirr-core-$(VERSION).jar + +clean:: + -rm -rf debian/tmp + +get-orig-pom: + wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/net/sf/clirr/clirr-core/$(VERSION)/clirr-core-$(VERSION).pom + --- clirr-0.6.orig/debian/changelog +++ clirr-0.6/debian/changelog @@ -0,0 +1,11 @@ +clirr (0.6-2) unstable; urgency=low + + * Upload to unstable. + + -- Torsten Werner Fri, 21 Aug 2009 15:04:14 +0200 + +clirr (0.6-1) experimental; urgency=low + + * Initial release. (Closes: #537307) + + -- Ludovic Claude Thu, 16 Jul 2009 19:27:09 +0100 --- clirr-0.6.orig/debian/watch +++ clirr-0.6/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/clirr/clirr-([0-9\.]*)-src\.zip --- clirr-0.6.orig/debian/control +++ clirr-0.6/debian/control @@ -0,0 +1,21 @@ +Source: clirr +Section: java +Priority: optional +Maintainer: Debian Java Maintainers +Uploaders: Ludovic Claude +Homepage: http://clirr.sourceforge.net/ +Build-Depends: debhelper (>= 7), cdbs, default-jdk, quilt, ant, ant-optional, maven-ant-helper +Build-Depends-Indep: maven-repo-helper, libbcel-java, libcommons-cli-java, libcommons-lang-java +Standards-Version: 3.8.2 + +Package: clirr +Architecture: all +Section: java +Depends: ${misc:Depends}, libbcel-java, libcommons-cli-java, libcommons-lang-java +Recommends: ant +Description: Checks Java libraries for compatibility with older releases + Clirr is a tool that checks Java libraries for binary and source + compatibility with older releases. The Clirr Ant task can break + the build if it detects incompatible API changes, making it easy to + prevent accidental introduction of compatibility issues. + --- clirr-0.6.orig/debian/compat +++ clirr-0.6/debian/compat @@ -0,0 +1 @@ +7 --- clirr-0.6.orig/debian/build.properties +++ clirr-0.6/debian/build.properties @@ -0,0 +1,6 @@ +javadoc.dir=build/docs/api +maven.test.skip=true +build.sourceDirectory=core/src/java +build.resourcesDirectory=core/src/conf +build.testDirectory=core/src/test + --- clirr-0.6.orig/debian/patches/bcel5.2.patch +++ clirr-0.6/debian/patches/bcel5.2.patch @@ -0,0 +1,30 @@ +--- a/core/src/java/net/sf/clirr/core/internal/bcel/BcelJavaType.java ++++ b/core/src/java/net/sf/clirr/core/internal/bcel/BcelJavaType.java +@@ -66,8 +66,12 @@ + { + return new JavaType[0]; + } +- final JavaClass[] superClasses = clazz.getSuperClasses(); +- return convertToJavaTypeArray(superClasses); ++ try { ++ final JavaClass[] superClasses = clazz.getSuperClasses(); ++ return convertToJavaTypeArray(superClasses); ++ } catch (ClassNotFoundException e) { ++ throw new RuntimeException(e); ++ } + } + + public JavaType[] getAllInterfaces() { +@@ -75,8 +79,12 @@ + { + return new JavaType[0]; + } ++ try { + final JavaClass[] interfaces = clazz.getAllInterfaces(); + return convertToJavaTypeArray(interfaces); ++ } catch (ClassNotFoundException e) { ++ throw new RuntimeException(e); ++ } + } + + public JavaType[] getInnerClasses() { --- clirr-0.6.orig/debian/patches/series +++ clirr-0.6/debian/patches/series @@ -0,0 +1 @@ +bcel5.2.patch