[Jpackage-commits] dist/jakarta-commons-validator/devel .cvsignore, 1.1, 1.2 commons-validator-1.3.1-jpp-depmap.xml, NONE, 1.1 commons-validator-1.3.1.pom, NONE, 1.1 jakarta-commons-validator.catalog, NONE, 1.1 jakarta-commons-validator.spec, NONE, 1.1 maven2jpp-mapdeps.xsl, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:29:14 CEST 2008


Update of /home/projects/jpackage/cvs/dist/jakarta-commons-validator/devel
In directory ryu.zarb.org:/tmp/cvs-serv23525/devel

Modified Files:
	.cvsignore sources 
Added Files:
	commons-validator-1.3.1-jpp-depmap.xml 
	commons-validator-1.3.1.pom jakarta-commons-validator.catalog 
	jakarta-commons-validator.spec maven2jpp-mapdeps.xsl 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jakarta-commons-validator/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:28:47 -0000	1.1
--- .cvsignore	28 May 2008 18:29:12 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ commons-validator-1.3.1-src.tar.gz

--- NEW FILE: commons-validator-1.3.1.pom ---
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>commons-validator</groupId>
  <artifactId>commons-validator</artifactId>
  <name>Validator</name>
  <version>1.3.1</version>
  <description>Commons Validator provides the building blocks for both client side validation
    and server side data validation. It may be used standalone or with a framework like
    Struts.</description>
  <url>http://jakarta.apache.org/commons/${pom.artifactId.substring(8)}/</url>
  <issueManagement>
    <url>http://issues.apache.org/jira/</url>
  </issueManagement>
  <ciManagement>
    <notifiers>
      <notifier>
        <configuration>
          <address>commons-dev at jakarta.apache.org</address>
        </configuration>
      </notifier>
    </notifiers>
  </ciManagement>
  <inceptionYear>2002</inceptionYear>
  <mailingLists>
    <mailingList>
      <name>Commons Dev List</name>
      <subscribe>commons-dev-subscribe at jakarta.apache.org</subscribe>
      <unsubscribe>commons-dev-unsubscribe at jakarta.apache.org</unsubscribe>
      <archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/</archive>
    </mailingList>
    <mailingList>
      <name>Commons User List</name>
      <subscribe>commons-user-subscribe at jakarta.apache.org</subscribe>
      <unsubscribe>commons-user-unsubscribe at jakarta.apache.org</unsubscribe>
      <archive>http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/</archive>
    </mailingList>
  </mailingLists>
  <developers>
    <developer>
      <id>mrdon</id>
      <name>Don Brown</name>
      <email>mrdon at apache.org</email>
    </developer>
    <developer>
      <id>martinc</id>
      <name>Martin Cooper</name>
      <email>martinc at apache.org</email>
    </developer>
    <developer>
      <id>dgraham</id>
      <name>David Graham</name>
      <email>dgraham at apache.org</email>
    </developer>
    <developer>
      <id>husted</id>
      <name>Ted Husted</name>
      <email>husted at apache.org</email>
    </developer>
    <developer>
      <id>rleland</id>
      <name>Rob Leland</name>
      <email>rleland at apache.org</email>
    </developer>
    <developer>
      <id>craigmcc</id>
      <name>Craig McClanahan</name>
      <email>craigmcc at apache.org</email>
    </developer>
    <developer>
      <id>jmitchell</id>
      <name>James Mitchell</name>
      <email>jmitchell NOSPAM apache.org</email>
      <organization>EdgeTech, Inc</organization>
    </developer>
    <developer>
      <id>niallp</id>
      <name>Niall Pemberton</name>
    </developer>
    <developer>
      <id>turner</id>
      <name>James Turner</name>
      <email>turner at apache.org</email>
    </developer>
    <developer>
      <id>dwinterfeldt</id>
      <name>David Winterfeldt</name>
      <email>dwinterfeldt at apache.org</email>
    </developer>
    <developer>
      <id>bayard</id>
      <name>Henri Yandell</name>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>Saul Q Yuan Add</name>
    </contributor>
    <contributor>
      <name>Shane Bailey</name>
    </contributor>
    <contributor>
      <name>Dave Derry</name>
    </contributor>
    <contributor>
      <name>Tim O'Brien</name>
    </contributor>
    <contributor>
      <name>Scott Clasen</name>
      <email>ticktock at speakeasy.net></email>
    </contributor>
    <contributor>
      <name>Marcus Brito Finish</name>
    </contributor>
    <contributor>
      <name>Padma Ginnaram</name>
    </contributor>
    <contributor>
      <name>Thomas Jacob</name>
      <email>thomas.jacob at sinnerschrader.com</email>
    </contributor>
    <contributor>
      <name>Adam Kramer</name>
    </contributor>
    <contributor>
      <name>Greg Ludington</name>
    </contributor>
    <contributor>
      <name>Bjorn-H. Moritz</name>
    </contributor>
    <contributor>
      <name>David Neuer</name>
      <email>DavidNeuer at nascopgh.com</email>
    </contributor>
    <contributor>
      <name>Kurt Post</name>
    </contributor>
    <contributor>
      <name>Arun Mammen Thomas</name>
    </contributor>
    <contributor>
      <name>Steven Fines</name>
      <email>steven.fines at cotelligent.com</email>
    </contributor>
    <contributor>
      <name>Didier Romelot</name>
      <email>didier.romelot at renault.com</email>
    </contributor>
    <contributor>
      <name>Steve Stair</name>
    </contributor>
    <contributor>
      <name>Jeremy Tan</name>
      <email>jeremytan at scualum.com</email>
    </contributor>
    <contributor>
      <name>94RGt2</name>
      <email>lmagee at biziworks.com.au</email>
    </contributor>
    <contributor>
      <name>Nacho G. Mac Dowell</name>
    </contributor>
    <contributor>
      <name>Mark Lowe</name>
      <email>mark.lowe at boxstuff.com</email>
    </contributor>
  </contributors>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>/LICENSE.txt</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/${pom.artifactId.substring(8)}/trunk</connection>
    <url>http://svn.apache.org/viewvc</url>
  </scm>
  <organization>
    <name>The Apache Software Foundation</name>
    <url>http://jakarta.apache.org</url>
  </organization>
  <build>
    <sourceDirectory>src/share</sourceDirectory>
    <testSourceDirectory>src/test</testSourceDirectory>
    <resources>
      <resource>
        <targetPath>META-INF</targetPath>
        <directory>${basedir}</directory>
        <includes>
          <include>NOTICE.txt</include>
        </includes>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>${pom.build.unitTestSourceDirectory}</directory>
        <includes>
          <include>**/*.xml</include>
        </includes>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <includes>
            <include>**/*Test.java</include>
          </includes>
          <excludes>
            <exclude>**/routines/BaseCalendarValidatorTest.java</exclude>
            <exclude>**/routines/BaseNumberValidatorTest.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-xdoc-plugin</artifactId>
        <version>1.9.2</version>
        <configuration>
          <comment><strong>Site Only</strong> - v1.9.2 (minimum)
              required for building the Validator Site documentation.</comment>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-changelog-plugin</artifactId>
        <version>1.8.2</version>
        <configuration>
          <comment><strong>Site Only</strong> - v1.8.2 (minimum)
              required for building the Validator Site documentation.</comment>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-changes-plugin</artifactId>
        <version>1.6</version>
        <configuration>
          <comment><strong>Site Only</strong> - v1.6 (minimum)
              required for building the Validator Site documentation.</comment>
        </configuration>
      </plugin>
      <plugin>
        <groupId>maven-plugins</groupId>
        <artifactId>maven-cobertura-plugin</artifactId>
        <version>1.1.1</version>
        <configuration>
          <scope>test</scope>
          <comment>Required only for generating test coverage reports.</comment>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
      <version>1.7.0</version>
    </dependency>
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>1.6</version>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.0.4</version>
    </dependency>
    <dependency>
      <groupId>oro</groupId>
      <artifactId>oro</artifactId>
      <version>2.0.8</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>xml-apis</groupId>
      <artifactId>xml-apis</artifactId>
      <version>2.0.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <repository>
      <id>default</id>
      <name>Default Repository</name>
      <url>file:///www/jakarta.apache.org/builds/jakarta-commons/${pom.artifactId.substring(8)}/</url>
    </repository>
    <site>
      <id>default</id>
      <name>Default Site</name>
      <url>scp://people.apache.org//www/jakarta.apache.org/commons/${pom.artifactId.substring(8)}/</url>
    </site>
    <status>converted</status>
  </distributionManagement>
