[Jpackage-commits] rpms/free/openws openws-jpp-depmap.xml, NONE, 1.1 openws-pom.patch, NONE, 1.1 openws-settings.xml, NONE, 1.1 openws.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Fri Jul 10 17:58:31 CEST 2009


Update of /home/projects/jpackage/cvs/rpms/free/openws
In directory ryu.zarb.org:/tmp/Kb8ZxZCDx6/rpms/free/openws

Added Files:
	openws-jpp-depmap.xml openws-pom.patch openws-settings.xml 
	openws.spec 
Log Message:
1.2.2-2.jpp6

--- NEW FILE: openws-jpp-depmap.xml ---
<dependencies>
<!--
-->
 <dependency>
   <maven>
     <groupId>org.apache.santuario</groupId>
     <artifactId>xmlsec</artifactId>
     <version>1.4.2</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>xml-security</artifactId>
     <version>1.4.2</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>joda-time</groupId>
     <artifactId>joda-time</artifactId>
     <version>1.5.2</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>joda-time</artifactId>
     <version>1.5.2</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>org.bouncycastle</groupId>
     <artifactId>bcprov-ext-jdk15</artifactId>
     <version>1.40</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>bcprov</artifactId>
     <version>1.42</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>org.apache.commons.ssl</groupId>
     <artifactId>not-yet-commons-ssl</artifactId>
     <version>0.3.9</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>commons-ssl</artifactId>
     <version>0.3.10</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>org.apache.xerces</groupId>
     <artifactId>resolver</artifactId>
     <version>2.9.1</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>xml-commons-resolver12</artifactId>
     <version>2.9.1</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>org.apache.xerces</groupId>
     <artifactId>serializer</artifactId>
     <version>2.9.1</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>xalan-j2-serializer</artifactId>
     <version>2.7.0</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>org.apache.xalan</groupId>
     <artifactId>xalan</artifactId>
     <version>2.7.1</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>xalan-j2</artifactId>
     <version>2.7.0</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>org.apache.xerces</groupId>
     <artifactId>xercesImpl</artifactId>
     <version>2.9.1</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>xerces-j2</artifactId>
     <version>2.7.1</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>org.apache.xerces</groupId>
     <artifactId>xml-apis</artifactId>
     <version>2.9.1</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>xml-commons-jaxp-1.3-apis</artifactId>
     <version>1.3.03</version>
   </jpp>
 </dependency>

<!--
-->
</dependencies>

--- NEW FILE: openws-pom.patch ---
--- pom.xml.sav0	2008-12-21 12:14:01.000000000 +0100
+++ pom.xml	2009-06-04 19:14:06.000000000 +0200
@@ -152,6 +152,7 @@
                     <debug>true</debug>
                 </configuration>
             </plugin>
+<!--
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-assembly-plugin</artifactId>
@@ -171,6 +172,7 @@
                     </execution>
                 </executions>
             </plugin>
+-->
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
@@ -225,15 +227,19 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-javadoc-plugin</artifactId>
                 <configuration>
+<!--
                     <links>
                         <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
                     </links>
+-->
                     <quiet>true</quiet>
                     <author>false</author>
                     <version>true</version>
                     <doctitle>${project.name} ${project.version} Java API.</doctitle>
                     <windowtitle>${project.name} ${project.version} Java API.</windowtitle>
+<!--
                     <overview>src/main/java/overview.html</overview>
+-->
                 </configuration>
             </plugin>
             <plugin>
@@ -453,4 +459,4 @@
         </developer>
     </developers>
     
-</project>
\ Kein Zeilenumbruch am Dateiende.
+</project>

--- NEW FILE: openws-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>

--- NEW FILE: openws.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 section free

Name:           openws
Version:        1.2.2
Release:        2%{?dist}
Epoch:          0
Summary:        Open WS
License:        ASL 2.0
Group:          Development/Java
URL:            http://www.opensaml.org/
# svn -q export https://svn.middleware.georgetown.edu/java-openws/tags/1.2.2/ openws-1.2.2
Source0:        openws-1.2.2.tar.gz
Source1:        openws-jpp-depmap.xml
Source2:        openws-settings.xml
Patch0:         openws-pom.patch
BuildArch:      noarch
Requires(post): jpackage-utils >= 0:1.7.3
Requires(postun): jpackage-utils >= 0:1.7.3
BuildRequires:  jpackage-utils >= 0:1.7.3
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  maven2 >= 0:2.0.7
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven-doxia-sitetools
BuildRequires:  maven-release
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  maven-surefire-provider-junit
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:  spring-mock
BuildRequires:  spring2-core
BuildRequires:  xmltooling >= 0:1.2.0
Requires:  java >= 0:1.5.0
Requires:  xmltooling >= 0:1.2.0
Requires:  spring2-core

%description
Open WS.

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

%description javadoc
%{summary}.

%prep
%setup -q 
%patch0 -b .sav0

cp -p %{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

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

%{_bindir}/mvn-jpp -e \
        -s ${M2SETTINGS} \
        -Dmaven.test.failure.ignore=true \
        -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        install javadoc:javadoc

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -p -m 644 target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -p -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap org.opensaml %{name} %{version} JPP %{name}

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* \
                  $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_datadir}/maven2/poms/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}

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

%changelog
* Fri Jul 10 2009 David Walluck <dwalluck at redhat.com> 0:1.2.2-2
- spec cleanup

* Tue Jun 16 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.2.2-1.jpp5
- first release




More information about the JPackage-commits mailing list