[Jpackage-commits] rpms/free/spring-webflow spring-webflow-jpp-depmap.xml, NONE, 1.1.2.1 spring-webflow-settings.xml, NONE, 1.1.2.1 spring-webflow-spring-webflow-pom.patch, NONE, 1.1.2.1 spring-webflow.spec, NONE, 1.1.2.1

jpackage jpackage at ryu.zarb.org
Sun Feb 1 10:57:49 CET 2009


Update of /home/projects/jpackage/cvs/rpms/free/spring-webflow
In directory ryu.zarb.org:/tmp/HxS5vR5NwC/rpms/free/spring-webflow

Added Files:
      Tag: JPACKAGE-5_0
	spring-webflow-jpp-depmap.xml spring-webflow-settings.xml 
	spring-webflow-spring-webflow-pom.patch spring-webflow.spec 
Log Message:
1.0.5-1.jpp5

--- NEW FILE: spring-webflow.spec ---
# Copyright (c) 2000-2009, 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}}}

%define section free

Summary:        Spring Webflow
Name:           spring-webflow
Version:        1.0.5
Release:        1%{dist}
Epoch:          0
Group:          Development/Java
License:        Apache License 2.0
URL:            http://www.springsource.org/webflow
Source0:        spring-webflow-1.0.5.tar.gz
# svn export http://springframework.svn.sourceforge.net/svnroot/springframework/spring-webflow/tags/spring-webflow-1.0.5/

Source1:        %{name}-jpp-depmap.xml
Source2:        %{name}-settings.xml

Patch0:         spring-webflow-spring-webflow-pom.patch

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  junit
BuildRequires:  maven2 >= 0:2.0.7
BuildRequires:  maven2-plugin-antrun
BuildRequires:  maven2-plugin-assembly
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-source
BuildRequires:  maven2-plugin-surefire

BuildRequires:  apache-portlet-1.0-api
BuildRequires:  concurrent
BuildRequires:  myfaces
BuildRequires:  spring2-beans
BuildRequires:  spring2-context
BuildRequires:  spring2-context-support
BuildRequires:  spring2-core
BuildRequires:  spring2-test
BuildRequires:  spring2-web
BuildRequires:  spring2-webmvc
BuildRequires:  spring2-webmvc-portlet
BuildRequires:  spring2-webmvc-struts
BuildRequires:  struts


Requires:  java >= 0:1.5.0
Requires:  concurrent
Requires:  myfaces
Requires:  portlet_1_0_api
Requires:  spring2-beans
Requires:  spring2-context
Requires:  spring2-context-support
Requires:  spring2-core
Requires:  spring2-web
Requires:  spring2-webmvc
Requires:  spring2-webmvc-portlet
Requires:  spring2-webmvc-struts
Requires:  struts

Requires(post):   jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5

%if %{gcj_support}
BuildRequires:          java-gcj-compat-devel
Requires(post):         java-gcj-compat
Requires(postun):       java-gcj-compat
%endif
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Spring Web Flow is the project in the Spring Portfolio that
focuses on providing the infrastructure for building and 
running rich web applications. As a Spring project, Web 
Flow builds on the Spring Web MVC framework to provide:
* A domain-specific-language for defining reusable controller modules called flows
* An advanced controller engine for managing conversational state
* First-class support for using Ajax to construct rich user interfaces
* First-class support for using JavaServerFaces with Spring


%package javadoc
Group:          Development/Documentation
Summary:        Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q 
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

%patch0 -b .sav0


%build
cp %{SOURCE2} maven2-settings.xml

sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" maven2-settings.xml
sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" maven2-settings.xml
sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" maven2-settings.xml
sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" maven2-settings.xml
sed -i -e "s|<url>__ECLIPSEDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/eclipse/plugins</url>|g" maven2-settings.xml

mkdir external_repo
ln -s %{_javadir} external_repo/JPP

export M2SETTINGS=$(pwd)/maven2-settings.xml
export MAVEN_REPO_LOCAL=`pwd`/m2_repo/repository

pushd spring-binding
mvn-jpp -e \
        -s ${M2SETTINGS} \
        -Dmaven.test.failure.ignore=true \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        install

mvn-jpp -e \
        -s ${M2SETTINGS} \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        javadoc:javadoc
popd

pushd spring-webflow
mvn-jpp -e \
        -s ${M2SETTINGS} \
        -Dmaven.test.failure.ignore=true \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        install

mvn-jpp -e \
        -s ${M2SETTINGS} \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        javadoc:javadoc
popd


%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms

install -m 644 spring-binding/target/spring-binding-1.0.5.jar $RPM_BUILD_ROOT%{_javadir}
install -m 644 spring-binding/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-spring-binding.pom
%add_to_maven_depmap org.springframework spring-binding %{version} JPP spring-binding

install -m 644 spring-webflow/target/spring-webflow-1.0.5.jar $RPM_BUILD_ROOT%{_javadir}
install -m 644 spring-webflow/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-spring-webflow.pom
%add_to_maven_depmap org.springframework spring-webflow %{version} JPP spring-webflow