</project>
--- NEW FILE: jakarta-commons-validator.catalog ---
-- Jakarta commons-validator DTD catalog       --
-- JPackage Project <http://www.jpackage.org/> --

PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
        validator_1_0.dtd

PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0.1//EN"
        validator_1_0_1.dtd

PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN"
        validator_1_1.dtd

PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
        validator_1_1_3.dtd

PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.2.0//EN"
        validator_1_2_0.dtd

PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN"
        validator_1_3_0.dtd


--- NEW FILE: commons-validator-1.3.1-jpp-depmap.xml ---
<?xml version="1.0" encoding="utf-8"?>
<depset>
  <dependency>
	<maven>
         <groupId>commons-beanutils</groupId>
         <artifactId>commons-beanutils</artifactId>
         <version>1.7.0</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>commons-beanutils</artifactId>
	 <jar>commons-beanutils.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>commons-digester</groupId>
         <artifactId>commons-digester</artifactId>
         <version>1.6</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>commons-digester</artifactId>
	 <jar>commons-digester.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.0.4</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>commons-logging</artifactId>
	 <jar>commons-logging.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>oro</groupId>
         <artifactId>oro</artifactId>
         <version>2.0.8</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>oro</artifactId>
	 <jar>oro.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>xml-apis</groupId>
         <artifactId>xml-apis</artifactId>
         <version>2.0.2</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>xml-apis</artifactId>
	 <jar>xml-commons-jaxp-1.3-apis.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>junit</artifactId>
	 <jar>junit.jar</jar>
	</jpp>
  </dependency>
  <dependency>
      <maven>
         <groupId>maven</groupId>
         <artifactId>maven-xdoc-plugin</artifactId>
         <version>1.9.2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>maven-xdoc-plugin</artifactId>
         <jar>maven-plugins/maven-xdoc-plugin.jar</jar>
      </jpp>
  </dependency>
  <dependency>
      <maven>
         <groupId>maven</groupId>
         <artifactId>maven-changelog-plugin</artifactId>
         <version>1.8.2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>maven-changelog-plugin</artifactId>
         <jar>maven-plugins/maven-changelog-plugin.jar</jar>
      </jpp>
  </dependency>
  <dependency>
      <maven>
         <groupId>maven</groupId>
         <artifactId>maven-changes-plugin</artifactId>
         <version>1.6</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>maven-changes-plugin</artifactId>
         <jar>maven-plugins/maven-changes-plugin.jar</jar>
      </jpp>
  </dependency>
  <dependency>
      <maven>
         <groupId>maven-plugins</groupId>
         <artifactId>maven-cobertura-plugin</artifactId>
         <version>1.1.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>maven-cobertura-plugin</artifactId>
         <jar>maven-plugins/maven-cobertura-plugin.jar</jar>
      </jpp>
  </dependency>
