[Jpackage-commits] rpms/devel/plexus-compiler plexus-compiler-1.8.1-jpp-depmap.xml, NONE, 1.1 plexus-compiler-settings.xml, NONE, 1.1 plexus-compiler.spec, NONE, 1.1 plexus-components-1.1.18.pom, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Tue Dec 21 12:13:40 CET 2010


Update of /home/projects/jpackage/cvs/rpms/devel/plexus-compiler
In directory ryu.zarb.org:/tmp/ZUyTKZTlQd/rpms/devel/plexus-compiler

Added Files:
	plexus-compiler-1.8.1-jpp-depmap.xml 
	plexus-compiler-settings.xml plexus-compiler.spec 
	plexus-components-1.1.18.pom 
Log Message:
1.8.1-1.jpp6

--- NEW FILE: plexus-compiler-1.8.1-jpp-depmap.xml ---
<dependencies>
<!--
  <dependency>
    <maven>
      <groupId>ant</groupId>
      <artifactId>ant-nodeps</artifactId>
      <version>1.6.5</version>
    </maven>
    <jpp>
      <groupId>JPP/ant</groupId>
      <artifactId>ant-nodeps</artifactId>
      <version>1.6.5</version>
    </jpp>
  </dependency>
  <dependency>
    <maven>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.0</version>
    </maven>
    <jpp>
      <groupId>JPP</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.3</version>
    </jpp>
  </dependency>

  <dependency>
    <maven>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.3</version>
    </maven>
    <jpp>
      <groupId>JPP</groupId>
      <artifactId>servletapi4</artifactId>
      <version>2.3</version>
    </jpp>
  </dependency>
-->
  <dependency>
    <maven>
      <groupId>aspectj</groupId>
      <artifactId>aspectjtools</artifactId>
      <version>1.5.0</version>
    </maven>
    <jpp>
      <groupId>JPP</groupId>
      <artifactId>aspectjtools</artifactId>
      <version>1.2.1</version>
    </jpp>
  </dependency>
  <dependency>
    <maven>
      <groupId>aspectj</groupId>
      <artifactId>aspectjrt</artifactId>
      <version>1.5.0</version>
    </maven>
    <jpp>
      <groupId>JPP</groupId>
      <artifactId>aspectjrt</artifactId>
      <version>1.2.1</version>
    </jpp>
  </dependency>

  <dependency>
    <maven>
      <groupId>org.eclipse.jdt</groupId>
      <artifactId>core</artifactId>
      <version>3.1.0</version>
    </maven>
    <jpp>
      <groupId>JPP</groupId>
      <artifactId>ecj</artifactId>
      <version>3.2.2</version>
    </jpp>
  </dependency>
</dependencies>

--- NEW FILE: plexus-compiler-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: plexus-components-1.1.18.pom ---
<?xml version="1.0" encoding="UTF-8"?>

