[Jpackage-commits] rpms/free/jboss-cache-core jboss-cache-core-component-info.xml, NONE, 1.1 jboss-cache-core-jpp-depmap.xml, NONE, 1.1 jboss-cache-core-settings.xml, NONE, 1.1 jboss-cache-core.spec, NONE, 1.1 jbosscache-common-parent-1.3.pom, NONE, 1.1 jbosscache-support-1.3.pom, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed Jul 1 00:32:25 CEST 2009


Update of /home/projects/jpackage/cvs/rpms/free/jboss-cache-core
In directory ryu.zarb.org:/tmp/uI0Tm8cxkR/rpms/free/jboss-cache-core

Added Files:
	jboss-cache-core-component-info.xml 
	jboss-cache-core-jpp-depmap.xml jboss-cache-core-settings.xml 
	jboss-cache-core.spec jbosscache-common-parent-1.3.pom 
	jbosscache-support-1.3.pom 
Log Message:
3.1.0-2.jpp6

--- NEW FILE: jboss-cache-core-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: jbosscache-common-parent-1.3.pom ---
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.jboss.cache</groupId>
		<artifactId>jbosscache-support</artifactId>
		<version>1.3</version>
	</parent>
	<groupId>org.jboss.cache</groupId>
	<artifactId>jbosscache-common-parent</artifactId>
	<version>1.3</version>
	<packaging>pom</packaging>
	<name>JBoss Cache Common Parent</name>
	<description>The parent POM for all JBoss Cache modules.</description>
	<url>http://labs.jboss.org/jbosscache</url>
	<organization>
		<name>JBoss, a division of Red Hat</name>
		<url>http://labs.jboss.org</url>
	</organization>
	<licenses>
		<license>
			<name>GNU Lesser General Public License</name>
			<url>http://www.gnu.org/copyleft/lesser.html</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<scm>
		<connection>scm:svn:http://anonsvn.jboss.org/repos/jbosscache</connection>
		<developerConnection>scm:svn:https://svn.jboss.org/repos/jbosscache</developerConnection>
		<url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbosscache/</url>
	</scm>
	<issueManagement>
		<system>jira</system>
		<url>http://jira.jboss.com/jira/browse/JBCACHE</url>
	</issueManagement>
	<ciManagement>
		<system>hudson</system>
		<url>http://hudson.qa.jboss.com/hudson/view/JBoss%20Cache/</url>
		<notifiers>
			<notifier>
				<type>mail</type>
				<address>jbosscache-dev at lists.jboss.org</address>
			</notifier>
		</notifiers>
	</ciManagement>
	<mailingLists>
		<mailingList>
			<name>JBoss Cache Announcements</name>
			<post>jbosscache-announce at lists.jboss.org</post>
			<subscribe>https://lists.jboss.org/mailman/listinfo/jbosscache-announce</subscribe>
			<unsubscribe>https://lists.jboss.org/mailman/listinfo/jbosscache-announce</unsubscribe>
			<archive>http://lists.jboss.org/pipermail/jbosscache-dev/</archive>
		</mailingList>
		<mailingList>
			<name>JBoss Cache Commit Notificatons</name>
			<post>jbosscache-commits at lists.jboss.org</post>
			<subscribe>https://lists.jboss.org/mailman/listinfo/jbosscache-commits</subscribe>
			<unsubscribe>https://lists.jboss.org/mailman/listinfo/jbosscache-commits</unsubscribe>
			<archive>http://lists.jboss.org/pipermail/jbosscache-commits/</archive>
		</mailingList>
		<mailingList>
			<name>JBoss Cache Developers</name>
			<post>jbosscache-dev at lists.jboss.org</post>
			<subscribe>https://lists.jboss.org/mailman/listinfo/jbosscache-dev</subscribe>
			<unsubscribe>https://lists.jboss.org/mailman/listinfo/jbosscache-dev</unsubscribe>
			<archive>http://lists.jboss.org/pipermail/jbosscache-dev/</archive>
		</mailingList>
		<mailingList>
			<name>JBoss Cache Issue Notifications</name>
			<post>jbosscache-issues at lists.jboss.org</post>
			<subscribe>https://lists.jboss.org/mailman/listinfo/jbosscache-issues</subscribe>
			<unsubscribe>https://lists.jboss.org/mailman/listinfo/jbosscache-issues</unsubscribe>
			<archive>http://lists.jboss.org/pipermail/jbosscache-issues/</archive>
		</mailingList>
	</mailingLists>
	<build>
		<plugins>