</depset>

--- NEW FILE: maven2jpp-mapdeps.xsl ---
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:param name="map" /> 
  <xsl:output method="xml" indent="yes" omit-xml-declaration="no"/> 
  <xsl:strip-space elements="*"/> 
  <xsl:template match="/project" >
	<xsl:element name="project">
	  <xsl:copy-of select="child::*[not(self::dependencies)]"/>
	  <xsl:if test="not(./dependencies)">
		<xsl:element name="dependencies">
		  <xsl:for-each select="document($map)//add/dependency">
			<xsl:copy-of select="."/>
		  </xsl:for-each>
		</xsl:element>
	  </xsl:if>
	  <xsl:apply-templates select="dependencies"/>
	</xsl:element>
  </xsl:template>
  <xsl:template match="dependencies" >
	<xsl:element name="dependencies">
	  <xsl:for-each select="dependency">
		<xsl:if test="./artifactId">
		  <xsl:call-template name="replace">
			<xsl:with-param name="artifact" select="./artifactId/text()"/>
		  </xsl:call-template>
		</xsl:if>
		<xsl:if test="./id">
		  <xsl:choose>
			<xsl:when test="substring-after(./id/text(),':') != ''">
			  <xsl:call-template name="replace">
				<xsl:with-param name="artifact" select="substring-after(./id/text(),':')"/>
			  </xsl:call-template>
			</xsl:when>
			<xsl:otherwise>
			  <xsl:call-template name="replace">
				<xsl:with-param name="artifact" select="./id/text()"/>
			  </xsl:call-template>
			</xsl:otherwise>
		  </xsl:choose>
		</xsl:if>
	  </xsl:for-each>
	  <xsl:for-each select="document($map)//add/dependency">
		<xsl:copy-of select="."/>
	  </xsl:for-each>
	</xsl:element>
  </xsl:template>
  <xsl:template name="replace">
	<xsl:param name="artifact"/>
	<xsl:variable name="this" select="."/>
	  <xsl:choose>
		<xsl:when test="document($map)//dependency/maven[./artifactId/text() = $artifact]">
		  <xsl:for-each select="document($map)//dependency/maven[./artifactId/text() = $artifact][1]">
			<xsl:if test="../jpp">
			  <xsl:element name="dependency">
				<xsl:copy-of select="../jpp/*"/>
				<xsl:copy-of select="$this/properties"/>
			  </xsl:element>
			</xsl:if>
		  </xsl:for-each>
		</xsl:when>
		<xsl:otherwise>
		  <xsl:element name="dependency">
			<xsl:copy-of select="./*"/>
		  </xsl:element>
		</xsl:otherwise>
	  </xsl:choose>
	<xsl:if test="document($map)//dependency/maven[./artifactId/text() = $artifact]">
	  <xsl:for-each select="document($map)//dependency/maven[./artifactId/text() = $artifact][1]">
		<xsl:for-each select="../add/dependency">
		  <xsl:element name="dependency">
			<xsl:copy-of select="./*"/>
			<xsl:copy-of select="$this/properties"/>
		  </xsl:element>
		</xsl:for-each>
	  </xsl:for-each>
	</xsl:if>
  </xsl:template>