<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>
    <artifactId>plexus</artifactId>
    <groupId>org.codehaus.plexus</groupId>
    <version>2.0.7</version>
    <relativePath>../pom/pom.xml</relativePath>
  </parent>

  <groupId>org.codehaus.plexus</groupId>
  <artifactId>plexus-components</artifactId>
  <version>1.1.18</version>
  <packaging>pom</packaging>

  <name>Plexus Components</name>
  <url>http://plexus.codehaus.org/plexus-components</url>


  <modules>
    <module>plexus-archiver</module>
    <module>plexus-cli</module>
    <module>plexus-compiler</module>
    <module>plexus-digest</module>
    <module>plexus-i18n</module>
    <module>plexus-interactivity</module>
    <module>plexus-interpolation</module>
    <module>plexus-io</module>
    <module>plexus-resources</module>
    <!--
    <module>plexus-swizzle</module>
    -->
    <module>plexus-velocity</module>
  </modules>

  <scm>
    <connection>scm:svn:http://svn.codehaus.org/plexus/plexus-components/tags/plexus-components-1.1.18</connection>
    <developerConnection>scm:svn:https://svn.codehaus.org/plexus/plexus-components/tags/plexus-components-1.1.18</developerConnection>
    <url>http://fisheye.codehaus.org/browse/plexus/plexus-components/tags/plexus-components-1.1.18</url>
  </scm>
  <issueManagement>
    <system>JIRA</system>
    <url>http://jira.codehaus.org/browse/PLXCOMP</url>
  </issueManagement>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-container-default</artifactId>
        <version>1.0-alpha-9-stable-1</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-utils</artifactId>
        <version>1.5.5</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.2</version>
        <scope>test</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.4</source>
          <target>1.4</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-component-metadata</artifactId>
        <version>1.5.4</version>
        <executions>
          <execution>
            <goals>
              <goal>generate-metadata</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  
  <profiles>
    <profile>
      <id>parent-release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <configuration>
              <arguments>-N -Pplexus-release</arguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>maven-3</id>
      <activation>
        <file>
          <!-- This employs that the basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
          <exists>${basedir}</exists>
        </file>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-site-plugin</artifactId>
            <version>2.1</version>
            <inherited>false</inherited>
            <executions>
              <execution>
                <id>attach-descriptor</id>
                <goals>
                  <goal>attach-descriptor</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>  
    <profile>
      <id>m2e</id>
      <activation>
        <property>
          <name>m2e.version</name>
        </property>
      </activation>
      <properties>
        <m2BuildDirectory>target</m2BuildDirectory>
      </properties>
      <build>
        <directory>${m2BuildDirectory}</directory>
        <plugins>
          <plugin>
            <groupId>org.maven.ide.eclipse</groupId>
            <artifactId>lifecycle-mapping</artifactId>
            <version>0.10.0</version>
            <configuration>
              <mappingId>customizable</mappingId>
              <configurators>
                <configurator id="org.maven.ide.eclipse.jdt.javaConfigurator" />
                <configurator id="org.maven.ide.eclipse.plexus.annotations.plexusConfigurator" />
                <configurator id="org.maven.ide.eclipse.modello.modelloConfigurator" />
              </configurators>
              <mojoExecutions>
                <mojoExecution>org.apache.maven.plugins:maven-resources-plugin::</mojoExecution>
              </mojoExecutions>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>  
  </profiles>
  
</project>

--- NEW FILE: plexus-compiler.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}}}

# If you don't want to build with maven, and use straight ant instead,
# give rpmbuild option '--without maven'

%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}
%define with_maven 1
%define without_maven 0

%define section     free
%define parent plexus
%define subname compiler

Name:           plexus-compiler
Version:        1.8.1
Release:        1%{dist}
Epoch:          0
Summary:        Plexus Compiler
License:        Apache Software License 2.0
Group:          Development/Java
URL:            http://plexus.codehaus.org/
Source0:        plexus-compiler-1.8.1.tar.gz
# svn export http://svn.codehaus.org/plexus/plexus-components/tags/1.8.1/ plexus-compiler-1.8.1
# tar czf plexus-compiler-1.8.1.tar.gz plexus-compiler-1.8.1/

Source1:        plexus-compiler-settings.xml
Source2:        plexus-compiler-1.8.1-autogenerated-files.tar.gz
Source3:        plexus-compiler-1.8.1-jpp-depmap.xml
Source4:        http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/plexus/plexus-components/1.1.18/plexus-components-1.1.18.pom

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  ant >= 0:1.7.1
BuildRequires:  ant-nodeps
%if %{with_maven}
BuildRequires:  maven2 >= 0:2.0.8
BuildRequires:  maven2-plugin-ant
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-release
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven-surefire-plugin
BuildRequires:  maven-shared-reporting-impl
BuildRequires:  jmock
BuildRequires:  plexus-maven-plugin >= 0:1.3.5
%endif
BuildRequires:  aspectj >= 0:1.5.3
BuildRequires:  classworlds
BuildRequires:  ecj3
BuildRequires:  maven2-bootstrap
BuildRequires:  maven-wagon
BuildRequires:  plexus-containers-container-default
BuildRequires:  plexus-containers-component-metadata
BuildRequires:  plexus-utils
Requires:  aspectj >= 0:1.5.3
Requires:  classworlds
Requires:  ecj3
Requires:  plexus-container-default
Requires:  plexus-utils
%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif
Requires(post):    jpackage-utils >= 0:1.7.5
Requires(postun):  jpackage-utils >= 0:1.7.5

