[RPM (6.0)] [DIST generic] plexus-compiler-1.8.6-1.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : plexus-compiler              Relocations: (not relocatable)
Version     : 1.8.6                             Vendor: JPackage Project
Release     : 1.jpp6                        Build Date: Wed 11 Jul 2012 11:02:07 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Java              Source RPM: (none)
Size        : 91612                            License: ASL 2.0
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://plexus.codehaus.org/
Summary     : Plexus Compiler
Description :
Plexus Compiler components.

---------------
Ralph Apel <r.apel at r-apel.de> - 0:1.8.6-1
- 1.8.6
---------------
plexus-compiler.src: W: source-or-patch-not-bzipped plexus-compiler-pom.patch
plexus-compiler.src: W: non-standard-group Development/Java
plexus-compiler.src: W: no-signature
plexus-compiler.src: W: invalid-license ASL 2.0
1 packages and 0 specfiles checked; 0 errors, 4 warnings.

---------------
Index: plexus-compiler-pom.patch
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/plexus-compiler/plexus-compiler-pom.patch,v
retrieving revision 1.1
diff -u -r1.1 plexus-compiler-pom.patch
--- plexus-compiler-pom.patch	22 Jul 2011 20:41:53 -0000	1.1
+++ plexus-compiler-pom.patch	11 Jul 2012 21:04:21 -0000
@@ -1,24 +1,3 @@
---- plexus-compilers/plexus-compiler-aspectj/pom.xml~	2010-08-29 14:15:03.000000000 -0400
-+++ plexus-compilers/plexus-compiler-aspectj/pom.xml	2011-07-20 03:08:43.793974571 -0400
-@@ -14,14 +14,14 @@
- 
-   <dependencies>
-     <dependency>
--      <groupId>aspectj</groupId>
-+      <groupId>org.aspectj</groupId>
-       <artifactId>aspectjrt</artifactId>
--      <version>1.5.0</version>
-+      <version>1.5.4</version>
-     </dependency>
-     <dependency>
--      <groupId>aspectj</groupId>
-+      <groupId>org.aspectj</groupId>
-       <artifactId>aspectjtools</artifactId>
--      <version>1.5.0</version>
-+      <version>1.5.4</version>
-     </dependency>
-   </dependencies>
- </project>
 --- ./plexus-compiler-test/pom.xml~	2010-08-29 14:15:03.000000000 -0400
 +++ ./plexus-compiler-test/pom.xml	2011-07-20 03:08:58.570830409 -0400
 @@ -50,7 +50,7 @@
Index: plexus-compiler.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/plexus-compiler/plexus-compiler.spec,v
retrieving revision 1.3
diff -u -r1.3 plexus-compiler.spec
--- plexus-compiler.spec	22 Jul 2011 20:41:53 -0000	1.3
+++ plexus-compiler.spec	11 Jul 2012 21:04:21 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2011, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -31,23 +31,29 @@
 %bcond_without maven
 
 %define section free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Name:           plexus-compiler
-Version:        1.8.2
+Version:        1.8.6
 Release:        1%{?dist}
 Epoch:          0
 Summary:        Plexus Compiler
 License:        ASL 2.0
 Group:          Development/Java
 URL:            http://plexus.codehaus.org/
-# git clone https://github.com/sonatype/plexus-compiler.git && cd plexus-compiler && git archive --prefix="plexus-compiler-1.8.2/" --format=tar plexus-compiler-1.8.2 | bzip2 > ../plexus-compiler-1.8.2.tar.bz2
-Source0:        plexus-compiler-1.8.2.tar.bz2
-Source1:        plexus-compiler-1.8.1-autogenerated-files.tar.gz
+# git clone https://github.com/sonatype/plexus-compiler.git && cd plexus-compiler && git archive --prefix="plexus-compiler-1.8.6/" --format=tar plexus-compiler-1.8.6 | bzip2 > ../plexus-compiler-1.8.6.tar.bz2
+Source0:        plexus-compiler-1.8.6.tar.bz2
+Source1:        plexus-compiler-1.8.6-autogenerated-files.tar.gz
 Source2:        http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/plexus/plexus-components/1.1.18/plexus-components-1.1.18.pom
+Source3:        plexus-compiler-settings.xml
+Source4:        plexus-compiler-jpp-depmap.xml
 Patch0:         plexus-compiler-pom.patch
 Requires(post): jpackage-utils
 Requires(postun): jpackage-utils
-Requires:       aspectj >= 0:1.5.3
+Requires:       aspectj >= 0:1.6.0
 Requires:       classworlds
 Requires:       commons-lang
 Requires:       ecj3
@@ -71,12 +77,13 @@
 BuildRequires:  maven2-plugin-release
 BuildRequires:  maven2-plugin-resources
 BuildRequires:  maven2-plugin-site
