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

jpackage jpackage at ryu.zarb.org
Fri Jul 10 18:33:09 CEST 2009


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

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

--- NEW FILE: opensaml2.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
%define oname opensaml

Name:           opensaml2
Version:        2.2.3
Release:        2%{?dist}
Epoch:          0
Summary:        Open Source SAML 1.0, 1.1 and 2.0 implementation
License:        ASL 2.0
Group:          Development/Java
URL:            http://www.opensaml.org/
# svn -q export https://svn.middleware.georgetown.edu/java-opensaml2/tags/2.2.3/ opensaml2-2.2.3
Source0:        opensaml2-2.2.3.tar.gz
Source1:        opensaml2-jpp-depmap.xml
Source2:        opensaml2-settings.xml
Patch0:         opensaml2-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:  spring-mock
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires:  jargs
BuildRequires:  openws
BuildRequires:  spring2-core

Requires:  java >= 0:1.5.0
Requires:  jargs
Requires:  openws
Requires:  spring2-core

%description
OpenSAML.

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

%description javadoc
%{summary}.

%prep
%setup -q 
%patch0 -b .sav0
mkdir endorsed
ln -s $(build-classpath xalan-j2) endorsed

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.skip=true \
        -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/%{oname}-%{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 %{oname} %{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:2.2.3-2
- spec cleanup

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

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

 <dependency>
   <maven>
     <groupId>jargs</groupId>
     <artifactId>jargs</artifactId>
     <version>1.0</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>jargs</artifactId>
     <version>1.0</version>
   </jpp>
 </dependency>

</dependencies>

--- NEW FILE: opensaml2-pom.patch ---
--- pom.xml.sav0	2008-12-21 12:21:53.000000000 +0100
+++ pom.xml	2009-06-04 20:02:54.000000000 +0200
@@ -161,6 +161,7 @@
                     <debug>true</debug>
                 </configuration>
             </plugin>
+<!--
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-assembly-plugin</artifactId>
@@ -180,11 +181,18 @@
                     </execution>
                 </executions>
             </plugin>
+-->
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                   <argLine>-Xmx256m</argLine>
+                  <systemProperties>
+                    <property>
+                      <name>java.endorsed.dirs</name>
+                      <value>endorsed</value>
+                    </property>
+                  </systemProperties>
                 </configuration>
             </plugin>
             <plugin>
@@ -250,15 +258,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>
@@ -478,4 +490,4 @@
         </developer>
     </developers>
     
-</project>
\ Kein Zeilenumbruch am Dateiende.
+</project>




More information about the JPackage-commits mailing list