%description
Plexus Compiler components.

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

%description javadoc
Javadoc for %{name}.

%prep
%setup -q 
cp %{SOURCE1} settings.xml
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

%if %{without_maven}
gzip -dc %{SOURCE2} | tar xf -
%endif

%build
export MAVEN_REPO_LOCAL=`pwd`/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL/JPP/maven2/default_poms/
cp %{SOURCE4} $MAVEN_REPO_LOCAL/JPP/maven2/default_poms/JPP.plexus-components.pom

export M2_SETTINGS=$(pwd)/settings.xml
mkdir external_repo
ln -s %{_javadir} external_repo/JPP

%if %{with_maven}
mvn-jpp -e \
    -s $M2_SETTINGS \
    -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
    -Dmaven2.jpp.depmap.file=%{SOURCE3} \
    -Dmaven.test.failure.ignore=true \
    ant:ant install javadoc:javadoc

%else
mkdir -p $MAVEN_REPO_LOCAL/org/codehaus/plexus/plexus-utils/1.4.8/
ln -sf $(build-classpath plexus/utils) $MAVEN_REPO_LOCAL/org/codehaus/plexus/plexus-utils/1.4.8/plexus-utils-1.4.8.jar
mkdir -p $MAVEN_REPO_LOCAL/junit/junit/3.8.1/
ln -sf $(build-classpath junit) $MAVEN_REPO_LOCAL/junit/junit/3.8.1/junit-3.8.1.jar
mkdir -p $MAVEN_REPO_LOCAL/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/
ln -sf $(build-classpath plexus/container-default) $MAVEN_REPO_LOCAL/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar
mkdir -p $MAVEN_REPO_LOCAL/classworlds/classworlds/1.1/
ln -sf $(build-classpath classworlds) $MAVEN_REPO_LOCAL/classworlds/classworlds/1.1/classworlds-1.1.jar
mkdir -p $MAVEN_REPO_LOCAL/org/apache/maven/maven-model/2.0.7/
ln -sf $(build-classpath maven2/model) $MAVEN_REPO_LOCAL/org/apache/maven/maven-model/2.0.7/maven-model-2.0.7.jar
mkdir -p $MAVEN_REPO_LOCAL/commons-lang/commons-lang/2.3/
ln -sf $(build-classpath commons-lang) $MAVEN_REPO_LOCAL/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
mkdir -p $MAVEN_REPO_LOCAL/org/apache/maven/maven-repository-metadata/2.0.7/
ln -sf $(build-classpath maven2/repository-metadata) $MAVEN_REPO_LOCAL/org/apache/maven/maven-repository-metadata/2.0.7/maven-repository-metadata-2.0.7.jar
mkdir -p $MAVEN_REPO_LOCAL/jdom/jdom/1.0/
ln -sf $(build-classpath jdom) $MAVEN_REPO_LOCAL/jdom/jdom/1.0/jdom-1.0.jar
mkdir -p $MAVEN_REPO_LOCAL/org/apache/maven/maven-artifact-manager/2.0.7/
ln -sf $(build-classpath maven2/artifact-manager) $MAVEN_REPO_LOCAL/org/apache/maven/maven-artifact-manager/2.0.7/maven-artifact-manager-2.0.7.jar
mkdir -p $MAVEN_REPO_LOCAL/org/apache/maven/maven-artifact-test/2.0.7/
ln -sf $(build-classpath maven2/artifact-test) $MAVEN_REPO_LOCAL/org/apache/maven/maven-artifact-test/2.0.7/maven-artifact-test-2.0.7.jar
mkdir -p $MAVEN_REPO_LOCAL/org/apache/maven/maven-artifact/2.0.7/
ln -sf $(build-classpath maven2/artifact) $MAVEN_REPO_LOCAL/org/apache/maven/maven-artifact/2.0.7/maven-artifact-2.0.7.jar
mkdir -p $MAVEN_REPO_LOCAL/org/apache/maven/maven-settings/2.0.7/
ln -sf $(build-classpath maven2/settings) $MAVEN_REPO_LOCAL/org/apache/maven/maven-settings/2.0.7/maven-settings-2.0.7.jar
mkdir -p $MAVEN_REPO_LOCAL/org/apache/maven/wagon/wagon-provider-api/1.0/
ln -sf $(build-classpath maven-wagon/provider-api) $MAVEN_REPO_LOCAL/org/apache/maven/wagon/wagon-provider-api/1.0/wagon-provider-api-1.0.jar
mkdir -p $MAVEN_REPO_LOCAL/aspectj/aspectjrt/1.2.1/
ln -sf $(build-classpath aspectjrt) $MAVEN_REPO_LOCAL/aspectj/aspectjrt/1.2.1/aspectjrt-1.2.1.jar
mkdir -p $MAVEN_REPO_LOCAL/aspectj/aspectjtools/1.2.1/
ln -sf $(build-classpath aspectjtools) $MAVEN_REPO_LOCAL/aspectj/aspectjtools/1.2.1/aspectjtools-1.2.1.jar
mkdir -p $HOME/.m2/repository/aspectj/aspectjrt/1.5.0/
ln -sf $(build-classpath aspectjrt) $HOME/.m2/repository/aspectj/aspectjrt/1.5.0/aspectjrt-1.5.0.jar
mkdir -p $HOME/.m2/repository/aspectj/aspectjtools/1.5.0/
ln -sf $(build-classpath aspectjtools) $HOME/.m2/repository/aspectj/aspectjtools/1.5.0/aspectjtools-1.5.0.jar
mkdir -p $HOME/.m2/repository/commons-lang/commons-lang/2.0/
ln -sf $(build-classpath commons-lang) $HOME/.m2/repository/commons-lang/commons-lang/2.0/commons-lang-2.0.jar