<!-- require at least JDK 1.5 to run the build -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<version>1.0-alpha-3</version>
				<executions>
					<execution>
						<id>enforce-java</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireJavaVersion>
									<version>[1.5,)</version>
								</requireJavaVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
<!-- by default, compile to JDK 1.5 compatibility (individual modules and/or user can override) -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.0.1</version>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
<!-- add specification/implementation details to the manifests -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>**/*.properties</exclude>
					</excludes>
					<archive>
						<manifest>
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.3</version>
		        <inherited>true</inherited>
				<configuration>
					<systemProperties>
						<property>
							<name>bind.address</name>
							<value>127.0.0.1</value>
						</property>
						<property>
							<name>jgroups.stack</name>
							<value>udp</value>
						</property>
						<property>
							<name>java.net.preferIPv4Stack</name>
							<value>true</value>
						</property>
					</systemProperties>
					<groups>${defaultTestGroup}</groups>
					<forkMode>always</forkMode>
<!-- increasing JVM heap size -->
					<argLine>-Xmx1024M</argLine>
<!-- Warning, this does not work right on 2.4-SNAPSHOT, (see SUREFIRE-349) -->
<!-- This seems to fail in some cases on 2.3 as well, disable for now -->
					<redirectTestOutputToFile>false</redirectTestOutputToFile>
					<reportFormat>xml</reportFormat>
				</configuration>
			</plugin>
			
<!-- javadocs : we want these run in the 'package' lifecycle phase-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<executions>
					<execution>
						<phase>${javadocPhase}</phase>
						<goals>
							<goal>javadoc</goal>
						</goals>
						<configuration>
							<aggregate>${jbosscache.reports.aggregate}</aggregate>
							<links>
								<link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
								<link>http://java.sun.com/javaee/5/docs/api/</link>
							</links>
						</configuration>
					</execution>
				</executions>
			</plugin>
<!-- Eclipse -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<configuration>
					<buildOutputDirectory>${basedir}/eclipse-output</buildOutputDirectory>
				</configuration>
			</plugin>
		</plugins>
		<finalName>${artifactId}</finalName>
	</build>
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
				<version>2.3</version>
			</plugin>
<!-- DISABLE - Maven doesn't build the classpath correctly 
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <aggregate>${jbosscache.reports.aggregate}</aggregate>
                    <links>
                        <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
                        <link>http://java.sun.com/javaee/5/docs/api/</link>
                    </links>
                </configuration>
            </plugin>
            -->
<!-- JXR - links from javadocs and junit reports to an html representation of the code -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jxr-plugin</artifactId>
				<configuration>
					<aggregate>${jbosscache.reports.aggregate}</aggregate>
				</configuration>
			</plugin>
<!-- PMD code analysis reports -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-pmd-plugin</artifactId>
				<configuration>
					<aggregate>${jbosscache.reports.aggregate}</aggregate>
					<linkXref>true</linkXref>
					<minimumTokens>100</minimumTokens>
					<targetJdk>1.5</targetJdk>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>taglist-maven-plugin</artifactId>
				<configuration>
					<aggregate>${jbosscache.reports.aggregate}</aggregate>
					<tags>
						<tag>@FIXME</tag>
						<tag>@fixme</tag>
						<tag>FIXME</tag>
						<tag>fixme</tag>
						<tag>@TODO</tag>
						<tag>@todo</tag>
						<tag>TODO</tag>
						<tag>todo</tag>
					</tags>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>javancss-maven-plugin</artifactId>
			</plugin>
<!-- Findbugs report -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>findbugs-maven-plugin</artifactId>
				<version>1.2-SNAPSHOT</version>
				<configuration>
					<onlyAnalyze>org.jboss.cache.*</onlyAnalyze>
					<xmlOutput>true</xmlOutput>
					<xmlOutputDirectory>target</xmlOutputDirectory>
				</configuration>
			</plugin>
		</plugins>
	</reporting>
	<properties>
<!-- for now, at least, lets aggregate them -->
		<jbosscache.reports.aggregate>true</jbosscache.reports.aggregate>
		<!-- Default TestNG groups to run -->
		<defaultTestGroup>functional</defaultTestGroup>
		<!-- Default phase in which javadocs are generated -->
		<javadocPhase>package</javadocPhase>
	</properties>
	<repositories>
		<repository>
			<id>repository.jboss.org</id>
			<url>http://repository.jboss.org/maven2</url>
		</repository>
		<repository>
			<id>snapshots.jboss.org</id>
			<url>http://snapshots.jboss.org/maven2</url>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>Main Maven Repo</id>
			<url>http://repo1.maven.org/maven2/</url>
		</pluginRepository>
<!--  Avoid enabling this, it brings in unstable plugins 
        <pluginRepository>
            <id>apache.snapshots</id>
            <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
        </pluginRepository>
-->
		<pluginRepository>
			<id>snapshots.repository.codehaus.org</id>
			<url>http://snapshots.repository.codehaus.org</url>
		</pluginRepository>
		<pluginRepository>
			<id>repository.jboss.org</id>
			<url>http://repository.jboss.org/maven2</url>
		</pluginRepository>
		<pluginRepository>
			<id>snapshots.jboss.org</id>
			<url>http://snapshots.jboss.org/maven2</url>
		</pluginRepository>
	</pluginRepositories>
	<dependencies>
<!-- test dependencies to run the test suites -->
		<dependency>
			<groupId>org.testng</groupId>
			<artifactId>testng</artifactId>
			<version>5.1</version>
			<scope>test</scope>
			<classifier>jdk15</classifier>
		</dependency>
		<dependency>
			<groupId>org.apache.derby</groupId>
			<artifactId>derby</artifactId>
			<version>10.2.2.0</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.14</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
<!-- Profiles, used for test permutations -->
	<profiles>
		<profile>
			<!-- EMMA for code coverage -->			
			<id>codeCoverage</id>
			<build>
				<plugins>
				<plugin>      
			        <groupId>org.codehaus.mojo</groupId>
			        <artifactId>emma-maven-plugin</artifactId>
			        <version>1.0-SNAPSHOT</version>
			        <inherited>true</inherited>          
			        <executions>
			          <execution>                
			            <goals>
			              <goal>instrument</goal>
			            </goals>
			          </execution>
			        </executions>
			      </plugin>
				<!-- override the surefire plugin with this stuff -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.3</version>
					<inherited>true</inherited>
					<configuration>
						<systemProperties>
							<property>
								<name>bind.address</name>
								<value>127.0.0.1</value>
							</property>
							<property>
								<name>jgroups.stack</name>
								<value>udp</value>
							</property>
							<property>
								<name>java.net.preferIPv4Stack</name>
								<value>true</value>
							</property>
						</systemProperties>
						<groups>${defaultTestGroup}</groups>
						<forkMode>always</forkMode>
						<!-- increasing JVM heap size -->
						<argLine>-Xmx1024M</argLine>
						<!-- Warning, this does not work right on 2.4-SNAPSHOT, (see SUREFIRE-349) -->
						<!-- This seems to fail in some cases on 2.3 as well, disable for now -->
						<redirectTestOutputToFile>false</redirectTestOutputToFile>
						<reportFormat>xml</reportFormat>
						<classesDirectory>${project.build.directory}/emma-classes</classesDirectory>
					</configuration>
				</plugin>
			</plugins>
			</build>
			<reporting>
				<plugins>
				<!-- EMMA report -->
					<plugin>      
						<groupId>org.codehaus.mojo</groupId>
				      	<artifactId>emma-maven-plugin</artifactId>
				      	<version>1.0-SNAPSHOT</version>
				        <inherited>true</inherited>          
				    </plugin>			
				</plugins>
			</reporting>		
		</profile>			
		<profile>
			<id>jgroups-tcp</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>2.3</version>
						<configuration>
							<systemProperties>
								<property>
									<name>bind.address</name>
									<value>127.0.0.1</value>
								</property>
								<property>
									<name>jgroups.stack</name>
									<value>tcp</value>
								</property>
							</systemProperties>
							<groups>jgroups</groups>
							<reportsDirectory>${project.build.directory}/jgroups-tcp-reports</reportsDirectory>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-report-plugin</artifactId>
						<version>2.3</version>
						<configuration>
							<reportsDirectory>${project.build.directory}/jgroups-tcp-reports</reportsDirectory>
							<outputName>jgroups-tcp-report</outputName>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>transaction-jbossjta</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
							<systemProperties>
								<property>
									<name>bind.address</name>
									<value>127.0.0.1</value>
								</property>
								<property>
									<name>jgroups.stack</name>
									<value>udp</value>
								</property>
								<property>
									<name>org.jboss.cache.test.tm</name>
									<value>jboss-jta</value>
								</property>
							</systemProperties>
							<groups>transaction</groups>
							<reportsDirectory>${project.build.directory}/transaction-jbossjta-reports</reportsDirectory>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-report-plugin</artifactId>
						<configuration>
							<reportsDirectory>${project.build.directory}/transaction-jbossjta-reports</reportsDirectory>
							<outputName>transaction-jbossjta-report</outputName>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>

--- NEW FILE: jboss-cache-core-component-info.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<project name="">
  <component id="jboss/cache/jbosscache-core"
             licenseType=""
             version="@VERSION@"
             tag="@TAG@"
             description=""
             
             > 
              
    <artifact id="jbosscache-core.jar"/>


    <export>
      <include input="jbosscache-core.jar"/>

    </export>
  </component>
</project>

--- NEW FILE: jboss-cache-core.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 with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}

%bcond_without repolib

%define repodir %{_javadir}/repository.jboss.com/jboss/cache/jbosscache-core/%{version}-brew
%define repodirlib %{repodir}/lib
%define repodirsrc %{repodir}/src

%define section free
%define reltag GA
%define namedversion %{version}.%{reltag}

Name:           jboss-cache-core
Version:        3.1.0
Release:        2%{?dist}
Epoch:          0
Summary:        JBoss Cache Core
License:        LGPLv2+
Group:          Development/Java
URL:            http://www.jboss.org/
# svn -q export http://anonsvn.jboss.org/repos/jbosscache/core/tags/3.1.0.GA/ jboss-cache-core-3.1.0
Source0:        jboss-cache-core-3.1.0.tar.gz
Source1:        jboss-cache-core-jpp-depmap.xml
Source2:        jboss-cache-core-settings.xml
Source3:        http://repository.jboss.org/maven2/org/jboss/cache/jbosscache-common-parent/1.3/jbosscache-common-parent-1.3.pom
Source4:        http://repository.jboss.com/maven2/org/jboss/cache/jbosscache-support/1.3/jbosscache-support-1.3.pom
Source5:        jboss-cache-core-component-info.xml

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-assembly
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-eclipse
BuildRequires:  maven2-plugin-enforcer
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-shared-enforcer-rule-api
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  bsh2
BuildRequires:  easymock2
BuildRequires:  hsqldb
BuildRequires:  jboss-parent
BuildRequires:  jbossts
BuildRequires:  noderunner-http
BuildRequires:  servlet_2_5_api
BuildRequires:  testng
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires:  berkeleydb-je3
BuildRequires:  c3p0
BuildRequires:  derby
BuildRequires:  jakarta-commons-logging
BuildRequires:  jboss-common-core
BuildRequires:  jcip-annotations
BuildRequires:  jdbm
BuildRequires:  jgroups
BuildRequires:  jta_1_1_api
BuildRequires:  noderunner-amazon-s3

Requires:  java >= 0:1.5.0
Requires:  jakarta-commons-logging
Requires:  jboss-common-core
Requires:  jgroups
Requires:  jta_1_1_api

%description
JBoss cache core.

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

%description javadoc
%{summary}.

%if %with repolib
%package repolib
Summary:        Artifacts to be uploaded to a repository library
Group:          Development/Libraries/Java

%description repolib
Artifacts to be uploaded to a repository library.
This package is not meant to be installed but so its contents
can be extracted through rpm2cpio.
%endif

%prep
%setup -q 

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
mkdir -p $MAVEN_REPO_LOCAL/JPP/maven2/default_poms/
cp -p %{SOURCE3} $MAVEN_REPO_LOCAL/JPP/maven2/default_poms/org.jboss.cache-jbosscache-common-parent.pom
cp -p %{SOURCE4} $MAVEN_REPO_LOCAL/JPP/maven2/default_poms/org.jboss.cache-jbosscache-support.pom

%{_bindir}/mvn-jpp -e \
        -s ${M2SETTINGS} \
        -Dmaven.test.skip=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 -m 644 target/jbosscache-core.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -m 644 target/jbosscache-core-tests.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tests-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/jbosscache-core-%{version}.jar
ln -s %{name}-tests-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/jbosscache-core-tests-%{version}.jar
%add_to_maven_depmap org.jboss.cache jbosscache-core %{namedversion} JPP %{name}
(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
%add_to_maven_depmap org.jboss.cache jbosscache-common-parent 1.3 JPP jbosscache-common-parent
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-jbosscache-common-parent.pom
%add_to_maven_depmap org.jboss.cache jbosscache-support 1.3 JPP jbosscache-support
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-jbosscache-support.pom
install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom

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

%if %with repolib
install -d -m 755 $RPM_BUILD_ROOT%{repodir}
install -d -m 755 $RPM_BUILD_ROOT%{repodirlib}
install -p -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{repodir}/component-info.xml
sed -i 's/@VERSION@/%{version}.%{reltag}-brew/g' $RPM_BUILD_ROOT%{repodir}/component-info.xml
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
sed -i "s/@TAG@/$tag/g" $RPM_BUILD_ROOT%{repodir}/component-info.xml
install -d -m 755 $RPM_BUILD_ROOT%{repodirsrc}
install -p -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{repodirsrc}
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{repodirsrc}
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{repodirsrc}
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{repodirsrc}
install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{repodirsrc}
cp -p $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar $RPM_BUILD_ROOT%{repodirlib}/jbosscache-core.jar
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_javadir}/jboss-cache-core-%{version}.jar
%{_javadir}/jboss-cache-core-tests-%{version}.jar
%{_javadir}/jboss-cache-core-tests.jar
%{_javadir}/jboss-cache-core.jar
%{_javadir}/jbosscache-core-%{version}.jar
%{_javadir}/jbosscache-core-tests-%{version}.jar
%{_javadir}/jbosscache-core-tests.jar
%{_javadir}/jbosscache-core.jar
%{_datadir}/maven2/poms/JPP-jboss-cache-core.pom
%{_datadir}/maven2/poms/JPP-jbosscache-common-parent.pom
%{_datadir}/maven2/poms/JPP-jbosscache-support.pom
%{_mavendepmapfragdir}/%{name}

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

%if %with repolib
%files repolib
%defattr(0644,root,root,0755)
%{_javadir}/repository.jboss.com
%endif

%changelog
* Tue Jun 30 2009 David Walluck <dwalluck at redhat.com> 0:3.1.0-2
- add repolib
- add compat symlinks

* Mon Jun 29 2009 Ralph Apel <r.apel at r-apel.de> - 0:3.1.0-1.jpp5
- 3.1.0.GA

* Mon Jun 15 2009 Ralph Apel <r.apel at r-apel.de> - 0:2.2.0-1.jpp5
- first release

--- NEW FILE: jboss-cache-core-jpp-depmap.xml ---
<dependencies>

 <dependency>
   <maven>
     <groupId>slide</groupId>
     <artifactId>slide-webdavlib</artifactId>
     <version>2.1</version>
   </maven>
   <jpp>
     <groupId>JPP/slide</groupId>
     <artifactId>slide-webdavlib</artifactId>
     <version>2.1</version>
   </jpp>
 </dependency>

<!--
-->


 <dependency>
   <maven>
     <groupId>junit</groupId>
     <artifactId>junit4</artifactId>
     <version>4.0</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>junit44</artifactId>
     <version>4.4</version>
   </jpp>
 </dependency>


 <dependency>
   <maven>
     <groupId>beanshell</groupId>
     <artifactId>bsh</artifactId>
     <version>2.0b4</version>
   </maven>
   <jpp>
     <groupId>JPP/bsh2</groupId>
     <artifactId>bsh</artifactId>
     <version>2.0</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>com.sleepycat</groupId>
     <artifactId>je</artifactId>
     <version>3.3.75</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>berkeleydb-je3</artifactId>
     <version>3.2.76</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>jgroups</groupId>
     <artifactId>jgroups</artifactId>
     <version>2.6.2</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>jgroups</artifactId>
     <version>2.4.1</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>jboss.jbossts</groupId>
     <artifactId>jbossjta</artifactId>
     <version>4.3.0.GA</version>
   </maven>
   <jpp>
     <groupId>JPP/jbossts</groupId>
     <artifactId>jbossjta</artifactId>
     <version>4.2.3</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>javax.transaction</groupId>
     <artifactId>jta</artifactId>
     <version>1.1</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>jta_1_1_api</artifactId>
     <version>1.1</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>c3p0</groupId>
     <artifactId>c3p0</artifactId>
     <version>0.9.1.1</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>c3p0</artifactId>
     <version>0.9.1.2</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>hsqldb</groupId>
     <artifactId>hsqldb</artifactId>
     <version>1.8.0.7</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>hsqldb</artifactId>
     <version>1.8.0.8</version>
   </jpp>
 </dependency>


</dependencies>

--- NEW FILE: jbosscache-support-1.3.pom ---
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jboss.cache</groupId>
  <artifactId>jbosscache-support</artifactId>
  <version>1.3</version>
  <packaging>pom</packaging>
  <name>JBoss Cache Support Modules</name>
  <description>Grouping of JBoss Cache support modules</description>
  <modules>
    <module>xslt</module>
    <module>common</module>
  </modules>
  <build>
<!-- WebDAV plugin to upload snapshots -->
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav</artifactId>
        <version>1.0-beta-2</version>
      </extension>
    </extensions>
  </build>
  <distributionManagement>
    <repository>
<!-- Copy the dist to the local checkout of the JBoss maven2 repo ${maven.repository.root} -->
<!-- It is anticipated that ${maven.repository.root} be set in user's settings.xml -->
<!-- TODO : replace this with direct svn access once the svnkit providers are available -->
      <id>repository.jboss.org</id>
      <url>file://${maven.repository.root}</url>
    </repository>
    <snapshotRepository>
      <id>snapshots.jboss.org</id>
      <name>JBoss Snapshot Repository</name>
      <url>dav:https://snapshots.jboss.org/maven2</url>
    </snapshotRepository>
  </distributionManagement>
</project>




More information about the JPackage-commits mailing list