[Jpackage-commits] dist/jakarta-commons-scxml/devel .cvsignore, 1.1, 1.2 commons-scxml-0.7-jpp-depmap.xml, NONE, 1.1 jakarta-commons-scxml.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:28:33 CEST 2008


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

Modified Files:
	.cvsignore sources 
Added Files:
	commons-scxml-0.7-jpp-depmap.xml jakarta-commons-scxml.spec 
	maven2jpp-mapdeps.xsl 
Log Message:
Import from JPP 5.0

--- 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-scxml/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:11 -0000	1.1
--- sources	28 May 2008 18:28:31 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ aab157c6e49368231718271a4e3b29ff  commons-scxml-0.7-src.tar.gz

--- NEW FILE: jakarta-commons-scxml.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  scxml
%define short_name commons-%{base_name}
%define section    free

Summary:        Jakarta Commons SCXML
Name:           jakarta-%{short_name}
Version:        0.7
Release:        1jpp
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/commons/scxml/source/commons-scxml-0.7-src.tar.gz
Source1:        maven2jpp-mapdeps.xsl
Source2:        commons-scxml-0.7-jpp-depmap.xml

URL:            http://commons.apache.org/scxml/
BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  ant-junit
BuildRequires:  junit >= 0:3.8.1
%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-digester >= 0:1.8
BuildRequires:  jakarta-commons-el >= 0:1.0
BuildRequires:  jakarta-commons-jexl >= 0:1.0
BuildRequires:  jakarta-commons-logging >= 0:1.1
BuildRequires:  myfaces >= 0:1.1.0
BuildRequires:  servlet_2_4_api
BuildRequires:  jsp_2_0_api
BuildRequires:  xalan-j2

Requires:       java >= 0:1.5.0
Requires:       jakarta-commons-beanutils >= 0:1.7
Requires:       jakarta-commons-digester >= 0:1.8
Requires:       jakarta-commons-el >= 0:1.0
Requires:       jakarta-commons-jexl >= 0:1.0
Requires:       jakarta-commons-logging >= 0:1.1
Requires:       myfaces >= 0:1.1.0
Requires:       servlet_2_4_api
Requires:       jsp_2_0_api
Requires:       xalan-j2
%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
State Chart XML (SCXML) is currently a Working Draft 
published by the World Wide Web Consortium (W3C). SCXML 
provides a generic state-machine based execution environment
based on Harel State Tables. SCXML is a candidate for the 
control language within multiple markup languages coming out 
of the W3C (see Working Draft for details). Commons SCXML is 
an implementation aimed at creating and maintaining a Java 
SCXML engine capable of executing a state machine defined 
using a SCXML document, while abstracting out the environment 
interfaces. 
The use cases for an SCXML engine are multiple and varied. 
Anything that can be represented as a UML state chart -- 
business process flows, view navigation bits, interaction or 
dialog management, and many more -- can leverage an SCXML 
engine library. 


%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 {} \;

%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 %{SOURCE1} map=%{SOURCE2}
    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
export CLASSPATH=$(build-classpath \
commons-beanutils \
commons-digester \
commons-el \
commons-jexl \
commons-logging \
junit \
myfaces/myfaces-all \
servlet_2_4_api \
jsp_2_0_api \
xalan-j2 \
)
CLASSPATH=$CLASSPATH:target/classes:target/test-classes
ant -Dbuild.sysclasspath=only 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 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{short_name}.pom

# 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/api/* $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
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%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}/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:0.7-1jpp
- First release


--- NEW FILE: commons-scxml-0.7-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.8</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>commons-digester</artifactId>
	 <jar>commons-digester.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>commons-el</groupId>
         <artifactId>commons-el</artifactId>
         <version>1.0</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>commons-el</artifactId>
	 <jar>commons-el.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>commons-jexl</groupId>
         <artifactId>commons-jexl</artifactId>
         <version>1.1</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>commons-jexl</artifactId>
	 <jar>commons-jexl.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.1.1</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>commons-logging</artifactId>
	 <jar>commons-logging.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.2</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-javadoc-plugin</artifactId>
         <version>1.8</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <jar>maven-plugins/maven-javadoc-plugin.jar</jar>
      </jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>javax.servlet</groupId>
         <artifactId>servlet-api</artifactId>
         <version>2.4</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>servlet-api</artifactId>
	 <jar>servlet_2_4_api.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>javax.servlet</groupId>
         <artifactId>jsp-api</artifactId>
         <version>2.0</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>jsp-api</artifactId>
	 <jar>jsp_2_0_api.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>myfaces</groupId>
         <artifactId>myfaces-all</artifactId>
         <version>1.1.0</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>myfaces-all</artifactId>
	 <jar>myfaces/myfaces-all.jar</jar>
	</jpp>
  </dependency>
  <dependency>
	<maven>
         <groupId>xalan</groupId>
         <artifactId>xalan</artifactId>
         <version>2.6.0</version>
	</maven>
	<jpp>
	 <groupId>JPP</groupId>
         <artifactId>xalan</artifactId>
	 <jar>xalan-j2.jar</jar>
	</jpp>
  </dependency>
</depset>

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jakarta-commons-scxml/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:11 -0000	1.1
--- .cvsignore	28 May 2008 18:28:31 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ commons-scxml-0.7-src.tar.gz




More information about the JPackage-commits mailing list