unset CLASSPATH
pushd plexus-compiler-api
ant -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.settings.offline=true jar javadoc
popd

pushd plexus-compiler-manager
ant -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.settings.offline=true jar javadoc
popd

pushd plexus-compiler-test
ant -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.settings.offline=true jar javadoc
popd

pushd plexus-compilers

pushd plexus-compiler-aspectj
ECLIPSE_JAR=$(ls /usr/share/eclipse/plugins/org.eclipse.equinox.common_*.jar) && export CLASSPATH=$(ls /usr/share/eclipse/plugins/org.eclipse.equinox.common_*.jar)
ant -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.settings.offline=true jar javadoc
popd

pushd plexus-compiler-csharp
ant -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.settings.offline=true jar javadoc
popd

pushd plexus-compiler-eclipse
export CLASSPATH=$(build-classpath ecj)
ant -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.settings.offline=true jar javadoc
popd

pushd plexus-compiler-javac
ant -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.settings.offline=true jar javadoc
popd

pushd plexus-compiler-jikes
ant -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven.settings.offline=true jar javadoc
popd
popd
%endif

%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/plexus
install -pm 644 %{name}-api/target/%{name}-api-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{parent}/compiler-api-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name}-api %{version} JPP/%{parent} %{subname}-api
%if %{with_maven}
install -pm 644 %{name}-test/target/%{name}-test-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{parent}/compiler-test-%{version}.jar
%endif
%add_to_maven_depmap org.codehaus.plexus %{name}-test %{version} JPP/%{parent} %{subname}-test
install -pm 644 %{name}-manager/target/%{name}-manager-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{parent}/compiler-manager-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name}-manager %{version} JPP/%{parent} %{subname}-manager

