[Jpackage-commits] dist/geronimo-genesis/JPP-5 Makefile, NONE, 1.1 geronimo-genesis-jpp-depmap.xml, NONE, 1.1 geronimo-genesis-settings.xml, NONE, 1.1 geronimo-genesis-tools-maven-plugin-pom.patch, NONE, 1.1 geronimo-genesis.spec, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Sun Feb 1 23:03:57 CET 2009


Update of /home/projects/jpackage/cvs/dist/geronimo-genesis/JPP-5
In directory ryu.zarb.org:/tmp/cvs-serv20023/JPP-5

Added Files:
	Makefile geronimo-genesis-jpp-depmap.xml 
	geronimo-genesis-settings.xml 
	geronimo-genesis-tools-maven-plugin-pom.patch 
	geronimo-genesis.spec sources 
Log Message:
Import geronimo-genesis into JPP-5

--- NEW FILE: geronimo-genesis-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: geronimo-genesis-jpp-depmap.xml ---
<dependencies>
<!--
-->

 <dependency>
   <maven>
     <groupId>org.apache.ant</groupId>
     <artifactId>ant-launcher</artifactId>
     <version>1.7.0</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>ant-launcher</artifactId>
     <version>1.7.0</version>
   </jpp>
 </dependency>

</dependencies>

--- NEW FILE: geronimo-genesis.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:           geronimo-genesis
Summary:        Geronimo Genesis
Url:            http://geronimo.apache.org/
Version:        1.3
Release:        1%{dist}
Epoch:          0
License:        Apache 2.0 License
Group:          Networking/Daemons
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Source0:        %{name}-%{version}.tar.gz
# Steps to reproduce
# svn export http://svn.apache.org/repos/asf/geronimo/server/tags/2.1.1/ geronimo-server-2.1.1

Source1:        %{name}-settings.xml
Source2:        %{name}-jpp-depmap.xml
Source3:        apache-jar-resource-bundle-1.3.jar
Patch0:         geronimo-genesis-tools-maven-plugin-pom.patch

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant
BuildRequires:  maven2
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-idea
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-plugin
BuildRequires:  maven2-plugin-release
BuildRequires:  maven2-plugin-remote-resources
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-surefire
BuildRequires:  mojo-maven2-support

BuildRequires:  jakarta-commons-jexl >= 0:1.1

Requires(post):    jpackage-utils >= 0:1.7.5
Requires(postun):  jpackage-utils >= 0:1.7.5
Requires:          java >= 0:1.5.0
Requires:          ant
Requires:          jakarta-commons-lang
Requires:          mojo-maven2-support
Requires:          plexus-utils

BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot

%description
Genesis


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

%description javadoc
%{summary}.

%prep
%setup -q 
chmod -R go=u-w *
for f in $(find . -name "*.jar"); do
  mv $f $f.no
done
cp %{SOURCE1} settings.xml

%patch0 -b .sav0

%build
export JAVA_HOME=%{_jvmdir}/java-1.5.0

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

export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL/org.apache
cp %{SOURCE3} $MAVEN_REPO_LOCAL/org.apache/apache-jar-resource-bundle.jar

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

export SETTINGS=$(pwd)/settings.xml

pushd config/checkstyle-config/
mvn-jpp \
        -e \
        -s $SETTINGS \
        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        install
popd
mvn-jpp \
        -e \
        -s $SETTINGS \
        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        install javadoc:javadoc

%install
rm -rf $RPM_BUILD_ROOT

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

%add_to_maven_depmap org.apache.geronimo.genesis.config project-config %{version} JPP/%{name} project-config
install -m 644 config/project-config/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-project-config.pom

%add_to_maven_depmap org.apache.geronimo.genesis genesis %{version} JPP/%{name} genesis
install -m 644 pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-genesis.pom

%add_to_maven_depmap org.apache.geronimo.genesis legal-bundle %{version} JPP/%{name} legal-bundle
install -m 644 legal-bundle/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-legal-bundle.pom
install -m 644 legal-bundle/target/legal-bundle-%{version}.jar \
   $RPM_BUILD_ROOT%{_javadir}/%{name}/legal-bundle-%{version}.jar

%add_to_maven_depmap org.apache.geronimo.genesis.config config %{version} JPP/%{name} config
install -m 644 config/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-config.pom