-BuildRequires:  maven2-plugin-surefire
+BuildRequires:  maven-surefire-plugin
+BuildRequires:  maven-surefire-provider-junit3
 BuildRequires:  maven-shared-reporting-impl
 BuildRequires:  jmock
 BuildRequires:  plexus-maven-plugin >= 0:1.3.5
 %endif
-BuildRequires:  aspectj >= 0:1.5.3
+BuildRequires:  aspectj >= 0:1.6.0
 BuildRequires:  classworlds
 BuildRequires:  ecj3
 BuildRequires:  junit
@@ -104,23 +111,71 @@
 %if %without maven
 gzip -dc %{SOURCE1} | tar xf -
 %endif
+cp -p %{SOURCE3} 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
+sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" settings.xml
+sed -i -e "s|<url>__ECLIPSEDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/eclipse/plugins</url>|g" settings.xml
 
 %build
-%if %with maven
 export MAVEN_REPO_LOCAL=`pwd`/.m2/repository
+%if %with maven
+export MAVEN_SETTINGS=$(pwd)/settings.xml
 mkdir -p ${MAVEN_REPO_LOCAL}/JPP/maven2/default_poms/
 cp -p %{SOURCE2} ${MAVEN_REPO_LOCAL}/JPP/maven2/default_poms/JPP-components.pom
-%{_bindir}/mvn-jpp -e -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -Dmaven.test.failure.ignore install javadoc:aggregate
-
+mkdir -p ${MAVEN_REPO_LOCAL}/org/codehaus/plexus/plexus-compiler-api/1.8.6/
+ln -s ${MAVEN_REPO_LOCAL}/org/codehaus/plexus/plexus-compiler-api/1.8.2/plexus-compiler-api-1.8.2.jar \
+      ${MAVEN_REPO_LOCAL}/org/codehaus/plexus/plexus-compiler-api/1.8.6/plexus-compiler-api-1.8.6.jar
+pushd plexus-compiler-api
+%{_bindir}/mvn-jpp \
+        -e \
+        -s ${MAVEN_SETTINGS} \
+        -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
+        -Dmaven2.jpp.depmap.file=%{SOURCE4} \
+        -Dmaven.test.failure.ignore \
+        install
+popd
+pushd plexus-compiler-manager
+%{_bindir}/mvn-jpp \
+        -e \
+        -s ${MAVEN_SETTINGS} \
+        -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
+        -Dmaven2.jpp.depmap.file=%{SOURCE4} \
+        -Dmaven.test.failure.ignore \
+        install 
+popd
+pushd plexus-compilers/plexus-compiler-javac
+%{_bindir}/mvn-jpp \
+        -e \
+        -s ${MAVEN_SETTINGS} \
+        -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
+        -Dmaven2.jpp.depmap.file=%{SOURCE4} \
+        -Dmaven.test.failure.ignore \
+        install 
+popd
+%{_bindir}/mvn-jpp \
+        -e \
+        -s ${MAVEN_SETTINGS} \
+        -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
+        -Dmaven2.jpp.depmap.file=%{SOURCE4} \
+        -Dmaven.test.failure.ignore \
+        ant:ant install javadoc:aggregate
 %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-utils/1.5.15/
+ln -sf $(build-classpath plexus/utils) ${MAVEN_REPO_LOCAL}/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
+mkdir -p ${MAVEN_REPO_LOCAL}/junit/junit/4.8.2/
+ln -sf $(build-classpath junit4) ${MAVEN_REPO_LOCAL}/junit/junit/4.8.2/junit-4.8.2.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/hamcrest/hamcrest-core/1.1/
+ln -sf $(build-classpath hamcrest/core) ${MAVEN_REPO_LOCAL}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
+mkdir -p ${MAVEN_REPO_LOCAL}/org/codehaus/plexus/plexus-interpolation/1.14/
+ln -sf $(build-classpath plexus-interpolation) ${MAVEN_REPO_LOCAL}/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.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/
@@ -154,6 +209,8 @@
 pushd plexus-compiler-api
 %{ant} -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -Dmaven.settings.offline=true jar javadoc
 popd
+mkdir -p ${MAVEN_REPO_LOCAL}/org/codehaus/plexus/plexus-compiler-api/1.8.2/
+ln -sf $(pwd)/plexus-compiler-api/target/plexus-compiler-api-1.8.6.jar ${MAVEN_REPO_LOCAL}/org/codehaus/plexus/plexus-compiler-api/1.8.2/plexus-compiler-api-1.8.2.jar
 
 pushd plexus-compiler-manager
 %{ant} -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -Dmaven.settings.offline=true jar javadoc
@@ -297,6 +354,9 @@
 %{_javadocdir}/%{name}
 
 %changelog
+* Tue Jul 10 2012 Ralph Apel <r.apel at r-apel.de> - 0:1.8.6-1
+- 1.8.6
+
 * Wed Jul 20 2011 David Walluck <[email protected]> 0:1.8.2-1
 - 1.8.2
 - fix Requires
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.