%add_to_maven_depmap org.codehaus.plexus plexus-compilers %{version} JPP/%{parent} compilers

install -pm 644 %{parent}-compilers/plexus-compiler-aspectj/target/%{name}-aspectj-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{parent}/compiler-aspectj-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name}-aspectj %{version} JPP/%{parent} %{subname}-aspectj
install -pm 644 %{parent}-compilers/plexus-compiler-csharp/target/%{name}-csharp-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{parent}/compiler-csharp-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name}-csharp %{version} JPP/%{parent} %{subname}-csharp
install -pm 644 %{parent}-compilers/plexus-compiler-eclipse/target/%{name}-eclipse-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{parent}/compiler-eclipse-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name}-eclipse %{version} JPP/%{parent} %{subname}-eclipse
install -pm 644 %{parent}-compilers/plexus-compiler-javac/target/%{name}-javac-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{parent}/compiler-javac-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name}-javac %{version} JPP/%{parent} %{subname}-javac
install -pm 644 %{parent}-compilers/plexus-compiler-jikes/target/%{name}-jikes-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{parent}/compiler-jikes-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name}-jikes %{version} JPP/%{parent} %{subname}-jikes
(cd $RPM_BUILD_ROOT%{_javadir}/%{parent} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -pm 644 pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}.pom
install -pm 644 %{name}-api/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}-api.pom
install -pm 644 %{name}-test/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}-test.pom
install -pm 644 %{name}-manager/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}-manager.pom
install -pm 644 %{name}s/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-compilers.pom
install -pm 644 %{name}s/%{name}-aspectj/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}-aspectj.pom
install -pm 644 %{name}s/%{name}-csharp/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}-csharp.pom
install -pm 644 %{name}s/%{name}-eclipse/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}-eclipse.pom
install -pm 644 %{name}s/%{name}-javac/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}-javac.pom
install -pm 644 %{name}s/%{name}-jikes/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}-jikes.pom

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/manager
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/test
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/aspectj
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/csharp
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/eclipse
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/javac
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/jikes
cp -pr %{name}-api/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api
cp -pr %{name}-manager/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/manager
%if %{with_maven}
cp -pr %{name}-test/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/test
%endif
cp -pr %{parent}-compilers/%{name}-aspectj/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/aspectj
cp -pr %{parent}-compilers/%{name}-csharp/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/csharp
cp -pr %{parent}-compilers/%{name}-eclipse/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/eclipse
cp -pr %{parent}-compilers/%{name}-javac/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/javac
cp -pr %{parent}-compilers/%{name}-jikes/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/compilers/jikes
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_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,-)
%{_javadir}/%{parent}/*
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/compiler*-%{version}.jar.*
%endif

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

%changelog
* Tue Dec 21 2010 Ralph Apel <r.apel at r-apel.de> - 0:1.8.1-1
- 1.8.1
- (B)R ecj3

* Mon Mar 02 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.5.3-3.jpp5
- Rebuild once with ant

* Fri Feb 27 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.5.3-2.jpp5
- Add one pom and depmap frag

* Thu Jan 03 2008 Ralph Apel <r.apel at r-apel.de> - 0:1.5.3-1jpp
- 1.5.3

* Sat Mar 24 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.5.2-5jpp
- Fix post/postun

* Wed Mar 21 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.5.2-4jpp
- Add current maven2 dep management and poms

* Tue Mar 20 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.5.2-3jpp
- (B)R ecj instead of eclipse-ecj
- Go for full maven2 build
- Add gcj_support option

* Fri Jun 02 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.5.2-2jpp
- Fix jar naming to previous plexus conventions

* Tue May 30 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.5.2-1jpp
- First JPackage build





More information about the JPackage-commits mailing list