</xsl:stylesheet>

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jakarta-commons-validator/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:28:47 -0000	1.1
--- sources	28 May 2008 18:29:12 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ ac5b8d6f67982859fe77225ab7fe6548  commons-validator-1.3.1-src.tar.gz

--- NEW FILE: jakarta-commons-validator.spec ---
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

## If you don't want to build with maven, and use straight ant instead,
## give rpmbuild option '--without maven'

%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}

%define base_name  validator
%define short_name commons-%{base_name}
%define section    free

Summary:        Jakarta Commons Validator
Name:           jakarta-%{short_name}
Version:        1.3.1
Release:        2jpp
Epoch:          0
License:        Apache Software License 2.0
Group:          Development/Libraries/Java
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Source0:        http://www.apache.org/dist/jakarta/commons/validator/source/commons-validator-%{version}-src.tar.gz
Source1:        %{name}.catalog
Source2:        maven2jpp-mapdeps.xsl
Source3:        commons-validator-1.3.1-jpp-depmap.xml
Source4:        http://repo1.maven.org/maven2/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.pom

URL:            http://commons.apache.org/validator/
BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
%if %{with_maven}
BuildRequires:  maven >= 0:1.1
BuildRequires:  maven-plugins-base
BuildRequires:  maven-plugin-changelog
BuildRequires:  maven-plugin-changes
BuildRequires:  maven-plugin-javadoc
BuildRequires:  maven-plugin-license
BuildRequires:  maven-plugin-test
BuildRequires:  maven-plugin-xdoc
BuildRequires:  saxon
BuildRequires:  saxon-scripts
BuildRequires:  sf-cobertura-maven-plugin
%endif
BuildRequires:  jakarta-commons-beanutils >= 0:1.7
BuildRequires:  jakarta-commons-collections >= 0:3.2
BuildRequires:  jakarta-commons-digester >= 0:1.7
BuildRequires:  jakarta-commons-logging >= 0:1.1
BuildRequires:  junit >= 0:3.8.1
BuildRequires:  oro >= 0:2.0.8
BuildRequires:  rhino
BuildRequires:  xml-commons-jaxp-1.3-apis
Requires:       java >= 0:1.5.0
Requires:       jakarta-commons-beanutils >= 0:1.7
Requires:       jakarta-commons-collections >= 0:3.2
Requires:       jakarta-commons-digester >= 0:1.7
Requires:       jakarta-commons-logging >= 0:1.1
Requires:       oro >= 0:2.0.8
Requires:       xml-commons-jaxp-1.3-apis
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif
Requires(post):    jpackage-utils >= 0:1.7.4
Requires(postun):  jpackage-utils >= 0:1.7.4


%description
A common issue when receiving data either electronically or from user
input is verifying the integrity of the data. This work is repetitive
and becomes even more complicated when different sets of validation
rules need to be applied to the same set of data based on locale for
example. Error messages may also vary by locale. This package attempts
to address some of these issues and speed development and maintenance
of validation rules.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{short_name}-%{version}-src

# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;

cp -p %{SOURCE1} conf/share/catalog


%build
unset CLASSPATH
export JAVA_HOME=%{_jvmdir}/java-1.5.0
%if %{with_maven}
for p in $(find . -name project.xml); do
    pushd $(dirname $p)
    cp project.xml project.xml.orig
    /usr/bin/saxon -o project.xml project.xml.orig %{SOURCE2} map=%{SOURCE3}
    popd