%add_to_maven_depmap org.apache.geronimo.genesis.config checkstyle-config %{version} JPP/%{name} checkstyle-config
install -m 644 config/checkstyle-config/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-checkstyle-config.pom
install -m 644 config/checkstyle-config/target/checkstyle-config-%{version}.jar \
   $RPM_BUILD_ROOT%{_javadir}/%{name}/checkstyle-config-%{version}.jar

%add_to_maven_depmap org.apache.geronimo.genesis.config geronimo-skin %{version} JPP/%{name} geronimo-skin
install -m 644 config/geronimo-skin/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-geronimo-skin.pom
install -m 644 config/geronimo-skin/target/geronimo-skin-%{version}.jar \
   $RPM_BUILD_ROOT%{_javadir}/%{name}/geronimo-skin-%{version}.jar

%add_to_maven_depmap org.apache.geronimo.genesis.config logging-config %{version} JPP/%{name} logging-config
install -m 644 config/logging-config/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-logging-config.pom
install -m 644 config/logging-config/target/logging-config-%{version}.jar \
   $RPM_BUILD_ROOT%{_javadir}/%{name}/logging-config-%{version}.jar


%add_to_maven_depmap org.apache.geronimo.genesis.plugins tools-maven-plugin %{version} JPP/%{name} tools-maven-plugin
%add_to_maven_depmap org.apache.geronimo.genesis.plugins maven-maven-plugin %{version} JPP/%{name} maven-maven-plugin
%add_to_maven_depmap org.apache.geronimo.genesis.plugins plugins %{version} JPP/%{name} plugins
install -m 644 plugins/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-plugins.pom
install -d -m 755 ${RPM_BUILD_ROOT}%{_datadir}/maven2/plugins
install -m 644 plugins/tools-maven-plugin/target/tools-maven-plugin-%{version}.jar \
       $RPM_BUILD_ROOT%{_javadir}/%{name}/tools-maven-plugin-%{version}.jar
install -m 644 plugins/tools-maven-plugin/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-tools-maven-plugin.pom
install -m 644 plugins/maven-maven-plugin/target/maven-maven-plugin-%{version}.jar \
       $RPM_BUILD_ROOT%{_javadir}/%{name}/maven-maven-plugin-%{version}.jar
install -m 644 plugins/maven-maven-plugin/pom.xml \
   $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-maven-maven-plugin.pom
pushd ${RPM_BUILD_ROOT}%{_datadir}/maven2/plugins
    ln -sf %{_javadir}/%{name}/tools-maven-plugin-%{version}.jar tools-maven-plugin.jar
    ln -sf %{_javadir}/%{name}/maven-maven-plugin-%{version}.jar maven-maven-plugin.jar
popd

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

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

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root)
%{_javadir}/%{name}
%{_datadir}/maven2/poms/*
%{_datadir}/maven2/plugins/*
%{_mavendepmapfragdir}/*
%doc *.txt

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

%changelog
* Thu Jan 08 2009 Ralph Apel <r.apel at r-apel.de> 0:1.3-1.jpp5
- First release

--- NEW FILE: Makefile ---
# Makefile for source rpm: geronimo-genesis
# $Id: Makefile,v 1.1 2009/02/01 22:03:55 jpackage Exp $
NAME := geronimo-genesis
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 ---
31ab2e98ffeacf46ee7c6e9210cc44b6  apache-jar-resource-bundle-1.3.jar
3c65f69cef59439f443c4e910c2db3a3  geronimo-genesis-1.3.tar.gz

--- NEW FILE: geronimo-genesis-tools-maven-plugin-pom.patch ---
--- plugins/tools-maven-plugin/pom.xml.sav	2008-06-06 12:18:31.000000000 +0200
+++ plugins/tools-maven-plugin/pom.xml	2008-06-06 12:19:26.000000000 +0200
@@ -41,6 +41,11 @@
     
     <dependencies>
         <dependency>
+            <groupId>org.apache.ant</groupId>
+            <artifactId>ant-launcher</artifactId>
+            <version>1.7.0</version>
+        </dependency>
+        <dependency>
             <groupId>commons-lang</groupId>
             <artifactId>commons-lang</artifactId>
         </dependency>




More information about the JPackage-commits mailing list