]> git.pld-linux.org Git - packages/maven.git/commitdiff
- just a raw JPACKAGE spec. I will work on it.
authorpawelz <pawelz@pld-linux.org>
Tue, 27 Apr 2010 16:06:29 +0000 (16:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    LICENSE.jpackage -> 1.1.2.1
    maven.spec -> 1.18.2.1

LICENSE.jpackage [new file with mode: 0644]
maven.spec

diff --git a/LICENSE.jpackage b/LICENSE.jpackage
new file mode 100644 (file)
index 0000000..238f9ef
--- /dev/null
@@ -0,0 +1,30 @@
+# This package is based on JPackage maven2 source rpm
+
+# Copyright (c) 2000-2005, 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.
index 3cfaacebdab994d54e0b27c33dae52b42b873f1f..84e6358d5dde0ec05c04ed682618659e4288f2bf 100644 (file)
-# TODO:
-# - cleanups in lib directory -- replace jar files
-#   with package dependencies
-# - use source package
-# - patch for --local-repository: http://codehaus01a.managed.contegix.com/browse/MNG-939
-# - jpp sync http://www.jpackage.org/cgi-bin/viewvc.cgi/rpms/free/maven2/?root=jpackage&pathrev=JPACKAGE-1_7
-
-Summary:       Java project management and project comprehension tool
-Summary(pl.UTF-8):     Narzędzie do zarządzania projektami Javy ułatwiające ich zrozumienie
-Name:          maven
-Version:       2.0.10
-Release:       1
-License:       Apache
-Group:         Development/Languages/Java
-Source0:       http://www.apache.org/dist/maven/binaries/apache-%{name}-%{version}-bin.tar.bz2
-# Source0-md5: 244b216dedd433d5277e72193dffc70e
-URL:           http://maven.apache.org/
-Requires:      jdk
-BuildArch:     noarch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# Copyright (c) 2000-2005, 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_with gcj_support
+%bcond_with itests
+%bcond_without bootstrap
+%bcond_without repolib
+
+%define repodir %{_javadir}/repository.jboss.com/org/apache/maven/%{version}-brew
+%define repodirlib %{repodir}/lib
+%define repodirsrc %{repodir}/src
+
+%if %with gcj_support
+%define gcj_support 1
+%else
+%define gcj_support 0
+%endif
+
+%define maven_version   2.0.8
+%define NONFREE 0
+
+%define base_name maven
+%define name maven2
+
+%define repo_dir m2_home_local/repository
+%define maven_settings_file %{_builddir}/%{name}/settings.xml
+
+Name:           %{name}
+Version:        %{maven_version}
+Release:        26%{?dist}
+Epoch:          0
+Summary:        Java project management and project comprehension tool
+
+Group:          Development/Build Tools
+License:        Apache Software License
+URL:            http://maven.apache.org/
+
+# svn export http://svn.apache.org/repos/asf/maven/components/tags/maven-%{version} maven2
+# tar czf maven2-src.tar.gz maven2
+Source0:        %{name}-src.tar.gz
+
+# svn export -r {2007-03-31} http://svn.apache.org/repos/asf/maven/plugins/trunk maven2-plugins
+# tar czf maven2-plugins-070331-src.tar.gz maven2-plugins
+Source2:        %{name}-plugins-070705-src.tar.gz
+
+# We need to replace the javadoc plugin as the 2.3-SNAPSHOT included above 
+# has several bugs
+# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-javadoc-plugin-2.4 maven-javadoc-plugin
+Source22: maven-javadoc-plugin-2.4-src.tar.gz
+
+# No source location for these. They are ascii files generated from maven
+# repositories, and are not in cvs/svn
+# The files were originally aquired from: http://repo1.maven.org/maven2/
+Source3:        m2_pom_repo.tar.gz
+
+# As with above, these files are from the maven repositories, and are not in 
+# cvs/svn
+# The files were originally aquired from: http://repo1.maven.org/maven2/
+Source4:        m2_jar_repo.tar.gz
+Source5:        %{name}-script
+
+Source6:        maven2-JPackageRepositoryLayout.java
+Source7:        maven2-settings.xml
+
+# svn export -r '{2006-03-08}' http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin maven-site-plugin
+# tar czf maven2-maven-site-plugin.tar.gz maven-site-plugin 
+Source8:        %{name}-maven-site-plugin.tar.gz
+
+Source9:          %{name}-run-it-tests.sh
+
+# svn export http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.8/maven-model
+# cd maven-model
+# mvn -P all-models package 
+# Find model jar in target/maven-model-2.0.8.jar
+Source10:       %{name}-model-v3.jar
+Source11:       %{name}-MavenJPackageDepmap.java
+Source12:       %{name}-addjdom-depmap.xml
+Source13:       %{name}-empty-dep.pom
+
+# Empty jar file with just a manifest. No source destination to specify
+Source14:       %{name}-empty-dep.jar
+Source15:       %{name}-jpp-script
+Source16:       %{name}-jpp-readme.html
+Source17:       %{name}-versionless-depmap.xml
+
+Source99:       maven-doxia-modules.pom
+Source100:      maven2-component-info.xml
+
+Patch0:         maven2-addjdomtobootstrappath.patch
+Patch1:         %{name}-jpprepolayout.patch
+Patch2:         %{name}-fastjar-manifest-fix.patch
+Patch3:         %{name}-plugins-doxiaupdatefix.patch
+Patch4:         %{name}-plugins-catch-uncaught-exceptions.patch
+Patch5:         %{name}-plugins-dependency-plugin-import-fix.patch
+Patch6:         %{name}-%{version}-excludeexternaljars.patch
+Patch7:         %{name}-site-plugin-addservletdep.patch
+Patch8:         %{name}-enable-bootstrap-repository.patch
+Patch9:         %{name}-use-unversioned-classworlds.patch
+Patch10:        %{name}-plugins-disablecobertura.patch
+Patch11:        %{name}-shade-plugin-replacement.patch
+Patch12:        %{name}-sourcetarget.patch
+Patch13:        %{name}-plugins-MJAVADOC-137-AbstractJavadocMojo.patch
+# The maven javadoc plugin 2.5 pre-reqs maven 2.0.9, we lower to 2.0.8
+Patch14:        %{name}-javadoc-plugin-pom.patch
+# javadoc 2.4 uses an old doxia method
+Patch15:        %{name}-plugins-javadoc-newdoxia.patch
+# This plugin can't cope with a JAR without a JDK version on it
+Patch16:        %{name}-plugins-project-info-reports-jdkversion.patch
+Patch17:        %{name}-MNG-3139.patch
+Patch18:       %{name}-plugins-jpprepolayout.patch
+Patch19:       %{name}-plugins-disableenforcer.patch
+Patch20:        %{name}-commons-cli-1.1.patch
+
+Provides:       %{name}-bootstrap = %{epoch}:%{version}-%{release}
+
+BuildRequires:    java-devel
+BuildRequires:    jpackage-utils >= 0:1.7.2
+BuildRequires:    /bin/ls,/usr/bin/head,/usr/bin/find,/usr/bin/awk,/bin/grep,/bin/sed
+
+BuildRequires:    ant >= 1.6.5
+BuildRequires:    ant-nodeps
+BuildRequires:    ant-junit
+BuildRequires:    antlr >= 2.7.4
+BuildRequires:    aqute-bndlib
+BuildRequires:    bsh >= 1.3.0
+#BuildRequires:   cglib >= 2.1.0
+BuildRequires:    checkstyle4 >= 4.1
+BuildRequires:    checkstyle4-optional >= 4.1
+BuildRequires:    classworlds >= 1.1
+%if %{NONFREE}
+BuildRequires:    clover
+%endif
+BuildRequires:    dom4j >= 1.6.1
+#BuildRequires:    tomcat5-parent
+BuildRequires:    tomcat5-servlet-2.4-api
+BuildRequires:    glassfish-javamail
+BuildRequires:    gnu.regexp >= 1.1.4
+BuildRequires:    httpunit >= 1.6
+BuildRequires:    jakarta-commons-beanutils >= 1.7.0
+BuildRequires:    jakarta-commons-cli >= 1.0
+BuildRequires:    jakarta-commons-collections >= 3.1
+BuildRequires:    jakarta-commons-io >= 1.1
+BuildRequires:    jakarta-commons-lang >= 2.1
+BuildRequires:    jakarta-commons-logging >= 1.0.4
+BuildRequires:    jakarta-commons-validator >= 1.1.4
+BuildRequires:    jaxen >= 1.1
+BuildRequires:    jdom >= 1.0
+#BuildRequires:   jmock >= 1.0.1
+BuildRequires:    jline >= 0.8.1
+BuildRequires:    jsch >= 0.1.20
+BuildRequires:    jtidy >= 1.0
+BuildRequires:    junit >= 3.8.2
+BuildRequires:    maven2-common-poms >= 1.0-5
+BuildRequires:    maven-jxr >= 1.0-2
+BuildRequires:    maven-wagon >= 1.0-0.1.b2
+BuildRequires:    maven-doxia >= 1.0-0.a9
+BuildRequires:    nekohtml >= 0.9.3
+BuildRequires:    oro >= 2.0.8
+BuildRequires:    plexus-ant-factory >= 1.0-0.a1.2
+BuildRequires:    plexus-bsh-factory >= 1.0-0.a7s.2
+BuildRequires:    plexus-archiver >= 1.0-0.1.a8
+BuildRequires:    plexus-compiler >= 1.5.1
+BuildRequires:    plexus-container-default >= 1.0
+BuildRequires:    plexus-i18n >= 1.0
+BuildRequires:    plexus-interactivity >= 1.0
+BuildRequires:    plexus-utils >= 1.2
+BuildRequires:    plexus-velocity >= 1.1.2
+BuildRequires:    pmd >= 3.6
+BuildRequires:    qdox >= 1.5
+BuildRequires:    rhino >= 1.5
+BuildRequires:    saxon-scripts
+BuildRequires:    saxpath
+BuildRequires:    velocity >= 1.4
+BuildRequires:    xerces-j2 >= 2.7.1
+BuildRequires:    xalan-j2 >= 2.6.0
+BuildRequires:    xmlrpc
+BuildRequires:    xmlunit
+BuildRequires:    xom
+
+%if %with itests
+BuildRequires:    log4j >= 1.2.13
+BuildRequires:    xml-commons-apis >= 1.3.02
+%endif
+
+%if %without bootstrap
+BuildRequires:    %{name} = %{epoch}:%{version}
+BuildRequires:    maven2-plugin-ant
+BuildRequires:    maven2-plugin-assembly
+BuildRequires:    maven2-plugin-clean
+BuildRequires:    maven2-plugin-compiler
+BuildRequires:    maven2-plugin-install
+BuildRequires:    maven2-plugin-jar
+BuildRequires:    maven2-plugin-javadoc
+BuildRequires:    maven2-plugin-plugin
+BuildRequires:    maven2-plugin-resources
+BuildRequires:    maven2-plugin-shade
+BuildRequires:    maven2-plugin-site
+BuildRequires:    maven2-plugin-surefire
+BuildRequires:    maven-shared-archiver
+BuildRequires:    maven-doxia-sitetools
+BuildRequires:    maven-embedder
+BuildRequires:    maven-scm >= 0:1.0-0.b3.2
+BuildRequires:    maven-scm-test >= 0:1.0-0.b3.2
+BuildRequires:    maven-shared-common-artifact-filters
+BuildRequires:    maven-shared-dependency-analyzer
+BuildRequires:    maven-shared-dependency-tree
+BuildRequires:    maven-shared-downloader
+BuildRequires:    maven-shared-file-management >= 1.0
+BuildRequires:   maven-shared-io
+BuildRequires:    maven-shared-plugin-testing-harness >= 1.0
+BuildRequires:    maven-shared-repository-builder
+BuildRequires:    maven-shared-invoker
+BuildRequires:    maven-shared-jar
+BuildRequires:    maven-shared-model-converter
+BuildRequires:    maven-shared-plugin-testing-tools
+BuildRequires:    maven-shared-plugin-tools-api
+BuildRequires:    maven-shared-plugin-tools-beanshell
+BuildRequires:    maven-shared-plugin-tools-java
+BuildRequires:    maven-shared-reporting-impl
+BuildRequires:    maven-shared-verifier
+BuildRequires:    maven-surefire >= 2.0
+BuildRequires:    maven-surefire-provider-junit
+BuildRequires:    maven-surefire-booter >= 2.0
+BuildRequires:    modello >= 1.0-0.a8.3
+BuildRequires:    modello-maven-plugin >= 1.0-0.a8.3
+BuildRequires:    plexus-digest
+BuildRequires:    plexus-maven-plugin >= 1.3.5
+BuildRequires:    plexus-mail-sender
+BuildRequires:    plexus-resources
+%endif
+
+Requires:        ant >= 1.6.5
+Requires:        antlr >= 2.7.4
+Requires:       aqute-bndlib
+Requires:        bsh >= 1.3.0
+#Requires:       cglib >= 2.1.0
+Requires:        checkstyle4 >= 4.1
+Requires:        classworlds >= 1.
+Requires(post):  classworlds >= 1.1
+%if %{NONFREE}
+Requires:        clover
+%endif
+Requires:        dom4j >= 1.6.1
+#Requires:        tomcat5-parent
+Requires:        tomcat5-servlet-2.4-api
+Requires:        glassfish-javamail
+Requires:        gnu.regexp >= 1.1.4
+Requires:        httpunit >= 1.6
+Requires:        jakarta-commons-beanutils >= 1.7.0
+Requires:        jakarta-commons-cli >= 1.0
+Requires(post):  jakarta-commons-cli >= 1.0
+Requires:        jakarta-commons-collections >= 3.1
+Requires:        jakarta-commons-io >= 1.1
+Requires:        jakarta-commons-lang >= 2.1
+Requires(post):  jakarta-commons-lang >= 2.1
+Requires:        jakarta-commons-logging >= 1.0.4
+Requires(post):  jakarta-commons-logging >= 1.0.4
+Requires:        jakarta-commons-validator >= 1.1.4
+Requires:        jaxen >= 1.1
+Requires:        jdom >= 1.0
+Requires(post):  jdom >= 1.0
+#Requires:       jmock >= 1.0.1
+Requires:        jline >= 0.8.1
+Requires:        jsch >= 0.1.20
+Requires(post):  jsch >= 0.1.20
+Requires:        jtidy >= 1.0
+Requires:        junit >= 3.8.2
+Requires:        maven2-common-poms >= 1.0-5
+Requires:        maven-jxr >= 1.0
+Requires:        maven-wagon >= 1.0-0.1.b2
+Requires(post):  maven-wagon >= 1.0-0.1.b2
+Requires:        nekohtml >= 0.9.3
+Requires:        oro >= 2.0.8
+Requires:        plexus-ant-factory >= 1.0-0.a1.2
+Requires:        plexus-bsh-factory >= 1.0-0.a7s.2
+Requires:        plexus-archiver >= 1.0-0.a6
+Requires:        plexus-compiler >= 1.5.1
+Requires:        plexus-container-default >= 1.0
+Requires(post):  plexus-container-default >= 1.0
+Requires:        plexus-i18n >= 1.0
+Requires:        plexus-interactivity >= 1.0
+Requires(post):  plexus-interactivity >= 1.0
+Requires:        plexus-utils >= 1.2
+Requires(post):  plexus-utils >= 1.2
+Requires:        plexus-velocity >= 1.1.2
+Requires:        pmd >= 3.6
+Requires:        qdox >= 1.5
+Requires:        rhino >= 1.5
+Requires:        velocity >= 1.4
+Requires:        xerces-j2 >= 2.7.1
+Requires:        xalan-j2 >= 2.6.0
+Requires:        xmlrpc
+Requires:        xmlunit
+Requires:        xom
+
+%if %without bootstrap
+Requires:        %{name} = %{epoch}:%{version}
+Requires:        maven-doxia >= 1.0-0.a9
+Requires(post):  maven-doxia >= 1.0-0.a9
+Requires:        maven-scm >= 0:1.0-0.b3.2
+Requires:        maven-scm-test >= 0:1.0-0.b3.2
+Requires:        maven-shared-invoker
+Requires:       maven-shared-io
+Requires:        maven-shared-file-management >= 1.0-4
+Requires:        maven-shared-jar
+Requires:        maven-shared-model-converter
+Requires:        maven-shared-verifier
+Requires:        maven-surefire >= 2.0
+Requires:        maven-surefire-booter >= 2.0
+Requires:        modello >= 1.0-0.a8.3
+Requires:        modello-maven-plugin >= 1.0-0.a8.3
+%endif
+
+Obsoletes:       maven2-plugin-jxr <= 0:2.0.4 
+Obsoletes:       maven2-plugin-surefire <= 0:2.0.4 
+Obsoletes:       maven2-plugin-surefire-report <= 0:2.0.4 
+Obsoletes:       maven2-plugin-release <= 0:2.0.4 
+Obsoletes:      maven2-plugin-enforcer < %{epoch}:%{version}-%{release}
+
+Requires(post):    jpackage-utils >= 0:1.7.2
+Requires(postun):  jpackage-utils >= 0:1.7.2, /bin/rmdir
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%if ! %{gcj_support}
+BuildArch:      noarch
+%endif
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
 
 %description
-Maven is a Java project management and project comprehension tool.
-Maven is based on the concept of a project object model (POM) in that
-all the artifacts produced by Maven are a result of consulting a well
-defined model for your project.
-
-The intent of Maven is to make intra-project development highly
-manageable in the hopes of providing more time for cross-project
-development. You might call it cross-project pollination or the
-sharing of project development knowledge, this is what Maven attempts
-to encourage.
-
-%description -l pl.UTF-8
-Maven to narzędzie do zarządzania projektami w Javie, ułatwiające ich
-zrozumienie. Jest oparty na idei obiektowego modelu projektu (POM -
-Project Object Model), w której wszystkie wytwory Mavena są wynikiem
-konsultowania z dobrze zdefiniowanym modelem projektu.
-
-Intencją Mavena jest uczynić rozwój wewnątrzprojektowy wysoko
-zarządzalnym w nadziei pozostawienia większej ilości czasu na rozwój
-międzyprojektowy. Można to nazwać zapylaniem międzyprojektowym lub
-dzieleniem wiedzy o rozwoju projektów - do tego Maven próbuje
-zachęcić.
+Maven is a software project management and comprehension tool. Based on the 
+concept of a project object model (POM), Maven can manage a project's build,
+reporting and documentation from a central piece of information.
+
+%package        javadoc
+Summary:        Javadoc for %{name}
+Group:          Development/Documentation
+Requires(post):   /bin/rm,/bin/ln
+Requires(postun): /bin/rm
+
+%description    javadoc
+%{summary}.
+
+%package        manual
+Summary:        Documents for %{name}
+Group:          Development/Documentation
+
+%description    manual
+%{summary}.
+
+%package        plugin-ant
+Summary:        Ant plugin for maven
+Group:          Development/Build Tools
+Requires:       ant >= 1.6.5
+Requires:       ant-junit
+Requires:       ant-nodeps
+Requires:       junit >= 3.8.2
+Requires:       maven-wagon >= 1.0-0.1.b2
+Requires:       plexus-utils >= 1.2
+Requires:       xalan-j2 >= 2.6.0
+Requires:      xml-commons-apis >= 1.3.02
+Requires:      plexus-container-default
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-ant
+Generates an Ant build file for the project.
+
+%package        plugin-antlr
+Summary:        Antlr plugin for maven
+Group:          Development/Build Tools
+Requires:       antlr >= 2.7.4
+Requires:      plexus-container-default
+Requires:       plexus-i18n >= 1.0
+%if %without bootstrap
+Requires:       maven-doxia >= 1.0-0.a9
+Requires:       maven-doxia-sitetools >= 1.0
+%endif
+Requires:       plexus-utils >= 1.2
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-antlr
+Generates sources from an Antlr grammar.
+
+%package        plugin-antrun
+Summary:        Antrun plugin for maven
+Group:          Development/Build Tools
+Requires:       ant >= 1.6.5
+Requires:      maven-embedder
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:      maven-shared-reporting-impl
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-antrun
+Runs a set of ant tasks from a phase of the build.
+
+
+%package        plugin-assembly
+Summary:        Assembly plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+%if %without bootstrap
+Requires:       modello >= 1.0-0.a8.3
+%endif
+Requires:       plexus-archiver >= 1.0
+Requires:       plexus-utils >= 1.2
+Requires:      maven-shared-file-management >= 1.0
+Requires:      maven-shared-archiver
+Requires:      plexus-container-default
+Requires:      maven-shared-repository-builder
+Requires:      maven-shared-common-artifact-filters
+Requires:      maven-shared-plugin-testing-tools
+Requires:      maven-shared-test-tools
+Requires:       jmock >= 1.0.1
+Requires:       jdom >= 1.0
+Requires:       jaxen >= 1.1
+Requires:      saxpath
+Requires:       junit >= 3.8.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-assembly
+Builds an assembly (distribution) of sources and/or binaries.
+
+%package        plugin-changelog
+Summary:        Changelog plugin for maven
+Group:          Development/Build Tools
+%if %without bootstrap
+Requires:       maven-scm
+%endif
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       maven-doxia >= 1.0-0.a9
+Requires:       maven-doxia-sitetools >= 1.0
+Requires:       maven-scm >= 0:1.0-0.b3.2
+Requires:      maven-shared-reporting-impl
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-changelog
+The Maven Changelog Plugin generates reports regarding the recent changes in
+your Software Configuration Management or SCM.
+
+%package        plugin-changes
+Summary:        Changes plugin for maven
+Group:          Development/Build Tools
+%if %without bootstrap
+Requires:       maven-doxia
+Requires:       maven-doxia-sitetools >= 1.0
+%endif
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       velocity
+Requires:       commons-httpclient
+Requires:       plexus-velocity >= 1.1.2
+Requires:       plexus-mail-sender
+Requires:       glassfish-javamail
+Requires:       jakarta-commons-lang
+Requires:       velocity
+Requires:      maven-shared-reporting-impl
+
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-changes
+The Maven Changes Plugin is used to inform users of the changes that have 
+occured between different releases of your project.  
+
+%package        plugin-checkstyle
+Summary:        Checkstyle plugin for maven
+Group:          Development/Build Tools
+Requires:       checkstyle4 >= 4.1
+Requires:      checkstyle4-optional >= 4.1
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils >= 1.2
+Requires:       plexus-velocity >= 1.1.2
+Requires:       plexus-resources
+Requires:      maven-shared-reporting-impl
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-checkstyle
+Generates a checkstyle report.
+
+
+%package        plugin-clean
+Summary:        Clean plugin for maven
+Group:          Development/Build Tools
+Requires:       junit >= 3.8.2
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils >= 1.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-clean
+Cleans up files generated during build.
+
+%if %{NONFREE}
+%package        plugin-clover
+Summary:        Clover plugin for maven
+Group:          Development/Build Tools
+Requires:       ant >= 1.6.5
+Requires:       jmock >= 1.0.1
+Requires:       junit >= 3.8.2
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-compiler >= 1.5.1
+Requires:       plexus-resources
+Requires:       clover
+Requires:      maven-shared-reporting-impl
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-clover
+Generates a Clover report.
+%endif
+
+
+%package        plugin-compiler
+Summary:        Compiler plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-compiler >= 1.5.1
+Requires:       plexus-utils >= 1.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-compiler
+Compiles Java sources.
+
+
+%package        plugin-dependency
+Summary:        Dependency plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-archiver >= 1.0
+Requires:       plexus-utils >= 1.2
+Requires:       maven-shared-file-management >= 1.0-4
+Requires:       junit >= 3.8.2
+Requires:       plexus-container-default
+Requires:       maven-shared-dependency-analyzer
+Requires:       maven-shared-dependency-tree
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-dependency
+The dependency plugin provides the capability to manipulate artifacts. It can
+copy and/or unpack artifacts from local or remote repositories to a specified
+location.
+
+%package        plugin-deploy
+Summary:        Deploy plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-deploy
+Deploys the built artifacts to a remote repository.
+
+
+%package        plugin-doap
+Summary:        Description of a Project (DOAP) plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-doap
+The Maven DOAP Plugin generates a Description of a Project (DOAP) file from
+a POM.
+
+
+%package        plugin-docck
+Summary:        DOCCK plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils
+Requires:       maven-shared-plugin-tools-beanshell >= 2.2
+Requires:       maven-shared-plugin-tools-java >= 2.2
+Requires:       commons-httpclient
+Requires:       jakarta-commons-logging >= 1.0.4
+Requires:       maven-shared-file-management >= 1.0-4
+Requires:       maven-shared-plugin-tools-api
+Requires:      maven-shared-reporting-impl
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-docck
+The Maven DOCCK Plugin checks that a project complies with the 
+Plugin Documentation Standard.
+
+
+%package        plugin-ear
+Summary:        Ear plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils >= 1.2
+Requires:       maven-shared-verifier
+Requires:       xmlunit
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-ear
+Generates an EAR from the current project.
+
+
+%package        plugin-eclipse
+Summary:        Eclipse plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils >= 1.2
+Requires:       plexus-archiver >= 1.0
+Requires:       jmock >= 1.0.1
+Requires:       jdom >= 1.0
+Requires:       jaxen >= 1.1
+Requires:      saxpath
+Requires:       plexus-interactivity >= 1.0
+Requires:      maven-shared-plugin-testing-tools
+Requires:      maven-shared-test-tools
+Requires:       aqute-bndlib
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-eclipse
+Generates an Eclipse project file for the current project.
+
+
+%package        plugin-ejb
+Summary:        EJB plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-ejb
+Builds an EJB (and optional client) from the current project.
+
+
+%package        plugin-gpg
+Summary:        GPG plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       jakarta-commons-lang
+Requires:       plexus-utils
+Requires:       jakarta-commons-lang
+Requires:       junit >= 3.8.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-gpg
+The Maven GPG Plugin signs all of the project's attached artifacts with GnuPG.
+
+
+%package        plugin-help
+Summary:        Help plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       maven-shared-plugin-tools-api
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-help
+Gets information about the working environment for the project.
+
+
+%package        plugin-idea
+Summary:        Idea plugin for maven
+Group:          Development/Build Tools
+Requires:       dom4j >= 1.6.1
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       maven-wagon >= 1.0-0.1.b2
+Requires:       plexus-utils >= 1.2
+Requires:       jmock >= 1.0.1
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-idea
+Creates/updates an IDEA workspace for the current project 
+(individual modules are created as IDEA modules).
+
+
+%package        plugin-install
+Summary:        Install plugin for maven
+Group:          Development/Build Tools
+Requires:       plexus-digest >= 1.0
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-install
+Installs the built artifact into the local repository.
+
+%package        plugin-invoker
+Summary:        Invoker plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+%if %without bootstrap
+Requires:       maven-shared
+Requires:       maven-shared-invoker
+Requires:       maven-shared-file-management >= 1.0-4
+Requires:      maven-shared-io
+%endif
+Requires:       bsh
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-invoker
+The Maven Invoker Plugin is used to run a set of Maven projects and makes 
+sure that each project execution is successful, and optionally verifies 
+the output from a given project execution.
+
+%package        plugin-jar
+Summary:        Jar plugin for maven
+Group:          Development/Build Tools
+Requires:       jakarta-commons-lang >= 2.1
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires:       maven-shared-archiver >= 2.3
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils >= 1.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-jar
+Builds a JAR from the current project.
+
+
+%package        plugin-javadoc
+Summary:        Javadoc plugin for maven
+Group:          Development/Build Tools
+Requires:       jakarta-commons-lang >= 2.1
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+%if %without bootstrap
+Requires:       modello >= 1.0-0.a8.3
+%endif
+Requires:       plexus-archiver >= 1.0
+Requires:       plexus-utils >= 1.2
+Requires:      maven-shared-reporting-impl
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-javadoc
+Generates Javadoc for the project.
+
+%package        plugin-one
+Summary:        One plugin for maven
+Group:          Development/Build Tools
+Requires:       junit >= 3.8.2
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-archiver >= 1.0
+Requires:       plexus-utils >= 1.2
+Requires:       junit >= 3.8.2
+Requires:       maven-shared-model-converter
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-one
+A plugin for interacting with legacy Maven 1.x repositories and builds.
+
+
+%package        plugin-plugin
+Summary:        Plugin plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       maven-shared-plugin-tools-beanshell >= 2.2
+Requires:       maven-shared-plugin-tools-java >= 2.2
+Requires:      maven-shared-reporting-impl
+Requires:       maven-doxia >= 1.0-0.a9
+Requires:       plexus-utils >= 1.2
+Requires:       plexus-container-default
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-plugin
+Creates a Maven plugin descriptor for any Mojo's found in the source tree, 
+to include in the JAR.
+
+
+%package        plugin-pmd
+Summary:        Pmd plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils >= 1.2
+Requires:       plexus-resources
+Requires:       pmd >= 3.3
+Requires:       jaxen >= 1.1
+Requires:       xom
+Requires:      maven-shared-reporting-impl
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-pmd
+Generates a PMD report.
+
+
+%package        plugin-project-info-reports
+Summary:        Project-info-reports plugin for maven
+Group:          Development/Build Tools
+Requires:       httpunit >= 1.6
+Requires:       jakarta-commons-validator >= 1.1.4
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-i18n >= 1.0
+Requires:      maven-shared-reporting-impl
+Requires:       maven-shared-jar
+Requires:       maven-shared-dependency-tree
+Requires:       maven-wagon
+Requires:       maven-scm >= 0:1.0-0.b3.2
+Requires:       maven-doxia >= 1.0-0.a9
+Requires:       maven-doxia-sitetools >= 1.0
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-project-info-reports
+Generates standard project reports.
+
+%package        plugin-rar
+Summary:        Rar plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-rar
+Builds a RAR from the current project.
+
+
+%package        plugin-remote-resources
+Summary:        Remote Resources plugin for maven
+Group:          Development/Build Tools
+Requires:       junit >= 3.8.2
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-container-default
+Requires:       plexus-utils
+Requires:       plexus-velocity
+Requires:       velocity
+%if %without bootstrap
+Requires:       maven-shared
+Requires:       maven-shared-downloader
+Requires:       plexus-resources
+%endif
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-remote-resources
+The Maven Remote Resources Plugin is used to retrieve JARs of resources
+from remote repositories, processes those resources, and incorporate them
+into JARs built with maven.
+
+%package        plugin-repository
+Summary:        Repository plugin for maven
+Group:          Development/Build Tools
+Requires:       junit >= 3.8.2
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-archiver >= 1.0
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-repository
+Plugin to help with repository-based tasks.
+
+%package        plugin-resources
+Summary:        Resources plugin for maven
+Group:          Development/Build Tools
+#Requires:       jakarta-commons-io >= 1.1
+Requires:       plexus-utils >= 1.2
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-resources
+Copies the resources to the output directory for including in the JAR.
+
+%package        plugin-site
+Summary:        Site plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+%if %without bootstrap
+Requires:       maven-doxia >= 1.0-0.a9
+Requires:       maven-doxia-sitetools >= 1.0
+%endif
+Requires:       plexus-utils >= 1.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-site
+Generates a site for the current project.
+
+%package        plugin-source
+Summary:        Source plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-archiver >= 1.0
+Requires:       plexus-utils >= 1.2
+Requires:       plexus-container-default >= 1.0
+Requires:       junit >= 3.8.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-source
+Builds a JAR of sources for use in IDEs and distribution to the repository.
+
+
+%package        plugin-stage
+Summary:        Stage plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       maven-wagon
+Requires:       plexus-utils
+Requires:       junit >= 3.8.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-stage
+Maven Stage Plugin copies artifacts from one repository to another.
+
+
+%package        plugin-verifier
+Summary:        Verifier plugin for maven
+Group:          Development/Build Tools
+Requires:       junit >= 3.8.2
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+%if %without bootstrap
+Requires:       modello >= 1.0-0.a8.3
+%endif
+Requires:       plexus-utils >= 1.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-verifier
+Useful for integration tests - verifies the existence of certain conditions.
+
+%package        plugin-war
+Summary:        War plugin for maven
+Group:          Development/Build Tools
+Requires:       %{name} = %{epoch}:%{version}-%{release}
+Requires(postun): %{name} = %{epoch}:%{version}-%{release}
+Requires:       plexus-utils >= 1.2
+Requires:       junit >= 3.8.2
+
+%if %{gcj_support}
+BuildRequires:       java-gcj-compat-devel
+Requires(post):      java-gcj-compat
+Requires(postun):    java-gcj-compat
+%endif
+
+%description    plugin-war
+Builds a WAR from the current project.
+
+%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
+#rpm -ql maven-surefire
+
+%setup -q -c -n %{name}
+
+# Extract the plugins
+tar xzf %{SOURCE2}
+
+# We need to replace the javadoc plugin as the 2.3-SNAPSHOT included above 
+# has several bugs
+rm -rf maven2-plugins/maven-javadoc-plugin
+rm -rf maven2-plugins/maven-enforcer-plugin
+pushd maven2-plugins
+tar xzf %{SOURCE22}
+popd
+
+# Use an older version of site plugin because newer one requires newer doxia 
+# (1.0a8) which is not compatible with the older one (1.0a7) which is needed 
+# by other parts of maven
+#rm -rf maven2-plugins/maven-site-plugin
+#tar xzf %{SOURCE8}
+
+# javadoc 2.4 uses an old doxia method
+%patch15 -b .sav
+
+# This plugin can't cope with a JAR without a JDK version on it
+%patch16 -b .sav
+
+%patch17 -b .sav
+
+%patch18 -b .sav
+%patch19 -b .sav
+
+%patch20 -b .sav
+
+# Remove dependencies on org.codehaus.doxia.* (it is now
+# org.apache.maven.doxia, and in the interest of maintaining just one
+# doxia jar, we substitute things accordingly)
+
+for i in    maven2-plugins/maven-changelog-plugin/src/main/java/org/apache/maven/plugin/changelog/FileActivityReport.java \
+            maven2-plugins/maven-changelog-plugin/src/main/java/org/apache/maven/plugin/changelog/ChangeLogReport.java \
+            maven2-plugins/maven-changelog-plugin/src/main/java/org/apache/maven/plugin/changelog/DeveloperActivityReport.java \
+            maven2-plugins/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java \
+            maven2-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/PluginReport.java \
+            maven2/maven-reporting/maven-reporting-api/src/main/java/org/apache/maven/reporting/MavenReport.java \
+            maven2-plugins/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrHtmlReport.java \
+            maven2-plugins/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java \
+            maven2-plugins/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdReportGenerator.java \
+            maven2-plugins/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java \
+            maven2-plugins/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReportListener.java \
+            maven2-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java \
+            maven2-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java; do
+
+    sed -i -e s:org.codehaus.doxia.sink.Sink:org.apache.maven.doxia.sink.Sink:g $i
+    sed -i -e s:org.codehaus.doxia.site.renderer.SiteRenderer:org.apache.maven.doxia.siterenderer.Renderer:g $i
+    sed -i -r -e s:\(\\s+\)SiteRenderer\(\\s+\):\\1Renderer\\2:g $i
+done
+
+# Remove existing binaries from source trees
+#find . -name "*.jar" -exec rm -f '{}' \;
+
+%patch0 -b .sav
+%patch1 -b .sav
+%patch2 -b .sav
+%patch3 -b .sav
+%patch4 -b .sav
+%patch5 -b .sav
+
+# keep external jars out of uber jar only in non-bootstrap mode
+%if %without bootstrap
+%patch6 -b .sav
+%endif
+
+
+%patch7 -b .sav
+
+%if %with bootstrap
+%patch8 -b .sav
+%endif
+
+%patch9 -b .sav
+%patch10 -b .sav
+%patch11 -b .sav
+%patch12 -b .sav
+# javadoc 2.5 no longer needs this patch
+#%patch13 -b .sav
+# javadoc 2.5 pre-reqs maven 2.0.9 by default
+#%patch14 -b .sav
+
+# FIXME: Maven eclipse plugin tests are disabled for now, until a way
+# is found to stop it from connecting to the web despite offline mode.
+rm -rf maven2-plugins/maven-eclipse-plugin/src/test/*
+
+# FIXME: Disabled items:
+
+#Disabled goal (because we don't want a jetty dependency)
+rm -f maven2-plugins/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteRunMojo.java
+
+# Disabled test because it needs cglib
+rm -f maven2-plugins/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/PrepareReleaseMojoTest.java
+
+# Disabled test because it needs mock
+rm -f maven2/maven-artifact-manager/src/test/java/org/apache/maven/artifact/testutils/MockManager.java 
+rm -f maven2/maven-artifact-manager/src/test/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadataTest.java
+
+# extract poms and jars (if any)
+tar xzf %{SOURCE3}
+
+# extract jars iff in bootstrap mode
+%if %with bootstrap
+tar xzf %{SOURCE4}
+%endif
+
+# Copy model-v3
+cp -p %{SOURCE10} m2_repo/repository/JPP/maven2/model-v3.jar
+
+mkdir external_repo
+ln -s %{_javadir} external_repo/JPP
+
+cp -p %{SOURCE6} maven2/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/JPackageRepositoryLayout.java
+cp -p %{SOURCE11} maven2/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/MavenJPackageDepmap.java
+
+# FIXME: bootstrap-mini has no dependencies, so we copy the file there 
+# (for now). Since bootstrap classes are not in the final package, there 
+# will be no duplicates.
+mkdir -p maven2/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/artifact/repository/layout/
+cp -p %{SOURCE11} maven2/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/artifact/repository/layout/MavenJPackageDepmap.java
+
+cp -p %{SOURCE7} %{maven_settings_file}
+sed -i -e "s|<url>__INTERNAL_REPO_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" %{maven_settings_file}
+%if %with bootstrap
+sed -i -e "s|<url>__EXTERNAL_REPO_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" %{maven_settings_file}
+%else
+sed -i -e "s|<url>__EXTERNAL_REPO_PLACEHOLDER__</url>|<url>file://%{_datadir}/%{name}/repository</url>|g" %{maven_settings_file}
+%endif
+
+sed -i -e "s|__INTERNAL_REPO_PLACEHOLDER__|file://`pwd`/m2_repo/repository|g" maven2/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/download/OnlineArtifactDownloader.java
+
+%if %with bootstrap
+sed -i -e "s|__EXTERNAL_REPO_PLACEHOLDER__|file://`pwd`/external_repo|g" maven2/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/download/OnlineArtifactDownloader.java
+%else
+sed -i -e "s|__EXTERNAL_REPO_PLACEHOLDER__|file://%{_datadir}/%{name}/repository|g" maven2/bootstrap/bootstrap-mini/src/main/java/org/apache/maven/bootstrap/download/OnlineArtifactDownloader.java
+%endif
+
+# Copy the empty dependency jar/pom in place
+mkdir -p m2_repo/repository/JPP/maven2/default_poms
+cp -p %{SOURCE13} m2_repo/repository/JPP/maven2/default_poms/JPP.maven2-empty-dep.pom
+cp -p %{SOURCE14} m2_repo/repository/JPP/maven2/empty-dep.jar
+
+%build
+# Fix maven-remote-resources-plugin
+# we now use plexus-velocity 1.1.7 which has the correct descriptor with a hint.
+rm -f maven2-plugins/maven-remote-resources-plugin/src/main/resources/META-INF/plexus/components.xml
+
+# Wire in jdom dependency
+cp -p maven2/maven-artifact/pom.xml maven2/maven-artifact/pom.xml.withoutjdom
+saxon -o maven2/maven-artifact/pom.xml maven2/maven-artifact/pom.xml.withoutjdom /usr/share/java-utils/xml/maven2jpp-mapdeps.xsl map=%{SOURCE12}
+saxon -o m2_repo/repository/JPP/maven2/poms/JPP.maven2-artifact.pom maven2/maven-artifact/pom.xml.withoutjdom /usr/share/java-utils/xml/maven2jpp-mapdeps.xsl map=%{SOURCE12}
+
+# for uber jar
+cp -p maven2/maven-core/pom.xml maven2/maven-core/pom.xml.withoutjdom
+saxon -o maven2/maven-core/pom.xml maven2/maven-core/pom.xml.withoutjdom /usr/share/java-utils/xml/maven2jpp-mapdeps.xsl map=%{SOURCE12}
+
+cp -p maven2/bootstrap/bootstrap-installer/pom.xml maven2/bootstrap/bootstrap-installer/pom.xml.withoutjdom
+saxon -o maven2/bootstrap/bootstrap-installer/pom.xml maven2/bootstrap/bootstrap-installer/pom.xml.withoutjdom /usr/share/java-utils/xml/maven2jpp-mapdeps.xsl map=%{SOURCE12}
+
+mkdir -p maven2/maven2-plugins/maven-assembly-plugin/target/generated-resources/plexus/META-INF/plexus/components.xml
+touch maven2/maven2-plugins/maven-assembly-plugin/target/generated-resources/plexus/META-INF/plexus/components.xml
+
+# Build maven2
+export MAVEN_REPO_LOCAL=`pwd`/%{repo_dir}
+export M2_SETTINGS_FILE=%{maven_settings_file}
+
+# In bootstrap mode, we want it looking at default poms only (controlled via 
+# maven2-common-poms). This enables us to change naming structures without 
+# breaking build.
+
+export MAVEN_OPTS="$MAVEN_OPTS -Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven2.ignore.versions -Dmaven2.offline.mode -Dmaven.test.failure.ignore=true -Dmaven2.jpp.depmap.file=%{SOURCE17}"
+export M2_HOME=`pwd`/maven2/home/apache-%{base_name}-%{version}
+
+%if %with bootstrap
+export MAVEN_OPTS="$MAVEN_OPTS -Dmaven2.jpp.default.repo=`pwd`/external_repo"
+%else
+export MAVEN_OPTS="$MAVEN_OPTS -Dmaven2.jpp.default.repo=%{_datadir}/%{name}/repository"
+%endif
+
+# pushd maven2/ ...
+pushd %{name} >& /dev/null
+
+[ -z "$JAVA_HOME" ] && JAVA_HOME=%{_jvmdir}/java
+export JAVA_HOME
+
+mkdir bootstrap/lib
+ln -s $(build-classpath jdom) bootstrap/lib/jdom.jar
+export CLASSPATH=`pwd`/bootstrap/lib/jdom.jar
+export JDOMCLASS=$CLASSPATH
+./bootstrap.sh --prefix=`pwd`/home  --settings=%{maven_settings_file}
+unset CLASSPATH
+
+popd >& /dev/null
+
+# Update the classworlds jar name in the mvn script
+sed -i -e s:"/core/boot/classworlds-\*.jar":/core/boot/classworlds\*.jar:g $M2_HOME/bin/mvn
+
+# In non-bootstrap mode, external jars are kept out of the uber jar. Copy those
+# jars in for now (linked in %%post)
+
+%if %without bootstrap
+(cd $M2_HOME/lib
+cp ../../../../m2_home_local/repository/com/jcraft/jsch/0.1.24/jsch-0.1.24.jar jsch.jar
+cp ../../../../m2_home_local/repository/org/codehaus/plexus/plexus-utils/1.4.6/plexus-utils-1.4.6.jar plexus-utils.jar
+cp ../../../../m2_home_local/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar commons-cli.jar
+cp ../../../../m2_home_local/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar doxia-sink-api.jar
+cp ../../../../m2_home_local/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar plexus-container-default.jar
+cp ../../../../m2_home_local/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar plexus-interactivity-api.jar
+cp ../../../../m2_home_local/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar jtidy.jar
+)
+
+build-jar-repository -s -p $M2_HOME/lib jdom maven-wagon/file maven-wagon/http-lightweight maven-wagon/http-shared maven-wagon/provider-api maven-wagon/ssh maven-wagon/ssh-common maven-wagon/ssh-external
+%endif
+
+# Build plugins
+pushd maven2-plugins >& /dev/null
+
+# Build the plugin-plugin first, as it is needed to build itself later on
+# NOTE: Build of this plugin for the first time is expected to cause errors. 
+# That is why we build it first with -fn . Subsequent builds should not have 
+# errors, and if they do, they will be caught when all plugins are built 
+# again below. See: http://mail-archives.apache.org/mod_mbox/maven-users/200511.mbox/%3c4374C819.7090609@commonjava.org%3e
+
+(cd maven-plugin-plugin
+$M2_HOME/bin/mvn -e --batch-mode -s %{maven_settings_file} $MAVEN_OPTS -npu --no-plugin-registry -fn clean install 
+)
+
+%if ! %{NONFREE}
+# Disable clover plugin. We don't have a clover package yet.
+sed -i -e s:"<module>maven-clover-plugin</module>"::g pom.xml
+%endif
+
+# Now build everything
+# FIXME: Need to build in two stages to get around gcj bug that causes plugin reload to fail
+#$M2_HOME/bin/mvn -e --batch-mode -s %{maven_settings_file} $MAVEN_OPTS -Dmaven.test.skip=true -npu --no-plugin-registry -fn verify  
+$M2_HOME/bin/mvn -e --batch-mode -s %{maven_settings_file} $MAVEN_OPTS -Dmaven.test.skip=true -npu --no-plugin-registry verify  
+$M2_HOME/bin/mvn -e --batch-mode -s %{maven_settings_file} $MAVEN_OPTS -Dmaven.test.skip=true -npu --no-plugin-registry --fail-at-end jar:jar install:install
+
+popd >& /dev/null
+
+%if %without bootstrap
+# Build model-all JAR  (for model-v3 classes)
+pushd maven2/maven-model >& /dev/null
+
+$M2_HOME/bin/mvn -e -s %{maven_settings_file} $MAVEN_OPTS -P all-models package
+
+popd >& /dev/null
+%endif
+
+# Build complete. Run it tests.
+
+%if %with itests
+
+(cd maven2
+
+# One of the tests (#63) needs tools.jar. Fix the path for it
+sed -i -e s:"<systemPath>\${java.home}/../lib/tools.jar</systemPath>":"<systemPath>$JAVA_HOME/lib/tools.jar</systemPath>":g maven-core-it/it0063/pom.xml 
+
+(cd integration-tests/maven-core-it-plugin
+$M2_HOME/bin/mvn -s %{maven_settings_file} $MAVEN_OPTS org.apache.maven.plugins:maven-plugin-plugin:2.1.1-SNAPSHOT:descriptor org.apache.maven.plugins:maven-resources-plugin:2.2-SNAPSHOT:resources org.apache.maven.plugins:maven-compiler-plugin:2.1-SNAPSHOT:compile org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:jar org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install
+$M2_HOME/bin/mvn -s %{maven_settings_file} $MAVEN_OPTS org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-core-it-plugin -Dversion=%{version}-JPP -Dpackaging=maven-plugin -Dfile=target/maven-core-it-plugin-1.0-SNAPSHOT.jar
+)
+
+for i in `find integration-tests/maven-core-it-support -name pom.xml`; do
+    pushd `dirname $i`
+        $M2_HOME/bin/mvn -s %{maven_settings_file} $MAVEN_OPTS org.apache.maven.plugins:maven-plugin-plugin:2.1.1-SNAPSHOT::descriptor org.apache.maven.plugins:maven-resources-plugin:2.2-SNAPSHOT:resources org.apache.maven.plugins:maven-compiler-plugin:2.1-SNAPSHOT:compile  org.apache.maven.plugins:maven-jar-plugin:2.1-SNAPSHOT:jar org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install
+    popd
+done
+
+# Test 41 expects core-it-support 1.2 to be packed as a coreit-artifact
+(cd integration-tests/maven-core-it-support/1.2
+$M2_HOME/bin/mvn -s %{maven_settings_file} $MAVEN_OPTS org.apache.maven.plugins:maven-install-plugin:2.2-SNAPSHOT:install-file -DgroupId=org.apache.maven -DartifactId=maven-core-it-support -Dversion=1.2 -Dpackaging=coreit-artifact -Dfile=target/maven-core-it-support-1.2.jar
+)
+
+OLD_MAVEN_OPTS=$MAVEN_OPTS
+MAVEN_OPTS="$MAVEN_OPTS -Dmaven.settings.file=$M2_SETTINGS_FILE -Dmaven2.ignore.versions  -Dmaven2.jpp.mode -Dmaven2.jpp.mode=true"
+sh -x %{SOURCE9}
+export MAVEN_OPTS=$OLD_MAVEN_OPTS
+)
+
+%endif
+
+# Build docs
+
+# Manual iteration should not be needed, but there is a bug in the javadoc 
+# plugin which makes this necessary. See: 
+# http://jira.codehaus.org/browse/MJAVADOC-157
+
+(cd maven2
+for dir in `find -maxdepth 1 -type d`; do
+
+    if [ "$dir" == "./maven-core-it-runner" ]; then
+        continue
+    fi
+
+    if [ ! -f $dir/pom.xml ]; then
+        continue
+    fi 
+
+    pushd $dir
+    $M2_HOME/bin/mvn -s %{maven_settings_file} $MAVEN_OPTS -Dmaven2.usejppjars org.apache.maven.plugins:maven-javadoc-plugin:2.3-SNAPSHOT:javadoc
+    popd
+done
+)
+(cd maven2-plugins
+for dir in `find -maxdepth 1 -type d`; do
+
+%if !%{NONFREE}
+    if [ "$dir" == "./maven-clover-plugin" ]; then
+        continue
+    fi
+%endif
+
+    if [ ! -f $dir/pom.xml ]; then
+        continue
+    fi
+
+    pushd $dir
+    $M2_HOME/bin/mvn -s %{maven_settings_file} $MAVEN_OPTS -Dmaven2.usejppjars org.apache.maven.plugins:maven-javadoc-plugin:2.3-SNAPSHOT:javadoc
+    popd
+done
+)
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+export M2_HOME=`pwd`/maven2/home/apache-%{base_name}-%{version}
+
+# Repository
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/repository
+
+# Items in /usr/bin/
+install -dm 755 $RPM_BUILD_ROOT%{_bindir}
+install -pm 755 %{SOURCE5} $RPM_BUILD_ROOT%{_bindir}/mvn
+install -pm 755 %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/mvn-jpp
+
+# maven.home
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/bin
+cp -p $M2_HOME/bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/bin
+
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/boot
+
+%if %with bootstrap
+cp -p $M2_HOME/boot/classworlds* $RPM_BUILD_ROOT%{_datadir}/%{name}/boot/classworlds.jar
+%endif
+
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/conf
+install -m 644 $M2_HOME/conf/* $RPM_BUILD_ROOT%{_datadir}/%{name}/conf
+
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
+cp -p $M2_HOME/lib/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
+
+# Also, link maven jars from /usr/share/java
+install -dm 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
+for library in $RPM_BUILD_ROOT%{_datadir}/%{name}/lib/maven-%{version}-uber.jar; do
+    ln -s ../../%{name}/lib/`basename $library` $RPM_BUILD_ROOT%{_javadir}/%{name}/maven-uber.jar
+done
+
+# Install component poms and jars
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/poms
+pushd %{name}
+    for project in maven-artifact \
+        maven-artifact-manager \
+        maven-artifact-test \
+        maven-core \
+        maven-error-diagnostics \
+        maven-model \
+        maven-monitor \
+        maven-plugin-api \
+        maven-plugin-descriptor \
+        maven-plugin-parameter-documenter \
+        maven-plugin-registry \
+        maven-profile \
+        maven-project \
+        maven-repository-metadata \
+        maven-settings; do 
+
+        artifactname=`echo $project | sed -e s:^maven-::g`
+        cp -p $project/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.%{name}-$artifactname.pom
+
+        # dependency fragments
+        %add_to_maven_depmap org.apache.maven $project %{version} JPP/%{name} $artifactname
 
-%prep
-%setup -q -n apache-%{name}-%{version}
+        install -m 644 $project/target/$project-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/$artifactname-%{version}.jar
 
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/bin}
-ln -sf %{_datadir}/%{name}/bin/mvn $RPM_BUILD_ROOT%{_bindir}/mvn
+%if %without bootstrap
+        if [ "$project" == "maven-model" ]; then
+          install -m 644 $project/target/$project-%{version}-all.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/$artifactname-all-%{version}.jar
+        fi
+%endif
+
+    done
+popd
+
+# reporting api
+cp -p %{name}/maven-reporting/maven-reporting-api/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.%{name}-reporting-api.pom
+%add_to_maven_depmap org.apache.maven.reporting maven-reporting-api %{version} JPP/%{name} reporting-api
+install -m 644 %{name}/maven-reporting/maven-reporting-api/target/*jar $RPM_BUILD_ROOT%{_javadir}/%{name}/reporting-api-%{version}.jar 
+
+# script, script-ant and script-beanshell
+cp -p %{name}/maven-script/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.%{name}-script.pom
+%add_to_maven_depmap org.apache.maven maven-script %{version} JPP/%{name} script
+
+cp -p %{name}/maven-script/maven-script-ant/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.%{name}-script-ant.pom
+%add_to_maven_depmap org.apache.maven maven-script-ant %{version} JPP/%{name} script-ant
+install -pm 644 %{name}/maven-script/maven-script-ant/target/maven-script-ant-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/script-ant-%{version}.jar
+
+cp -p %{name}/maven-script/maven-script-beanshell/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.%{name}-script-beanshell.pom
+%add_to_maven_depmap org.apache.maven maven-script-beanshell %{version} JPP/%{name} script-beanshell
+install -pm 644 %{name}/maven-script/maven-script-beanshell/target/maven-script-beanshell-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/script-beanshell-%{version}.jar
+
+# reporting pom
+cp -p %{name}/maven-reporting/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.%{name}-reporting.pom
+%add_to_maven_depmap org.apache.maven.reporting maven-reporting %{version} JPP/%{name} reporting
+
+# maven pom
+cp -p %{name}/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.%{name}-maven.pom
+%add_to_maven_depmap org.apache.maven maven %{version} JPP/%{name} maven
+
+# Create versionless symlinks
+(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar | sed  "s|-%{version}||g"`; done)
+
+# plugins
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/
+
+pushd maven2-plugins
+    for targetdir in `find -mindepth 2 -maxdepth 2 -type d -name target`; do
+
+        # Find the version version
+        pluginname=`echo $targetdir | sed -e s:"^\\./"::g -e s:"/target$"::g`
+        pluginversion=`ls $targetdir/*jar | awk -F / '{print $NF}' | sed -e s:"^$pluginname-"::g -e s:"\\.jar$"::g`
+        artifactname=`echo $pluginname | sed -e s:^maven-::g`
+
+        #jar 
+        cp -p $targetdir/*jar $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/$artifactname-$pluginversion.jar
+        ln -s $artifactname-$pluginversion.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/$artifactname.jar
+
+        # pom
+        cp -p `dirname $targetdir`/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.%{name}.plugins-$artifactname.pom
+        %add_to_maven_depmap org.apache.maven.plugins $pluginname $pluginversion JPP/%{name}/plugins $artifactname
 
-install -d $RPM_BUILD_ROOT
-install bin/mvn $RPM_BUILD_ROOT%{_datadir}/%{name}/bin
-cp -a bin/m2.conf $RPM_BUILD_ROOT%{_datadir}/%{name}/bin
-cp -a boot conf lib $RPM_BUILD_ROOT%{_datadir}/%{name}
+    done
+popd
+
+# g=org.apache.maven.plugins a=maven-plugins needs to be copied manually, as 
+# it get's changed to a=plugins (a=plugins and a=maven-plugins is the same 
+# file, but the former is needed for compatiblity while newer projects use 
+# the latter)
+cp -p maven2-plugins/target/*jar $RPM_BUILD_ROOT%{_datadir}/%{name}/plugins/maven-plugins.jar
+cp -p maven2-plugins/pom.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.maven2.plugins-maven-plugins.pom
+%add_to_maven_depmap org.apache.maven.plugins maven-plugins 9-SNAPSHOT JPP/%{name}/plugins maven-plugins
+
+# The empty dependencies
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/poms
+mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name}
+cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.maven2-empty-dep.pom
+cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_javadir}/%{name}/empty-dep.jar
+
+# For backwards compatibility
+ln -s JPP.maven2-core.pom $RPM_BUILD_ROOT%{_datadir}/%{name}/poms/JPP.maven2-mavencore.pom
+
+# javadocs
+install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+
+(cd maven2
+    for doc_dir in `find . -type d -name apidocs`; do 
+        module=`echo $doc_dir | sed -e s:"^\\./"::g -e s:"/target/site/apidocs$"::g`
+        targetdir=$RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/$module
+        install -dm 755  $targetdir
+        cp -pr $doc_dir/* $targetdir
+    done
+)
+
+(cd maven2-plugins
+    for doc_dir in `find . -type d -name apidocs`; do 
+        module=`echo $doc_dir | sed -e s:"^\\./"::g -e s:"/target/site/apidocs$"::g`
+        targetdir=$RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/$module
+        install -dm 755 $targetdir
+        cp -pr $doc_dir/* $targetdir
+    done
+)
+
+# manual and jpp readme
+install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+cp -p %{name}/home/apache-%{base_name}-%{version}/*.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+cp -p %{SOURCE16} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+# create appropriate links in /usr/share/java
+ln -sf %{_datadir}/%{name}/poms $RPM_BUILD_ROOT%{_javadir}/%{name}
+ln -sf %{_datadir}/%{name}/plugins $RPM_BUILD_ROOT%{_javadir}/%{name}
+
+# Create repository links
+ln -s %{_javadir} $RPM_BUILD_ROOT%{_datadir}/%{name}/repository/JPP
+
+# Create the bootstrap repo
+%if %with bootstrap
+install -dm 755  $RPM_BUILD_ROOT%{_datadir}/%{name}/bootstrap_repo
+tar xzf %{SOURCE4}
+mv m2_repo/repository/JPP $RPM_BUILD_ROOT%{_datadir}/%{name}/bootstrap_repo/
+rmdir -p m2_repo/repository
+%endif
+
+%if %with repolib
+install -d -m 755 $RPM_BUILD_ROOT%{repodir}
+install -d -m 755 $RPM_BUILD_ROOT%{repodirlib}
+install -p -m 644 %{SOURCE100} $RPM_BUILD_ROOT%{repodir}/component-info.xml
+sed -i 's/@VERSION@/%{version}-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 %{SOURCE2} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE9} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE12} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE13} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE15} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE16} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE17} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{SOURCE22} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH0} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH1} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH2} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH3} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH4} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH5} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH6} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH7} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH8} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH9} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH10} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH11} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH12} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH14} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH16} $RPM_BUILD_ROOT%{repodirsrc}
+install -p -m 644 %{PATCH18} $RPM_BUILD_ROOT%{repodirsrc}
+for jar in project.jar settings.jar model.jar profile.jar artifact-manager.jar repository-metadata.jar artifact.jar plugin-registry.jar error-diagnostics.jar; do
+    cp -p %{buildroot}%{_javadir}/%{name}/${jar} %{buildroot}%{repodirlib}/maven-${jar}
+done
+%endif
+
+%if %{gcj_support}
+%{_bindir}/aot-compile-rpm
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(644,root,root,755)
-%doc NOTICE.txt
-%attr(755,root,root) %{_bindir}/mvn
+%post
+
+# clear the old links
+find %{_datadir}/%{name}/boot/ -type l -exec rm -f '{}' \;
+find %{_datadir}/%{name}/lib/ -type l -exec rm -f '{}' \;
+
+%if %without bootstrap
+build-jar-repository -s -p %{_datadir}/%{name}/boot classworlds
+
+build-jar-repository -s -p %{_datadir}/%{name}/lib \
+                commons-cli \
+                commons-lang \
+                commons-logging \
+                jsch \
+                jtidy \
+                maven-doxia/sink-api \
+                maven-wagon/file \
+                maven-wagon/http-lightweight \
+                maven-wagon/http-shared \
+                maven-wagon/provider-api \
+                maven-wagon/ssh \
+                maven-wagon/ssh-common \
+                maven-wagon/ssh-external \
+                plexus/container-default \
+                plexus/interactivity-api \
+                plexus/utils
+%endif
+
+build-jar-repository -s -p %{_datadir}/%{name}/lib \
+                jdom
+
+%update_maven_depmap
+
+%if %{gcj_support}
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+# We create links in %post in the dir's below. rm -rf them.
+%preun -n %{name}
+[ $1 = 0 ] || exit 0
+rm -rf %{_datadir}/%{name}/lib/*
+rm -rf %{_datadir}/%{name}/core/*
+
+%postun
+# FIXME: This doesn't always remove the plugins dir. It seems that rpm doesn't
+# honour the Requires(postun) as it should, causing maven to get uninstalled 
+# before some plugins are
+if [ -d %{_javadir}/%{name} ] ; then rmdir --ignore-fail-on-non-empty %{_javadir}/%{name} >& /dev/null; fi
+%update_maven_depmap
+
+%if %{gcj_support}
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-source
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-source
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{NONFREE}
+%if %{gcj_support}
+%post plugin-clover
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-clover
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+%endif
+
+%if %{gcj_support}
+%post plugin-ejb
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-ejb
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-repository
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-repository
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-pmd
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-pmd
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-idea
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-idea
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-site
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-site
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-plugin
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-plugin
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-one
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-one
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-eclipse
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-eclipse
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-ear
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-ear
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-project-info-reports
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-project-info-reports
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-antlr
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-antlr
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-clean
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-clean
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-rar
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-rar
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-jar
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-jar
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-checkstyle
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-checkstyle
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-ant
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-ant
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-antrun
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-antrun
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-help
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-help
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-verifier
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-verifier
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-compiler
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-compiler
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-install
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-install
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-javadoc
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-javadoc
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-assembly
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-assembly
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-deploy
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-deploy
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-resources
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-resources
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-dependency
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-dependency
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-changelog
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-changelog
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-changes
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-changes
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-doap
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-doap
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-docck
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-docck
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-gpg
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-gpg
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-invoker
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-invoker
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-remote-resources
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-remote-resources
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%post plugin-stage
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%if %{gcj_support}
+%postun plugin-stage
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%files -n %{name}
+%defattr(-,root,root,-)
+%doc %{name}/maven-core/*.txt
+%attr(0755,root,root) %{_bindir}/mvn
+%attr(0755,root,root) %{_bindir}/mvn-jpp
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/bin
-%{_datadir}/%{name}/bin/m2.conf
-%attr(755,root,root) %{_datadir}/%{name}/bin/mvn
+%{_datadir}/%{name}/bin/*.bat
+%config(noreplace) %{_datadir}/%{name}/bin/*.conf
+%attr(0755,root,root) %{_datadir}/%{name}/bin/m2
+%attr(0755,root,root) %{_datadir}/%{name}/bin/mvn
+%attr(0755,root,root) %{_datadir}/%{name}/bin/mvnDebug
 %{_datadir}/%{name}/boot
 %{_datadir}/%{name}/conf
 %{_datadir}/%{name}/lib
+%{_datadir}/%{name}/plugins/maven-plugins*jar
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/poms
+%{_datadir}/%{name}/repository
+%{_mavendepmapfragdir}
+%{_javadir}/%{name}
+
+%if %with bootstrap
+%{_datadir}/%{name}/bootstrap_repo
+%endif
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/artifact-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/artifact-manager-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/artifact-test-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/core-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/error-diagnostics-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/maven-%{version}-uber.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/model-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/model-v3.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/monitor-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/plugin-api-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/plugin-descriptor-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/plugin-parameter-documenter-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/plugin-registry-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/profile-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/project-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/reporting-api-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/repository-metadata-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/script-ant-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/script-beanshell-%{version}.jar.*
+%attr(-,root,root) %{_libdir}/gcj/%{name}/settings-%{version}.jar.*
+
+%if %with bootstrap
+%attr(-,root,root) %{_libdir}/gcj/maven2/asm3.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/backport-util-concurrent.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/beanshell.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/bndlib.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/book.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/booter.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/cdc.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/classworlds.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/common-artifact-filters.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/decoration-model.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/digest.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/doc-renderer.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/file-management.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/geronimo-j2ee-1.4-apis.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/geronimo-javamail-1.3.1-api.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/impl.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/io.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/jar.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/java.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/junit.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/mail-sender-api.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/mail-sender-javamail.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/mail-sender-simple.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/manager-plexus.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-archiver.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-dependency-analyzer.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-dependency-tree.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-downloader.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-doxia_core.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-doxia_maven-plugin.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-embedder.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-invoker.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-model-converter.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-plugin-testing-harness.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-plugin-testing-tools.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-plugin-tools_api.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-scm_api.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-surefire_api.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-surefire_maven-plugin.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-test-tools.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven-verifier.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/maven2-plugin-shade.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/modello_core.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/modello_maven-plugin.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-apt.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-confluence.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-docbook-simple.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-fml.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-itext.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-latex.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-rtf.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-twiki.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-xdoc.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/module-xhtml.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plexus_maven-plugin.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plugin-jdom.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plugin-jpox.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plugin-prevayler.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plugin-store.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plugin-xdoc.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plugin-xml.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plugin-xpp3.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/plugin-xsd.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/pmd.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-bazaar.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-clearcase.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-cvs-commons.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-cvsexe.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-cvsjava.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-hg.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-local.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-perforce.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-starteam.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-svn-commons.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-svnexe.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-synergy.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/provider-vss.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/repository-builder.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/resources.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/saxpath.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/sink-api.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/site-renderer.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/utils.jar.*
+%attr(-,root,root) %{_libdir}/gcj/maven2/velocity.jar.*
+%endif
+
+%endif
+
+
+
+%files javadoc
+%defattr(-,root,root,-)
+%doc %{_javadocdir}/*
+
+%files manual
+%defattr(-,root,root,-)
+%doc %{_docdir}/%{name}-%{version}
+
+%files plugin-ant
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/ant-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/ant-plugin*.jar.*
+%endif
+
+%files plugin-antlr
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/antlr-plugin*.jar
+
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/antlr-plugin*.jar.*
+%endif
+
+%files plugin-antrun
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/antrun-plugin*.jar
+
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/antrun-plugin*.jar.*
+%endif
+
+%files plugin-assembly
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/assembly-plugin*.jar
+
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/assembly-plugin*.jar.*
+%endif
+
+%files plugin-changelog
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/changelog-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/changelog-plugin*.jar.*
+%endif
+
+%files plugin-changes
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/changes-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/changes-plugin*.jar.*
+%endif
+
+%files plugin-checkstyle
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/checkstyle-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/checkstyle-plugin*.jar.*
+%endif
+
+%files plugin-clean
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/clean-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/clean-plugin*.jar.*
+%endif
+
+%if %{NONFREE}
+%files plugin-clover
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/clover-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/clover-plugin*.jar.*
+%endif
+%endif
+
+%files plugin-compiler
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/compiler-plugin*.jar
+
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/compiler-plugin*.jar.*
+%endif
+
+%files plugin-dependency
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/dependency-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/dependency-plugin*.jar.*
+%endif
+
+%files plugin-deploy
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/deploy-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/deploy-plugin*.jar.*
+%endif
+
+
+%files plugin-doap
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/doap-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/doap-plugin*.jar.*
+%endif
+
+
+%files plugin-docck
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/docck-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/docck-plugin*.jar.*
+%endif
+
+
+%files plugin-ear
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/ear-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/ear-plugin*.jar.*
+%endif
+
+%files plugin-eclipse
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/eclipse-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/eclipse-plugin*.jar.*
+%endif
+
+
+%files plugin-ejb
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/ejb-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/ejb-plugin*.jar.*
+%endif
+
+%files plugin-gpg
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/gpg-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/gpg-plugin*.jar.*
+%endif
+
+
+%files plugin-help
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/help-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/help-plugin*.jar.*
+%endif
+
+
+%files plugin-idea
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/idea-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/idea-plugin*.jar.*
+%endif
+
+
+%files plugin-install
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/install-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/install-plugin*.jar.*
+%endif
+
+
+%files plugin-invoker
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/invoker-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/invoker-plugin*.jar.*
+%endif
+
+
+%files plugin-jar
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/jar-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/jar-plugin*.jar.*
+%endif
+
+
+%files plugin-javadoc
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/javadoc-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/javadoc-plugin*.jar.*
+%endif
+
+
+%files plugin-one
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/one-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/one-plugin*.jar.*
+%endif
+
+
+%files plugin-plugin
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/plugin-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/plugin-plugin*.jar.*
+%endif
+
+
+%files plugin-pmd
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/pmd-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/pmd-plugin*.jar.*
+%endif
+
+
+%files plugin-project-info-reports
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/project-info-reports-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/project-info-reports-plugin*.jar.*
+%endif
+
+
+%files plugin-rar
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/rar-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/rar-plugin*.jar.*
+%endif
+
+%files plugin-remote-resources
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/remote-resources-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/remote-resources-plugin*.jar.*
+%endif
+
+%files plugin-repository
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/repository-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/repository-plugin*.jar.*
+%endif
+
+%files plugin-resources
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/resources-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/resources-plugin*.jar.*
+%endif
+
+
+%files plugin-site
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/site-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/site-plugin*.jar.*
+%endif
+
+
+%files plugin-source
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/source-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/source-plugin*.jar.*
+%endif
+
+%files plugin-stage
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/stage-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/stage-plugin*.jar.*
+%endif
+
+%files plugin-verifier
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/verifier-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/verifier-plugin*.jar.*
+%endif
+
+
+%files plugin-war
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}/plugins
+%{_datadir}/%{name}/plugins/war-plugin*.jar
+
+%if %{gcj_support}
+%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}/war-plugin*.jar.*
+%endif
+
+%if %with repolib
+%files repolib
+%defattr(0644,root,root,0755)
+%{_javadir}/repository.jboss.com
+%endif
+
+%changelog
+* Fri Mar 12 2010 David Walluck <dwalluck@redhat.com> 0:2.0.8-26
+- more merging with RHEL-4-EP-5 0:2.0.8-10.40
+
+* Fri Mar 12 2010 David Walluck <dwalluck@redhat.com> 0:2.0.8-25
+- update java source files from RHEL-4-EP-5 0:2.0.8-10.40
+
+* Thu Mar 11 2010 David Walluck <dwalluck@redhat.com> 0:2.0.8-24
+- merge some patches from RHEL-4-EP-5 0:2.0.8-10.40
+
+* Wed Sep 02 2009 Ralph Apel <r.apel@r-apel.de> 0:2.0.8-23
+- rebuild without_bootstrap
+
+* Wed Sep 02 2009 Ralph Apel <r.apel@r-apel.de> 0:2.0.8-22
+- try to relax maven-surefire requirements
+- drop excessive BRs in bootstrap mode
+
+* Thu Jun 11 2009 David Walluck <dwalluck@redhat.com> 0:2.0.8-21
+- add repolib
+
+* Fri May 22 2009 David Walluck <dwalluck@redhat.com> 0:2.0.8-20
+- update maven-surefire BuildRequires
+
+* Mon May 04 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-19
+- Rebuild
+
+* Tue Apr 21 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-18
+- Build model-all.jar for model-v3 needed by maven-shared-model-converter, Merged from RHEL-4-EP-5 0:2.0.8-10.17
+
+* Tue Apr 21 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-17
+- rebuild in non-bootstrap mode with plexus-cdc alpha10
+
+* Tue Apr 21 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-16
+- rebuild in bootstrap mode with plexus-cdc alpha10
+
+* Thu Apr 02 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-15
+- fix jpp depmap issues of maven-shared-plugin-tools-api, maven-shared-plugin-tools-beanshell, maven-shared-plugin-tools-java
+- cp maven-assembly-plugin/../components.xml manually to fix java.io.FileNotFoundException
+- rebuild in non-bootstrap mode
+
+* Thu Apr 02 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-14
+- rebuild in bootstrap mode to fix PluginDescriptor issue
+
+* Wed Apr 01 2009 Fernando Nasser <fnasser@redhat.com> - 0:2.0.8-13
+- Build in bootstrap mode
+
+* Mon Mar 23 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-12
+- add maven2-plugins-jpprepolayout.patch
+
+* Mon Mar 23 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-11
+- rebuild in non-bootstrap mode
+
+* Mon Mar 23 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-10
+- remove Obsoletes: maven-surefire-plugin
+
+* Tue Mar 16 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-9
+- Merge from RHEL-4-EP-5, add missing BRs/Reqs, add patches
+
+* Tue Mar 11 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-8
+- Add missing Requires: maven-shared-plugin-tools-java, maven-shared-plugin-tools-beanshell for subpackage plugin-plugin
+
+* Tue Mar 10 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-7
+- Add Requires: tomcat5, excalibur-avalon-logkit, excalibur-avalon-framework
+
+* Wed Mar 05 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-6
+- Provides: maven2-bootstrap >= 2.0.7
+
+* Wed Mar 05 2009 Yong Yang <yyang@redhat.com> - 0:2.0.8-5
+- Add Obsoletes maven2-bootstrap <= 2.0.7, maven-release, maven-surefire-plugin
+
+* Wed Mar 04 2009 Deepak Bhole <dbhole@redhat.com> - 0:2.0.8-4
+- Add patch for commons-cli 1.1
+
+* Fri Feb 20 2009 Yong Yang <yyang@redhat.com> 2.0.8-3
+- add new maven-parent jpp depmap
+
+* Wed Feb 18 2009 Yong Yang <yyang@redhat.com> 2.0.8-2
+- Import from dbhloes maven2 2.0.8 list, Initializing build with bootstrap mode on JPP6
+- Fix many BRs, jpp depmaps
+
+* Tue Mar 20 2007 Deepak Bhole <dbhole@redhat.com> 0:2.0.4-10jpp.6
+- Build without bootstrap
+
+* Tue Mar 20 2007 Deepak Bhole <dbhole@redhat.com> 2.0.4-10jpp.5
+- Force gcj_support to 0
+
+* Tue Mar 20 2007 Deepak Bhole <dbhole@redhat.com> 2.0.4-10jpp.4
+- Build without gcj for now
+
+* Fri Mar 16 2007 Deepak Bhole <dbhole@redhat.com> 0:2.0.4-10jpp.3
+- Added gcj support
+- Fix up per Fedora spec
+- Added source locations/generation methods for binary %%SOURCEes
+- Added workaround for gcj bug that causes plugin reload to fail
+
+* Wed Dec 13 2006 Deepak Bhole <dbhole@redhat.com> 2.0.4-10jpp.2
+- Build without bootstrap
+
+* Mon Dec 04 2006 Deepak Bhole <dbhole@redhat.com> 2.0.4-10jpp.1
+- Synch with jpp
+- From dbhole@redhat:
+  - Added a new mapping system
+  - Added a jpp howto
+  - Added support for plugin mixing
+  - Wired in /usr/share/maven2/repository as one of the default repos
+  - Moved poms over to maven2-common-poms
+  - Reverted to original plugin groupid's
+  - Installer maven-{artifact-ant,embedder,meeper,script}
+- From r.apel@r-apel.de:
+  - Fix maven-site-plugin pom in maven2-jpp-mapping.patch
+  - Add maven-shared-file-management to plugin-assembly Requires 
+  - Add post/postun Requires for javadoc
+
+* Wed Jul 12 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.0.4-4jpp_1rh
+- Merge with upstream
+
+* Mon Jul 10 2006 Deepak Bhole <dbhole@redhat.com> - 0:2.0.4-4jpp
+- Additional fixes (mostly to the dependency transformer xsl) for itests.
+- Added a --with regereratedpoms switch.
+
+* Wed Jul 05 2006 Deepak Bhole <dbhole@redhat.com> - 0:2.0.4-3jpp
+- Added partial support for it tests, and appropriate fixes.
+
+* Thu Jun 29 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.0.4-2jpp_2rh
+- Rebuild
+
+* Tue Jun 27 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.0.4-2jpp_1rh
+- Full build
+
+* Mon Jun 26 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.0.4-2jpp_0rh
+- Merge with upstream
+- Bootstrap building
+
+* Thu Jun 22 2006 Deepak Bhole <dbhole@redhat.com> - 0:2.0.4-2jpp
+- Fixes for Tuscany building
+
+* Fri Jun 02 2006 Deepak Bhole <dbhole@redhat.com> - 0:2.0.4-1jpp
+- Upgrade to 2.0.4
+
+* Wed May 31 2006 Fernando Nasser <fnasser@redhat.com> - 0:2.0.2-1jpp_1rh
+- First Red Hat build
+
+* Wed Feb 22 2006 Deepak Bhole <dbhole@redhat.com> - 0:2.0.2-1jpp
+- Initial build.
This page took 0.340736 seconds and 4 git commands to generate.