(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)


# javadoc
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/binding
cp -pr spring-binding/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/binding
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/webflow
cp -pr spring-webflow/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/webflow
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%if %{gcj_support}
%{_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

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/*-%{version}.jar.*
%endif

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

%changelog
* Tue Jan 06 2009 Ralph Apel <r.apel at r-apel.de> 0:1.0.5-1.jpp5
- Initial release


--- NEW FILE: spring-webflow-jpp-depmap.xml ---
<dependencies>
<!--
-->
   <dependency>
      <maven>
         <groupId>struts</groupId>
         <artifactId>struts</artifactId>
         <version>1.2.9</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>struts</artifactId>
         <version>1.3.8</version>
      </jpp>
   </dependency>

   <dependency>
      <maven>
         <groupId>org.apache.myfaces.core</groupId>
         <artifactId>myfaces-api</artifactId>
         <version>1.1.4</version>
      </maven>
      <jpp>
         <groupId>JPP/myfaces</groupId>
         <artifactId>myfaces-jsf-api</artifactId>
         <version>1.1.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.apache.myfaces.core</groupId>
         <artifactId>myfaces-impl</artifactId>
         <version>1.1.4</version>
      </maven>
      <jpp>
         <groupId>JPP/myfaces</groupId>
         <artifactId>myfaces-impl</artifactId>
         <version>1.1.0</version>
      </jpp>
   </dependency>

   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring-portlet</artifactId>
         <version>2.0.7</version>
      </maven>
      <jpp>
         <groupId>JPP/spring2</groupId>
         <artifactId>webmvc-portlet</artifactId>
         <version>2.5.5</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring-struts</artifactId>
         <version>2.0.7</version>
      </maven>
      <jpp>
         <groupId>JPP/spring2</groupId>
         <artifactId>webmvc-struts</artifactId>
         <version>2.5.5</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring-mock</artifactId>
         <version>2.0.7</version>
      </maven>
      <jpp>
         <groupId>JPP/spring2</groupId>
         <artifactId>test</artifactId>
         <version>2.5.5</version>
      </jpp>
   </dependency>

   <dependency>
      <maven>
         <groupId>easymock</groupId>
         <artifactId>easymock</artifactId>
         <version>2.2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>easymock2</artifactId>
         <version>2.3</version>
      </jpp>
   </dependency>

<!--
                <dependency>
                        <groupId>easymock</groupId>
                        <artifactId>easymock</artifactId>
                        <version>2.2</version>
                        <scope>test</scope>
                </dependency>

/usr/share/java/spring2/webmvc-2.5.5.jar
/usr/share/java/spring2/webmvc.jar
/usr/share/java/spring2/webmvc-portlet-2.5.5.jar
/usr/share/java/spring2/webmvc-portlet.jar
/usr/share/java/spring2/webmvc-struts-2.5.5.jar
/usr/share/java/spring2/webmvc-struts.jar

/usr/share/java/myfaces/myfaces-impl.jar
/usr/share/java/myfaces/myfaces-jsf-api-1.1.0.jar
/usr/share/java/myfaces/myfaces-jsf-api.jar

1) struts:struts:jar:1.2.9
2) org.springframework:spring-portlet:jar:2.0.7
3) org.apache.myfaces.core:myfaces-impl:jar:1.1.4
4) org.springframework:spring-struts:jar:2.0.7
5) org.apache.myfaces.core:myfaces-api:jar:1.1.4

-->

</dependencies>

--- NEW FILE: spring-webflow-spring-webflow-pom.patch ---
--- spring-webflow/pom.xml.sav	2009-01-06 13:33:42.000000000 +0100
+++ spring-webflow/pom.xml	2009-01-06 13:34:07.000000000 +0100
@@ -131,12 +131,14 @@
 			<optional>true</optional>
 		</dependency>
 <!-- Test Dependencies -->
+<!--
 		<dependency>
 			<groupId>com.cenqua.clover</groupId>
 			<artifactId>clover</artifactId>
 			<version>1.3.12</version>
 			<scope>test</scope>
 		</dependency>
+-->
 		<dependency>
 			<groupId>easymock</groupId>
 			<artifactId>easymock</artifactId>

--- NEW FILE: spring-webflow-settings.xml ---
<settings>
	<profiles>
		<profile>
			<id>JPP</id>
			<repositories>
				<repository>
					<id>internal</id>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>external</id>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>local</id>
					<layout>jpp</layout>
					<url>__MAVENREPO_DIR_PLACEHOLDER__</url>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>plugins-internal</id>
					<name>plugins-internal</name>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-external</id>
					<name>plugins-external</name>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-maven</id>
					<name>plugins-maven</name>
					<layout>jpp</layout>
					<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<activeProfile>JPP</activeProfile>
	</activeProfiles>
</settings>




More information about the JPackage-commits mailing list