done

export MAVEN_HOME_LOCAL=$(pwd)/.maven
mkdir -p $MAVEN_HOME_LOCAL/repository/

maven -e \
        -Dmaven.home.local=$MAVEN_HOME_LOCAL \
        -Dmaven.repo.remote=file:/usr/share/maven/repository \
        jar:install javadoc

%else

ant \
    -Dcommons-beanutils.jar=$(build-classpath commons-beanutils) \
    -Dcommons-digester.jar=$(build-classpath commons-digester) \
    -Dcommons-logging.jar=$(build-classpath commons-logging) \
    -Doro.jar=$(build-classpath oro) \
    -Djunit.jar=$(build-classpath junit) \
    -Ddojo_custom_rhino.jar=$(build-classpath rhino) \
    test dist
%endif

%install
rm -rf $RPM_BUILD_ROOT

# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
%if %{with_maven}
install -m 644 target/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
%else
install -m 644 dist/%{short_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
%endif
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done)
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name}

# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{short_name}.pom

# dtds and catalog
mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgml/%{name}
cp -p conf/share/{*.dtd,catalog} $RPM_BUILD_ROOT%{_datadir}/sgml/%{name}

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
%if %{with_maven}
cp -pr target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
%else
cp -pr dist/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
%endif

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap
# Note that we're using versioned catalog, so this is always ok.
if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then
  %{_bindir}/install-catalog --add \
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \
    %{_datadir}/sgml/%{name}/catalog > /dev/null || :
fi
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
# Note that we're using versioned catalog, so this is always ok.
if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then
  %{_bindir}/install-catalog --remove \
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \
    %{_datadir}/sgml/%{name}/catalog > /dev/null || :
fi
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
    rm -f %{_javadocdir}/%{name}
fi

%files
%defattr(0644,root,root,0755)
%doc LICENSE.txt NOTICE.txt
%{_javadir}/*
%{_datadir}/sgml/%{name}
%{_datadir}/maven2
%{_mavendepmapfragdir}
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}
%endif

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}

%changelog
* Fri Feb 01 2008 Ralph Apel <r.apel at r-apel.de> -  0:1.3.1-2jpp
- Extend catalog
- Build with maven1 by default
- Add poms and depmap frags
- Fix gcj_support build
- Don't set CLASSPATH
- Always test

* Thu Jan 03 2008 Ralph Apel <r.apel at r-apel.de> -  0:1.3.1-1jpp
- 1.3.1

* Fri Aug 18 2006 Deepak Bhole <dbhole at redhat.com> -  0:1.1.4-5jpp
- Move rebuild-gcj-db to correct postun section

* Tue Aug 15 2006 Deepak Bhole <dbhole at redhat.com> -  0:1.1.4-4jpp
- Added missing post/postun for javadoc.

* Tue Jul 25 2006 Deepak Bhole <dbhole at redhat.com> -  0:1.1.4-3jpp
- Added conditional native compilation.
- Converted spec file to UTF8.

* Wed Apr 26 2006 Fernando Nasser <fnasser at redhat.com> - 0:1.1.4-2jpp
- First JPP 1.7 build

* Tue Jul 26 2005 Fernando Nasser <fnasser at redhat.com> - 0:1.1.4-1jpp
- Upgrade to 1.1.4

* Tue Sep 07 2004 Fernando Nasser <fnasser at redhat.com> - 0:1.1.3-1jpp
- Upgrade to 1.1.3

* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.0.2-3jpp
- Rebuild with ant-1.6.2

* Fri Apr 18 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.0.2-2jpp
- Move DTDs from %%{_datadir}/%{name} to %%{_datadir}/sgml/%%{name} for FHS
  compliance, <http://www.pathname.com/fhs/2.2/fhs-4.11.html#4.11.7>.

* Fri Apr 18 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.0.2-1jpp
- Update to 1.0.2 and JPackage 1.5.
- Move DTDs from %%doc to %%{_datadir}/%%{name}.
- Include catalog for DTDs, and install it if %%{_bindir}/install-catalog
  is available.

* Mon Dec 16 2002 Ville Skyttä <ville.skytta at iki.fi> - 1.0.1-1jpp
- 1.0.1.
- Include the DTD in the package (as documentation).

* Sat Nov  2 2002 Ville Skyttä <ville.skytta at iki.fi> - 1.0-1jpp
- 1.0, initial JPackage release.




More information about the JPackage-commits mailing list