[Jpackage-commits] dist/xbean/JPP-6 Makefile, NONE, 1.1 sources, NONE, 1.1 xbean-finder-pom.patch, NONE, 1.1 xbean-jpp-depmap.xml, NONE, 1.1 xbean-settings.xml, NONE, 1.1 xbean-site.patch, NONE, 1.1 xbean.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Tue Dec 7 20:24:39 CET 2010


Update of /home/projects/jpackage/cvs/dist/xbean/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv16486/JPP-6

Added Files:
	Makefile sources xbean-finder-pom.patch xbean-jpp-depmap.xml 
	xbean-settings.xml xbean-site.patch xbean.spec 
Log Message:
Import xbean into JPP-6

--- NEW FILE: xbean-finder-pom.patch ---
--- xbean-finder/pom.xml.sav	2010-12-07 14:13:57.000000000 +0100
+++ xbean-finder/pom.xml	2010-12-07 14:16:17.000000000 +0100
@@ -35,13 +35,13 @@
     
     <dependencies>
         <dependency>
-           <groupId>asm</groupId>
+           <groupId>org.objectweb.asm</groupId>
            <artifactId>asm</artifactId>
            <version>3.1</version>
            <scope>provided</scope>
         </dependency>
         <dependency>
-           <groupId>asm</groupId>
+           <groupId>org.objectweb.asm</groupId>
            <artifactId>asm-commons</artifactId>
            <version>3.1</version>
            <scope>provided</scope>

--- NEW FILE: xbean-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: Makefile ---
# Makefile for source rpm: xbean
# $Id: Makefile,v 1.1 2010/12/07 19:24:36 jpackage Exp $
NAME := xbean
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: sources ---
1d9b68d0568475bc9f5a3267a1d92255  xbean-3.4.3-src.tar.gz

--- NEW FILE: xbean-site.patch ---
--- src/site/site.xml.sav0	2006-10-31 09:57:20.000000000 +0100
+++ src/site/site.xml	2010-12-07 13:41:12.000000000 +0100
@@ -30,9 +30,9 @@
             <item name="Apache" href="http://apache.org/"/>
         </links>
         
-        ${modules}
+        <menu ref="modules"/>
         
-        ${reports}
+        <menu ref="reports"/>
         
     </body>
 

--- NEW FILE: xbean-jpp-depmap.xml ---
<dependencies>
<!--
   <dependency>
      <maven>
         <groupId>ant</groupId>
         <artifactId>ant</artifactId>
         <version>1.6.2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>ant</artifactId>
         <version>1.6.2</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>backport-util-concurrent</groupId>
         <artifactId>backport-util-concurrent</artifactId>
         <version>2.0_01_pd</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>backport-util-concurrent</artifactId>
         <version>2.0_01_pd</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.0.3</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.0.3</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.apache.maven</groupId>
         <artifactId>maven-project</artifactId>
         <version>2.0</version>
      </maven>
      <jpp>
         <groupId>JPP/maven2</groupId>
         <artifactId>project</artifactId>
         <version>2.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.codehaus.plexus</groupId>
         <artifactId>plexus-archiver</artifactId>
         <version>1.0-alpha-5</version>
      </maven>
      <jpp>
         <groupId>JPP/plexus</groupId>
         <artifactId>archiver</artifactId>
         <version>1.0-alpha-5</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.apache.maven</groupId>
         <artifactId>maven-artifact</artifactId>
         <version>2.0</version>
      </maven>
      <jpp>
         <groupId>JPP/maven2</groupId>
         <artifactId>artifact</artifactId>
         <version>2.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.apache.maven</groupId>
         <artifactId>maven-archiver</artifactId>
         <version>2.0</version>
      </maven>
      <jpp>
         <groupId>JPP/maven2</groupId>
         <artifactId>archiver</artifactId>
         <version>2.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.codehaus.plexus</groupId>
         <artifactId>plexus-utils</artifactId>
         <version>1.1</version>
      </maven>
      <jpp>
         <groupId>JPP/plexus</groupId>
         <artifactId>utils</artifactId>
         <version>1.1</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.apache.maven</groupId>
         <artifactId>maven-plugin-api</artifactId>
         <version>2.0</version>
      </maven>
      <jpp>
         <groupId>JPP/maven2</groupId>
         <artifactId>plugin-api</artifactId>
         <version>2.0</version>
      </jpp>
   </dependency>
