Author: twerner Date: 2011-09-11 10:09:21 +0000 (Sun, 11 Sep 2011) New Revision: 14817
Added: trunk/jtidy/debian/README.source trunk/jtidy/debian/libjtidy-java-doc.doc-base.api trunk/jtidy/debian/libjtidy-java-doc.install trunk/jtidy/debian/maven.cleanIgnoreRules trunk/jtidy/debian/maven.ignoreRules trunk/jtidy/debian/maven.properties trunk/jtidy/debian/maven.publishedRules Removed: trunk/jtidy/debian/README.Debian-source trunk/jtidy/debian/build.xml trunk/jtidy/debian/libjtidy-java-doc.doc-base trunk/jtidy/debian/libjtidy-java-doc.docs trunk/jtidy/debian/manifest.mf Modified: trunk/jtidy/debian/changelog trunk/jtidy/debian/compat trunk/jtidy/debian/control trunk/jtidy/debian/libjtidy-java.poms trunk/jtidy/debian/maven.rules trunk/jtidy/debian/rules Log: * Team upload * Use Maven to build the package. * Set urgency to high because the last version is broken. * Switch to debhelper compat level 7. * Update Standards-Version: 3.9.1. Deleted: trunk/jtidy/debian/README.Debian-source =================================================================== --- trunk/jtidy/debian/README.Debian-source 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/README.Debian-source 2011-09-11 10:09:21 UTC (rev 14817) @@ -1,19 +0,0 @@ -Debian README for JTidy -======================= - -Upstream provide 3 types of downloads: - - 1) The standard SourceForge.net dowloads. These appear to be - out of date - the latest archive is 04aug2000r7-dev on - August 1, 2001. - - 2) Maven snapshots at - http://jtidy.sourceforge.net/snapshots/jtidy/jtidy/. These - do *not* include source code. - - 3) svn access at - https://svn.sourceforge.net/svnroot/jtidy/trunk/jtidy/ - -This Debian packaging uses an svn snapshot. - - -- Paul Cager <[email protected]> Thu, 22 Mar 2007 23:30:02 +0000 Copied: trunk/jtidy/debian/README.source (from rev 14816, trunk/jtidy/debian/README.Debian-source) =================================================================== --- trunk/jtidy/debian/README.source (rev 0) +++ trunk/jtidy/debian/README.source 2011-09-11 10:09:21 UTC (rev 14817) @@ -0,0 +1,26 @@ +Debian README for JTidy +======================= + +Upstream provide 3 types of downloads: + + 1) The standard SourceForge.net dowloads. These appear to be + out of date - the latest archive is 04aug2000r7-dev on + August 1, 2001. + + 2) Maven snapshots at + http://jtidy.sourceforge.net/snapshots/jtidy/jtidy/. These + do *not* include source code. + + 3) svn access at + https://svn.sourceforge.net/svnroot/jtidy/trunk/jtidy/ + +This Debian packaging uses an svn snapshot. + + -- Paul Cager <[email protected]> Thu, 22 Mar 2007 23:30:02 +0000 + +This package was debianized using the mh_make command +from the maven-debian-helper package. + +The build system uses Maven but prevents it from downloading +anything from the Internet, making the build compliant with +the Debian policy. Deleted: trunk/jtidy/debian/build.xml =================================================================== --- trunk/jtidy/debian/build.xml 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/build.xml 2011-09-11 10:09:21 UTC (rev 14817) @@ -1,79 +0,0 @@ -<?xml version="1.0"?> - -<!-- - This build.xml file was written for the Debian build of jtidy. - This file copyright (c) Paul Cager <[email protected]> - - This software and documentation is provided "as is," and - the copyright holders and contributing author(s) make no - representations or warranties, express or implied, including - but not limited to, warranties of merchantability or fitness - for any particular purpose or that the use of the software or - documentation will not infringe any third party patents, - copyrights, trademarks or other rights. - - The copyright holders and contributing author(s) will not be - liable for any direct, indirect, special or consequential damages - arising out of any use of the software or documentation, even if - advised of the possibility of such damage. - - Permission is hereby granted to use, copy, modify, and distribute - this source code, or portions hereof, documentation and executables, - for any purpose, without fee, subject to the following restrictions: - - 1. The origin of this source code must not be misrepresented. - 2. Altered versions must be plainly marked as such and must - not be misrepresented as being the original source. - 3. This Copyright notice may not be removed or altered from any - source or altered source distribution. ---> - -<project name="jtidy" default="package" basedir=".."> - -<target name="package" depends="jar,javadoc"/> - -<target name="init"> - <property name="src.dir" value="src"/> - <property name="build.dir" value="build"/> - <property name="package" value="jtidy"/> - <property name="jar" value="${build.dir}/${package}-${version}.jar"/> - <property name="javadoc.dir" value="${build.dir}/doc/api"/> -</target> - -<target name="compile" depends="init"> - <mkdir dir="${build.dir}"/> - <javac srcdir="${src.dir}/main" - destdir="${build.dir}" - includes="**/*.java" - debug="on" - /> - <copy file="${src.dir}/main/resources/tidy.gif" tofile="${build.dir}/org/w3c/tidy/tidy.gif"/> - <copy file="${src.dir}/main/resources/org/w3c/tidy/TidyMessages.properties" tofile="${build.dir}/org/w3c/tidy/TidyMessages.properties"/> -</target> - -<target name="jar" depends="compile"> - <delete file="${jar}"/> - - <jar jarfile="${jar}" - basedir="${build.dir}" - includes="**/*.class,**/*.properties,**/*.gif" - manifest="debian/manifest.mf" - /> -</target> - -<target name="javadoc" depends="init"> - <mkdir dir="${javadoc.dir}"/> - <javadoc packagenames="org.w3c.dom.*, org.w3c.tidy.*" - sourcepath="${src.dir}/main/java" - destdir="${javadoc.dir}" - author="true" - version="true" - windowtitle="${package} API" - doctitle="${package} - ${version}" - /> -</target> - -<target name="clean" depends="init"> - <delete dir="${build.dir}"/> -</target> -</project> Modified: trunk/jtidy/debian/changelog =================================================================== --- trunk/jtidy/debian/changelog 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/changelog 2011-09-11 10:09:21 UTC (rev 14817) @@ -1,3 +1,13 @@ +jtidy (7+svn20110807-2) unstable; urgency=high + + * Team upload + * Use Maven to build the package. + * Set urgency to high because the last version is broken. + * Switch to debhelper compat level 7. + * Update Standards-Version: 3.9.1. + + -- Torsten Werner <[email protected]> Sun, 11 Sep 2011 12:06:10 +0200 + jtidy (7+svn20110807-1) unstable; urgency=low * Team upload Modified: trunk/jtidy/debian/compat =================================================================== --- trunk/jtidy/debian/compat 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/compat 2011-09-11 10:09:21 UTC (rev 14817) @@ -1 +1 @@ -6 +7 Modified: trunk/jtidy/debian/control =================================================================== --- trunk/jtidy/debian/control 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/control 2011-09-11 10:09:21 UTC (rev 14817) @@ -3,34 +3,37 @@ Priority: optional Maintainer: Debian Java Maintainers <[email protected]> Uploaders: Michael Koch <[email protected]> -Build-Depends: debhelper (>= 6), cdbs (>= 0.4.5.3), default-jdk -Build-Depends-Indep: maven-repo-helper, ant, ant-optional, libjaxp1.3-java -Standards-Version: 3.8.1 +Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-debian-helper (>= 1.4) +Build-Depends-Indep: libmaven-javadoc-plugin-java, junit4, liblog4j1.2-java, libslf4j-java, + default-jdk-doc, ant, ant-doc +Standards-Version: 3.9.1 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/jtidy Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/jtidy Homepage: http://jtidy.sourceforge.net/ Package: libjtidy-java Architecture: all -Depends: ${misc:Depends}, libjaxp1.3-java -Suggests: libjtidy-java-doc, ant -Description: a Java port of HTML Tidy, a HTML syntax checker and pretty printer - JTidy is a Java port of HTML Tidy (http://www.w3.org/People/Raggett/tidy/). +Depends: ${misc:Depends}, ${maven:Depends} +Recommends: ${maven:OptionalDepends} +Suggests: libjtidy-java-doc +Description: JTidy + JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer. Like its non-Java cousin, JTidy can be used as a tool for cleaning up malformed and faulty HTML. In addition, JTidy provides a DOM interface to the document - that is being processed, which effectively makes you able to use JTidy as a - DOM parser for real-world HTML. + that is being processed, which effectively makes you able to use JTidy + as a DOM parser for real-world HTML. Package: libjtidy-java-doc Architecture: all Section: doc -Depends: ${misc:Depends} +Depends: ${misc:Depends}, ${maven:DocDepends} +Recommends: ${maven:DocOptionalDepends} Suggests: libjtidy-java -Description: API Documentation for JTidy - JTidy is a Java port of HTML Tidy (http://www.w3.org/People/Raggett/tidy/). +Description: Documentation for JTidy + JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer. Like its non-Java cousin, JTidy can be used as a tool for cleaning up malformed and faulty HTML. In addition, JTidy provides a DOM interface to the document - that is being processed, which effectively makes you able to use JTidy as a - DOM parser for real-world HTML. + that is being processed, which effectively makes you able to use JTidy + as a DOM parser for real-world HTML. . - This package contains the documentation for JTidy. + This package contains the API documentation of libjtidy-java. Deleted: trunk/jtidy/debian/libjtidy-java-doc.doc-base =================================================================== --- trunk/jtidy/debian/libjtidy-java-doc.doc-base 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/libjtidy-java-doc.doc-base 2011-09-11 10:09:21 UTC (rev 14817) @@ -1,9 +0,0 @@ -Document: libjtidy-java -Title: API Javadoc for jtidy -Author: jtidy developers -Abstract: This is the API Javadoc provided by the jtidy library. -Section: Programming - -Format: HTML -Index: /usr/share/doc/libjtidy-java-doc/api/index.html -Files: /usr/share/doc/libjtidy-java-doc/api/* Copied: trunk/jtidy/debian/libjtidy-java-doc.doc-base.api (from rev 14816, trunk/jtidy/debian/libjtidy-java-doc.doc-base) =================================================================== --- trunk/jtidy/debian/libjtidy-java-doc.doc-base.api (rev 0) +++ trunk/jtidy/debian/libjtidy-java-doc.doc-base.api 2011-09-11 10:09:21 UTC (rev 14817) @@ -0,0 +1,10 @@ +Document: libjtidy-java +Title: API Javadoc for JTidy +Author: jtidy developers +Abstract: This is the API Javadoc provided for the + libjtidy-java library. +Section: Programming + +Format: HTML +Index: /usr/share/doc/libjtidy-java/api/index.html +Files: /usr/share/doc/libjtidy-java/api/* Deleted: trunk/jtidy/debian/libjtidy-java-doc.docs =================================================================== --- trunk/jtidy/debian/libjtidy-java-doc.docs 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/libjtidy-java-doc.docs 2011-09-11 10:09:21 UTC (rev 14817) @@ -1 +0,0 @@ -build/doc/api Added: trunk/jtidy/debian/libjtidy-java-doc.install =================================================================== --- trunk/jtidy/debian/libjtidy-java-doc.install (rev 0) +++ trunk/jtidy/debian/libjtidy-java-doc.install 2011-09-11 10:09:21 UTC (rev 14817) @@ -0,0 +1,2 @@ +target/apidocs/* usr/share/doc/libjtidy-java/api + Modified: trunk/jtidy/debian/libjtidy-java.poms =================================================================== --- trunk/jtidy/debian/libjtidy-java.poms 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/libjtidy-java.poms 2011-09-11 10:09:21 UTC (rev 14817) @@ -1 +1,26 @@ -pom.xml --no-parent +# 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 or +# --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 +# --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. +# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default. +# --ignore-pom: don't install the POM with mh_install or mh_installpoms. To use with POM files that are created +# temporarily for certain artifacts such as Javadoc jars. +# +pom.xml Deleted: trunk/jtidy/debian/manifest.mf =================================================================== --- trunk/jtidy/debian/manifest.mf 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/manifest.mf 2011-09-11 10:09:21 UTC (rev 14817) @@ -1,4 +0,0 @@ -Main-Class: org.w3c.tidy.Tidy - -Name: org/w3c/tidy/Tidy.class -Java-Bean: True Added: trunk/jtidy/debian/maven.cleanIgnoreRules =================================================================== --- trunk/jtidy/debian/maven.cleanIgnoreRules (rev 0) +++ trunk/jtidy/debian/maven.cleanIgnoreRules 2011-09-11 10:09:21 UTC (rev 14817) @@ -0,0 +1,17 @@ +# Maven clean ignore rules - ignore some Maven dependencies and plugins +# during the clean phase of a Maven build +# 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 +# All elements much match before a rule can be applied +# Example rule: match jar with groupid= junit, artifactid= junit +# and version starting with 3., this dependency is then removed +# from the POM before mvn clean is called +# junit junit jar s/3\\..*/3.x/ + Added: trunk/jtidy/debian/maven.ignoreRules =================================================================== --- trunk/jtidy/debian/maven.ignoreRules (rev 0) +++ trunk/jtidy/debian/maven.ignoreRules 2011-09-11 10:09:21 UTC (rev 14817) @@ -0,0 +1,23 @@ +# Maven ignore rules - ignore some 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 +# All elements much match before a rule can be applied +# Example rule: match jar with groupid= junit, artifactid= junit +# and version starting with 3., this dependency is then removed +# from the POM +# junit junit jar s/3\\..*/3.x/ + +org.apache.maven.plugins maven-changelog-plugin * * * * +org.apache.maven.plugins maven-checkstyle-plugin * * * * +org.apache.maven.plugins maven-clover-plugin * * * * +org.apache.maven.plugins maven-jxr-plugin * * * * +org.apache.maven.plugins maven-pmd-plugin * * * * +org.apache.maven.plugins maven-project-info-reports-plugin * * * * +org.codehaus.mojo jdepend-maven-plugin * * * * Added: trunk/jtidy/debian/maven.properties =================================================================== --- trunk/jtidy/debian/maven.properties (rev 0) +++ trunk/jtidy/debian/maven.properties 2011-09-11 10:09:21 UTC (rev 14817) @@ -0,0 +1,4 @@ +# Include here properties to pass to Maven during the build. +# For example: +# maven.test.skip=true + Added: trunk/jtidy/debian/maven.publishedRules =================================================================== --- trunk/jtidy/debian/maven.publishedRules (rev 0) +++ trunk/jtidy/debian/maven.publishedRules 2011-09-11 10:09:21 UTC (rev 14817) @@ -0,0 +1,19 @@ +# Maven published rules - additional rules to publish, to help +# the packaging work of Debian maintainers using mh_make +# 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/ + Modified: trunk/jtidy/debian/maven.rules =================================================================== --- trunk/jtidy/debian/maven.rules 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/maven.rules 2011-09-11 10:09:21 UTC (rev 14817) @@ -1,4 +1,22 @@ -s/xerces/xml-apis/ s/dom3-xml-apis/xml-apis/ jar s/.*/debian/ -s/ant/org.apache.ant/ * * s/.*/debian/ -junit junit jar s/3\..*/3.x/ -log4j log4j jar s/1\.2\..*/1.2.x/ +# 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/ + +junit junit jar s/4\..*/4.x/ * * +log4j log4j jar s/1\.2\..*/1.2.x/ * * +net.sf.jtidy jtidy jar s/.*/debian/ * * +s/ant/org.apache.ant/ * * s/.*/debian/ * * Modified: trunk/jtidy/debian/rules =================================================================== --- trunk/jtidy/debian/rules 2011-09-11 08:42:58 UTC (rev 14816) +++ trunk/jtidy/debian/rules 2011-09-11 10:09:21 UTC (rev 14817) @@ -1,28 +1,7 @@ #!/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/class/maven.mk -PACKAGE := $(DEB_SOURCE_PACKAGE) -VERSION := $(DEB_UPSTREAM_VERSION) -JAVA_HOME := /usr/lib/jvm/default-java -DEB_JARS := $(ANT_HOME)/lib/ant-trax.jar xalan2 -DEB_ANT_BUILD_TARGET := package -DEB_ANT_BUILDFILE := debian/build.xml -DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -DartifactId=$(PACKAGE) -Dversion=$(VERSION) -API_DOCS := build/doc/api +JAVA_HOME := /usr/lib/jvm/default-java -get-orig-source: - mkdir orig_tmp - cd orig_tmp && \ - svn export -q https://jtidy.svn.sourceforge.net/svnroot/jtidy/trunk/jtidy jtidy && \ - tar czf ../../jtidy_$(DEB_UPSTREAM_VERSION).orig.tar.gz jtidy - rm -rf orig_tmp - -binary-post-install/lib$(PACKAGE)-java:: - mh_installpoms -plib$(PACKAGE)-java - mh_installjar -plib$(PACKAGE)-java -l pom.xml build/$(PACKAGE)-$(VERSION).jar - -clean:: - -rm -rf debian/tmp - _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