-->
   <dependency>
      <maven>
         <groupId>groovy</groupId>
         <artifactId>groovy</artifactId>
         <version>1.0-jsr-03</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>groovy15</artifactId>
         <version>1.5.6</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>stax</groupId>
         <artifactId>stax-api</artifactId>
         <version>1.0</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>stax_1_0_api</artifactId>
         <version>1.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>mx4j</groupId>
         <artifactId>mx4j</artifactId>
         <version>3.0.1</version>
      </maven>
      <jpp>
         <groupId>JPP/mx4j</groupId>
         <artifactId>mx4j</artifactId>
         <version>3.0.1</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>springframework</groupId>
         <artifactId>spring</artifactId>
         <version>1.2.4</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>spring</artifactId>
         <version>1.2.9</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring</artifactId>
         <version>2.0-m5</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>spring2</artifactId>
         <version>2.5.1</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring</artifactId>
         <version>2.0-rc2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>spring2</artifactId>
         <version>2.5.1</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring-jmx</artifactId>
         <version>2.0.5</version>
      </maven>
      <jpp>
         <groupId>JPP/spring2</groupId>
         <artifactId>context</artifactId>
         <version>2.5.5</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>cglib</groupId>
         <artifactId>cglib-nodep</artifactId>
         <version>2.1_2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>cglib-nodep</artifactId>
         <version>2.1.3</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>ant</groupId>
         <artifactId>ant-junit</artifactId>
         <version>1.6.5</version>
      </maven>
      <jpp>
         <groupId>JPP/ant</groupId>
         <artifactId>ant-junit</artifactId>
         <version>1.6.5</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>commons-primitives</groupId>
         <artifactId>commons-primitives</artifactId>
         <version>1.0</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-primitives</artifactId>
         <version>1.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>xstream</groupId>
         <artifactId>xstream</artifactId>
         <version>1.2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>xstream</artifactId>
         <version>1.2.2</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>radeox</groupId>
         <artifactId>radeox-oro</artifactId>
         <version>0.9</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>radeox</artifactId>
         <version>0.9</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>radeox</groupId>
         <artifactId>radeox</artifactId>
         <version>0.9</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>radeox</artifactId>
         <version>0.9</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>axion</groupId>
         <artifactId>axion</artifactId>
         <version>1.0-M3-dev</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>radeox</artifactId>
         <version>1.0-M3-dev</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>idb</groupId>
         <artifactId>idb</artifactId>
         <version>3.26</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>hsqldb</artifactId>
         <version>1.8.0.8</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>mockobjects</groupId>
         <artifactId>mockobjects-core</artifactId>
         <version>0.09</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>mockobjects-core</artifactId>
         <version>0.09</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>xpp3</groupId>
         <artifactId>xpp3</artifactId>
         <version>1.1.3.4.O</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>xpp3</artifactId>
         <version>1.1.3.8</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>xpp3</groupId>
         <artifactId>xpp3_min</artifactId>
         <version>1.1.3.4.O</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>xpp3</artifactId>
         <version>1.1.3.8</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>xmlpull</groupId>
         <artifactId>xmlpull</artifactId>
         <version>1.1.3.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>xpp3</artifactId>
         <version>1.1.3.8</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>javax.servlet</groupId>
         <artifactId>jsp-api</artifactId>
         <version>2.O</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jsp_2_0_api</artifactId>
         <version>2.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>com.thoughtworks.qdox</groupId>
         <artifactId>qdox</artifactId>
         <version>1.6.3</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>qdox</artifactId>
         <version>1.6.3</version>
      </jpp>
   </dependency>
</dependencies>

--- NEW FILE: xbean.spec ---
# Copyright (c) 2000-2010, 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
%define repo_dir    m2_repo/repository

Name:           xbean
Version:        3.4.3
Release:        1%{?dist}
Epoch:          0
Summary:        XBean plugin based server
License:        Apache Software License 2.0
Group:          Development/Java
URL:            http://geronimo.apache.org/xbean
Source0:        xbean-3.4.3-src.tar.gz
# svn export http://svn.apache.org/repos/asf/geronimo/xbean/tags/xbean-3.4.3/

Source2:        %{name}-jpp-depmap.xml
Source3:        %{name}-settings.xml
#Source4:        apache-3.pom
#Source6:        apache-jar-resource-bundle-1.3.jar
#Source7:        org.eclipse.osgi.jar
Patch0:         %{name}-site.patch
Patch1:         %{name}-finder-pom.patch

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  cglib
BuildRequires:  maven2 >= 0:2.0.7
BuildRequires:  maven2-plugin-ant
BuildRequires:  maven2-plugin-antrun
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-gpg
BuildRequires:  maven2-plugin-idea
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-plugin
BuildRequires:  maven2-plugin-pmd
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-source
BuildRequires:  maven2-plugin-surefire
BuildRequires:  maven-release
BuildRequires:  maven2-plugin-dependency
BuildRequires:  maven-jxr
BuildRequires:  felix-maven2

BuildRequires:  asm2
BuildRequires:  backport-util-concurrent
BuildRequires:  stax_1_0_api
BuildRequires:  groovy15
BuildRequires:  jakarta-commons-logging
BuildRequires:  junit
BuildRequires:  mx4j
BuildRequires:  plexus-archiver
BuildRequires:  plexus-utils
BuildRequires:  qdox
BuildRequires:  spring2-beans
BuildRequires:  spring2-context
BuildRequires:  spring2-core
BuildRequires:  spring2-web
BuildRequires:  xpp3-minimal

Requires:  java >= 0:1.5.0
Requires:  ant >= 0:1.6.5
Requires:  asm2
Requires:  backport-util-concurrent
Requires:  stax_1_0_api
Requires:  groovy15
Requires:  jakarta-commons-logging
Requires:  junit
Requires:  mx4j
Requires:  plexus-archiver
Requires:  plexus-utils
Requires:  qdox
Requires:  spring-all
Requires:  spring2-all

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}-buildroot

%description
The goal of XBean project is to created a plugin based 
server analogous to Eclipse being a plugin based IDE. 
XBean will be able to discover, download and install 
server plugins from an Internet based repository. In 
addition, we include support for multiple IoC systems, 
support for running with no IoC system, JMX without JMX 
code, lifecycle and class loader management, and a rock 
solid Spring integration.

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

%description javadoc
%{summary}.

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

cp %{SOURCE3} maven2-settings.xml

%build
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

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


%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -m 644 maven-%{name}-plugin/target/maven-%{name}-plugin-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/maven-%{name}-plugin-%{version}.jar
install -m 644 %{name}-classloader/target/%{name}-classloader-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-classloader-%{version}.jar
install -m 644 %{name}-classloader/target/alternate.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-classloader-alternate-%{version}.jar
install -m 644 %{name}-classpath/target/%{name}-classpath-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-classpath-%{version}.jar
install -m 644 %{name}-finder/target/%{name}-finder-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-finder-%{version}.jar
install -m 644 %{name}-naming/target/%{name}-naming-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-naming-%{version}.jar
install -m 644 %{name}-reflect/target/%{name}-reflect-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-reflect-%{version}.jar
install -m 644 %{name}-spring/target/%{name}-spring-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-spring-%{version}.jar
install -m 644 %{name}-telnet/target/%{name}-telnet-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-telnet-%{version}.jar

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

install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/plugins
(cd ${RPM_BUILD_ROOT}%{_datadir}/maven2/plugins && ln -sf %{_javadir}/%{name}/maven-%{name}-plugin-%{version}.jar maven-%{name}-plugin.jar)

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
cp pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}.pom
%add_to_maven_depmap org.apache.xbean %{name} %{version} JPP/%{name} %{name}
cp maven-%{name}-plugin/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-maven-%{name}-plugin.pom
%add_to_maven_depmap org.apache.xbean maven-%{name}-plugin %{version} JPP/%{name} maven-%{name}-plugin
cp %{name}-classloader/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-classloader.pom
%add_to_maven_depmap org.apache.xbean %{name}-classloader %{version} JPP/%{name} %{name}-classloader
cp %{name}-classpath/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-classpath.pom
%add_to_maven_depmap org.apache.xbean %{name}-classpath %{version} JPP/%{name} %{name}-classpath
cp %{name}-finder/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-finder.pom
%add_to_maven_depmap org.apache.xbean %{name}-finder %{version} JPP/%{name} %{name}-finder
cp %{name}-naming/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-naming.pom
%add_to_maven_depmap org.apache.xbean %{name}-naming %{version} JPP/%{name} %{name}-naming
cp %{name}-reflect/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-reflect.pom
%add_to_maven_depmap org.apache.xbean %{name}-reflect %{version} JPP/%{name} %{name}-reflect
cp %{name}-spring/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-spring.pom
%add_to_maven_depmap org.apache.xbean %{name}-spring %{version} JPP/%{name} %{name}-spring
cp %{name}-telnet/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-%{name}-telnet.pom
%add_to_maven_depmap org.apache.xbean %{name}-telnet %{version} JPP/%{name} %{name}-telnet

# 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} # 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(-,root,root,-)
%doc LICENSE.txt
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar
%{_datadir}/maven2/plugins/*
%{_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(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%changelog
* Tue Dec 07 2010 Ralph Apel <r.apel at r-apel.de> - 0:3.4.3-1
- 3.4.3 for JPP-6

* Wed Apr 01 2009 Ralph Apel <r.apel at r-apel.de> - 0:3.3-2.jpp5
- switch from groovy-jsr to groovy15
- enable install of xbean-osgi

* Fri Feb 06 2009 Ralph Apel <r.apel at r-apel.de> - 0:3.3-1.jpp5
- 3.3
- Drop no-maven build (bundles required)

* Thu Aug 28 2008 Ralph Apel <r.apel at r-apel.de> - 0:2.8-2.jpp5
- Fix depmap frags

* Fri Mar 28 2008 Ralph Apel <r.apel at r-apel.de> - 0:2.8-1jpp
- 2.8

* Mon Oct 09 2006 Ralph Apel <r.apel at r-apel.de> - 0:2.3-1jpp
- First JPP-1.7 release
- Add post/postun Requires for javadoc
- Add gcj_support option





More information about the JPackage-commits mailing list