rpms/maven-shared/devel maven-shared-addjunitdep.xml, NONE, 1.1 maven-shared-mapdeps.xsl, NONE, 1.1 maven-shared-plugin-testing-harness-pom.patch, NONE, 1.1 maven-shared-pom.xml, NONE, 1.1 maven-shared.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Deepak Bhole (dbhole)
fedora-extras-commits at redhat.com
Tue Mar 20 03:54:45 UTC 2007
Author: dbhole
Update of /cvs/extras/rpms/maven-shared/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22281/devel
Modified Files:
.cvsignore sources
Added Files:
maven-shared-addjunitdep.xml maven-shared-mapdeps.xsl
maven-shared-plugin-testing-harness-pom.patch
maven-shared-pom.xml maven-shared.spec
Log Message:
auto-import maven-shared-1.0-4jpp.1.fc7 on branch devel from maven-shared-1.0-4jpp.1.fc7.src.rpm
--- NEW FILE maven-shared-addjunitdep.xml ---
<dependencies>
<add>
<dependency>
<groupId>JPP</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
</add>
</dependencies>
--- NEW FILE maven-shared-mapdeps.xsl ---
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="map" />
<xsl:output method="xml" indent="yes" omit-xml-declaration="no"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/*[name()='project']|/*[name()='model']">
<xsl:element name="{name()}">
<!-- Replace artifact/group/version/etc. for current project -->
<xsl:variable name="artifact" select="./*[name()='artifactId']"/>
<xsl:variable name="group" select="./*[name()='groupId']"/>
<xsl:variable name="parentGroup" select="./*[name()='parent']/*[name()='groupId']"/>
<xsl:choose>
<xsl:when test="(document($map)//dependency/maven[(./artifactId/text() = $artifact) and (./groupId/text() = $group)])">
<xsl:for-each select="document($map)//dependency/maven[(./artifactId/text() = $artifact) and (./groupId/text() = $group)][1]">
<xsl:if test="../jpp">
<xsl:copy-of select="../jpp/*"/>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<!-- Maybe parent group matches? -->
<xsl:when test="(document($map)//dependency/maven[(./artifactId/text() = $artifact) and (./groupId/text() = $parentGroup)])">
<xsl:for-each select="document($map)//dependency/maven[(./artifactId/text() = $artifact) and (./groupId/text() = $parentGroup)][1]">
<xsl:if test="../jpp">
<xsl:copy-of select="../jpp/*"/>
</xsl:if>
</xsl:for-each>
</xsl:when>
<!-- Nothing matched -->
<xsl:otherwise>
<xsl:copy-of select="*[name() = 'artifactId']"/>
<xsl:copy-of select="*[name() = 'groupId']"/>
<xsl:copy-of select="*[name() = 'id']"/>
<xsl:copy-of select="*[name() = 'version']"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<!-- In the parent, replace groupid/artifactid/version-->
<xsl:for-each select="./*[name()='parent']">
<xsl:apply-templates select="."/>
</xsl:for-each>
<!-- Copy rest -->
<xsl:for-each select="./*">
<xsl:if test="(name() != 'dependencies') and (name() != 'dependencyManagement') and (name() != 'modelVersion') and (name() != 'parent') and (name() != 'build') and (name() != 'profiles') and (name() != 'artifactId') and (name() != 'groupId') and (name() != 'id') and (name() != 'version')">
<xsl:copy-of select="." />
</xsl:if>
</xsl:for-each>
<!-- If no dependencies exist, add just the <add> items -->
<xsl:if test="not(./*[name()='dependencies'])">
<xsl:element name="dependencies">
<xsl:for-each select="document($map)//add/dependency">
<xsl:copy-of select="." />
</xsl:for-each>
</xsl:element>
</xsl:if>
<!-- Do not remove this! Maven code has a string match for
"<modelVersion>4.0.0" which fails if the line below is
removed (because without it, the ns attribute would be
added to the modelVersion tag) -->
<xsl:for-each select="./*[name()='modelVersion']">
<xsl:element name="{name()}">
<xsl:value-of select="text()" />
</xsl:element>
</xsl:for-each>
<!-- Apply templates to rest -->
<xsl:apply-templates select="*[name()='build']"/>
<xsl:apply-templates select="*[name()='profiles']"/>
<xsl:apply-templates select="*[name()='dependencies']"/>
<xsl:element name="dependencyManagement">
<xsl:for-each select="*[name()='dependencyManagement']">
<xsl:apply-templates select="*[name()='dependencies']"/>
</xsl:for-each>
</xsl:element>
</xsl:element>
</xsl:template>
<!-- In each of the dependencies, update groupid/artifactid/version -->
<xsl:template match="*[name()='dependencies']">
<xsl:element name="dependencies">
<xsl:for-each select="*[name()='dependency']">
<xsl:if test="*[name()='artifactId']">
<xsl:call-template name="replace">
<xsl:with-param name="artifact" select="*[name()='artifactId']/text()"/>
<xsl:with-param name="group" select="*[name()='groupId']/text()"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="*[name()='id']">
<xsl:choose>
<xsl:when test="substring-after(*[name()='id']/text(),':') != ''">
<xsl:call-template name="replace">
<xsl:with-param name="artifact" select="substring-after(*[name()='id']/text(),':')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="replace">
<xsl:with-param name="artifact" select="*[name()='id']/text()"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="not(*[name()='artifactId'])">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="document($map)//add/dependency">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:element>
</xsl:template>
<!-- Standard replacement template for dependencies -->
<xsl:template name="replace">
<xsl:param name="artifact"/>
<xsl:param name="group"/>
<xsl:variable name="this" select="."/>
<xsl:choose>
<xsl:when test="(document($map)//dependency/maven[(./artifactId/text() = $artifact) and (./groupId/text() = $group)])">
<xsl:for-each select="document($map)//dependency/maven[(./artifactId/text() = $artifact) and (./groupId/text() = $group)][1]">
<xsl:if test="../jpp">
<xsl:element name="dependency">
<xsl:copy-of select="../jpp/*"/>
<xsl:for-each select="$this/*">
<xsl:if test="(name() != 'groupId') and (name() != 'artifactId') and (name() != 'id') and (name() != 'version')">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:element>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:element name="dependency">
<xsl:copy-of select="./*"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="document($map)//dependency/maven[./artifactId/text() = $artifact]">
<xsl:for-each select="document($map)//dependency/maven[./artifactId/text() = $artifact][1]">
<xsl:for-each select="../add/dependency">
<xsl:element name="dependency">
<xsl:copy-of select="./*"/>
</xsl:element>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</xsl:template>
<!-- In the parent, replace groupid/artifactid/version-->
<xsl:template match="*[name()='parent']">
<xsl:element name="parent">
<xsl:for-each select=".">
<xsl:if test="*[name()='artifactId']">
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="*[name()='artifactId']/text()"/>
<xsl:with-param name="group" select="*[name()='groupId']/text()"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="*[name()='id']">
<xsl:choose>
<xsl:when test="substring-after(*[name()='id']/text(),':') != ''">
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="substring-after(*[name()='id']/text(),':')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="*[name()='id']/text()"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="not(*[name()='artifactId'])">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:element>
</xsl:template>
<!-- In build element, replace plugin and extension groupid/artifactid/version -->
<xsl:template match="*[name()='build']">
<xsl:element name="build">
<xsl:for-each select="./*">
<xsl:choose>
<xsl:when test="(name() != 'plugins') and (name() != 'extensions')">
<xsl:copy-of select="." />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:element>
</xsl:template>
<!-- Go through profiles and apply build replacement templates -->
<xsl:template match="*[name()='profiles']">
<xsl:element name="profiles">
<xsl:for-each select="./*">
<xsl:choose>
<xsl:when test="name() != 'profile'">
<xsl:copy-of select="." />
</xsl:when>
<xsl:otherwise>
<xsl:element name="profile">
<xsl:for-each select="./*">
<xsl:choose>
<xsl:when test="(name() != 'build') and (name() != 'dependencies')">
<xsl:copy-of select="." />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:element>
</xsl:template>
<!-- In plugin info, update groupid/artifactid/version -->
<xsl:template match="*[name()='plugins']">
<xsl:element name="plugins">
<xsl:for-each select="*[name()='plugin']">
<xsl:element name="plugin">
<xsl:if test="*[name()='artifactId']">
<xsl:variable name="group">
<xsl:choose>
<xsl:when test="*[name()='groupId']"><xsl:value-of select="*[name()='groupId']/text()"/></xsl:when>
<xsl:otherwise>org.apache.maven.plugins<xsl:element name="org.apache.maven.plugins"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="*[name()='artifactId']/text()"/>
<xsl:with-param name="group" select="$group"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="*[name()='id']">
<xsl:choose>
<xsl:when test="substring-after(*[name()='id']/text(),':') != ''">
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="substring-after(*[name()='id']/text(),':')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="*[name()='id']/text()"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="not(*[name()='artifactId'])">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:element>
</xsl:for-each>
<xsl:for-each select="*[name()!='plugin']">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:element>
</xsl:template>
<!-- In extension info, update groupid/artifactid/version -->
<xsl:template match="*[name()='extensions']">
<xsl:element name="extensions">
<xsl:for-each select="*[name()='extension']">
<xsl:element name="extension">
<xsl:if test="*[name()='artifactId']">
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="*[name()='artifactId']/text()"/>
<xsl:with-param name="group" select="*[name()='groupId']/text()"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="*[name()='id']">
<xsl:choose>
<xsl:when test="substring-after(*[name()='id']/text(),':') != ''">
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="substring-after(*[name()='id']/text(),':')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="replaceNonDep">
<xsl:with-param name="artifact" select="*[name()='id']/text()"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="not(*[name()='artifactId'])">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:element>
</xsl:for-each>
<xsl:for-each select="*[name()!='extension']">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:element>
</xsl:template>
<!-- Standard template for replacing items that are not <dependency> items -->
<xsl:template name="replaceNonDep">
<xsl:param name="artifact"/>
<xsl:param name="group"/>
<xsl:variable name="this" select="."/>
<xsl:choose>
<xsl:when test="(document($map)//dependency/maven[(./artifactId/text() = $artifact) and (./groupId/text() = $group)])">
<xsl:for-each select="document($map)//dependency/maven[(./artifactId/text() = $artifact) and (./groupId/text() = $group)][1]">
<xsl:if test="../jpp">
<xsl:copy-of select="../jpp/*"/>
<xsl:for-each select="$this/*">
<xsl:if test="(name() != 'groupId') and (name() != 'artifactId') and (name() != 'id') and (name() != 'version')">
<xsl:choose>
<xsl:when test="name()='dependencies'">
<xsl:apply-templates select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="./*">
<xsl:choose>
<xsl:when test="name()='dependencies'">
<xsl:apply-templates select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
maven-shared-plugin-testing-harness-pom.patch:
--- NEW FILE maven-shared-plugin-testing-harness-pom.patch ---
--- maven-plugin-testing-harness-1.0-beta-1/pom.xml.sav 2006-09-12 17:59:31.000000000 +0200
+++ maven-plugin-testing-harness-1.0-beta-1/pom.xml 2006-09-12 18:00:23.000000000 +0200
@@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
- <artifactId>maven-shared-components</artifactId>
+ <artifactId>shared-components-parent</artifactId>
<groupId>org.apache.maven.shared</groupId>
<version>1</version>
</parent>
--- NEW FILE maven-shared-pom.xml ---
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
xsi:noNamespaceSchemaLocation="http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven-parent</artifactId>
<version>4</version>
<relativePath>../pom/maven/pom.xml</relativePath>
</parent>
-->
<groupId>org.apache.maven.shared</groupId>
<artifactId>shared-components-parent</artifactId>
<packaging>pom</packaging>
<version>1</version>
<name>Maven Shared Components</name>
<description>Maven shared components</description>
<url>http://maven.apache.org/shared/</url>
<issueManagement>
<system>jira</system>
<url>http://jira.codehaus.org/browse/MNG</url>
</issueManagement>
<distributionManagement>
<site>
<id>website</id>
<url>scp://minotaur.apache.org/www/maven.apache.org/shared/</url>
</site>
</distributionManagement>
<modules>
<!--
<module>maven-archiver</module>
<module>maven-model-converter</module>
<module>maven-shared-io</module>
<module>maven-shared-monitor</module>
-->
<module>file-management-1.0</module>
<module>maven-plugin-testing-harness-1.0-beta-1</module>
</modules>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/shared/trunk/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/shared/trunk/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/maven/shared/trunk/</url>
</scm>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagBase>https://svn.apache.org/repos/asf/maven/shared/tags</tagBase>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
--- NEW FILE maven-shared.spec ---
# 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_gcj_support 1
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
Summary: Maven Shared Components
URL: http://maven.apache.org/shared/
# svn export
# http://svn.apache.org/repos/asf/maven/shared/tags/file-management-1.0/
# tar czf maven-shared-file-management-1.0.tar.gz file-management-1.0/
Source0: maven-shared-file-management-1.0.tar.gz
Source1: %{name}-mapdeps.xsl
Source2: %{name}-addjunitdep.xml
Source3: %{name}-pom.xml
# svn export
# http://svn.apache.org/repos/asf/maven/shared/tags/maven-plugin-testing-harness-1.0-beta-1/
# tar czf maven-plugin-testing-harness-1.0-beta-1.tar.gz
# maven-plugin-testing-harness-1.0-beta-1/
Source4: maven-plugin-testing-harness-1.0-beta-1.tar.gz
Patch1: maven-shared-plugin-testing-harness-pom.patch
Name: maven-shared
Version: 1.0
Release: 4jpp.1%{?dist}
Epoch: 0
License: Apache Software License
Group: Development/Libraries
BuildRequires: jpackage-utils >= 0:1.7.2
BuildRequires: maven2 >= 0:2.0.4-9
BuildRequires: maven2-plugin-compiler
BuildRequires: maven2-plugin-install
BuildRequires: maven2-plugin-jar
BuildRequires: maven2-plugin-javadoc
BuildRequires: maven2-plugin-release
BuildRequires: maven2-plugin-resources
BuildRequires: maven2-plugin-surefire
BuildRequires: junit
BuildRequires: saxon
BuildRequires: saxon-scripts
BuildRequires: plexus-utils
BuildRequires: modello-maven-plugin
Requires: maven2 >= 0:2.0.4-9
%if %{gcj_support}
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif
%if ! %{gcj_support}
BuildArch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): jpackage-utils >= 0:1.7.2
Requires(postun): jpackage-utils >= 0:1.7.2
%description
Maven Shared Components
%package file-management
Summary: Maven Shared File Management API
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: plexus-utils
Requires: junit
%description file-management
%{summary}.
%package file-management-javadoc
Summary: Javadoc for %{name}-file-management
Group: Development/Documentation
%description file-management-javadoc
%{summary}.
%package plugin-testing-harness
Summary: Maven Shared Plugin Testing Harness
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
%description plugin-testing-harness
%{summary}.
%package plugin-testing-harness-javadoc
Summary: Javadoc for %{name}-plugin-testing-harness
Group: Development/Documentation
%description plugin-testing-harness-javadoc
%{summary}.
%prep
%setup -q -c -n %{name}-%{version}
gzip -dc %{SOURCE4} | tar xf -
chmod -R go=u-w *
%patch1 -b .sav
mkdir external_repo
ln -s %{_javadir} external_repo/JPP
%build
[ -z "$JAVA_HOME" ] && JAVA_HOME=%{_jvmdir}/java
export JAVA_HOME
cp -p file-management-1.0/pom.xml{,.withoutjunit}
saxon -o file-management-1.0/pom.xml file-management-1.0/pom.xml.withoutjunit \
/usr/share/java-utils/xml/maven2jpp-mapdeps.xsl map=%{SOURCE2}
cp -p %{SOURCE3} pom.xml
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL
mvn-jpp \
-e \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.test.failure.ignore=true \
install javadoc:javadoc
%install
rm -rf $RPM_BUILD_ROOT
# main package infrastructure
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/maven-shared
install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/maven2/poms
# poms
install -pm 644 pom.xml \
$RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP.maven-shared-components-parent.pom
%add_to_maven_depmap org.apache.maven.shared shared-components-parent 1 JPP/maven-shared components-parent
install -pm 644 file-management-%{version}/pom.xml \
$RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP.maven-shared-file-management.pom
%add_to_maven_depmap org.apache.maven.shared file-management 1.0 JPP/maven-shared file-management
install -pm 644 maven-plugin-testing-harness-1.0-beta-1/pom.xml \
$RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP.maven-shared-plugin-testing-harness.pom
%add_to_maven_depmap org.apache.maven.shared maven-plugin-testing-harness 1.0-beta-1 JPP/maven-shared plugin-testing-harness
# subpackage jars
install -p -m 0644 \
file-management-%{version}/target/file-management-%{version}.jar \
$RPM_BUILD_ROOT%{_javadir}/maven-shared
pushd $RPM_BUILD_ROOT%{_javadir}/maven-shared
ln -sf file-management-%{version}.jar file-management.jar
popd
install -p -m 0644 \
maven-plugin-testing-harness-1.0-beta-1/target/maven-plugin-testing-harness-1.0-beta-1.jar \
$RPM_BUILD_ROOT%{_javadir}/maven-shared/plugin-testing-harness-%{version}.jar
pushd $RPM_BUILD_ROOT%{_javadir}/maven-shared
ln -sf plugin-testing-harness-%{version}.jar plugin-testing-harness.jar
popd
# javadoc
install -d -m 755 \
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-file-management-%{version}
cp -pr file-management-%{version}/target/site/apidocs/* \
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-file-management-%{version}
ln -s %{name}-file-management-%{version} \
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-file-management
install -d -m 755 \
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-plugin-testing-harness-%{version}
cp -pr maven-plugin-testing-harness-1.0-beta-1/target/site/apidocs/* \
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-plugin-testing-harness-%{version}
ln -s %{name}-plugin-testing-harness-%{version} \
$RPM_BUILD_ROOT%{_javadocdir}/%{name}-plugin-testing-harness
%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%if %{gcj_support}
%post file-management
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%if %{gcj_support}
%postun file-management
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%if %{gcj_support}
%post plugin-testing-harness
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%if %{gcj_support}
%postun plugin-testing-harness
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%defattr(-,root,root,-)
%dir %{_javadir}/maven-shared
%dir %{_datadir}/maven2/poms
%{_datadir}/maven2/poms/JPP.maven-shared-components-parent.pom
%{_mavendepmapfragdir}
%config(noreplace) /etc/maven/fragments/maven-shared
%files file-management
%defattr(-,root,root,-)
%{_javadir}/maven-shared/file-management*.jar
%{_datadir}/maven2/poms/JPP.maven-shared-file-management.pom
%if %{gcj_support}
%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/file-management*-%{version}.jar.*
%endif
%files plugin-testing-harness
%defattr(-,root,root,-)
%{_javadir}/maven-shared/plugin-testing-harness*.jar
%{_datadir}/maven2/poms/JPP.maven-shared-plugin-testing-harness.pom
%if %{gcj_support}
%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/plugin-testing-harness*-%{version}.jar.*
%endif
%files file-management-javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-file-management*
%files plugin-testing-harness-javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-plugin-testing-harness*
%changelog
* Tue Feb 27 2007 Tania Bento <tbento at redhat.com> 0:1.0-4jpp.1
- Fixed %%Release.
- Fixed %%BuildRoot.
- Removed %%Vendor.
- Removed %%Distribution.
- Removed %%post and %%postun sections for file-management-javadoc.
- Removed %%post and %%postun sections for plugin-testing-harness-javadoc.
- Defined _with_gcj_support and gcj_support.
- Fixed %%License.
- Fixed %%Group.
- Marked config file with %%config(noreplace) in %%files section.
- Fixed instructions on how to generate source drop.
* Fri Oct 27 2006 Deepak Bhole <dbhole at redhat.com> 1.0-4jpp
- Update for maven 9jpp
* Fri Sep 15 2006 Deepak Bhole <dbhole at redhat.com> 1.0-3jpp
- Removed the file-management-pom.patch (no longer required)
- Install poms
* Wed Sep 13 2006 Ralph Apel <r.apel at r-apel.de> 0:1.0-2jpp
- Add plugin-testing-harness subpackage
* Mon Sep 11 2006 Ralph Apel <r.apel at r-apel.de> 0:1.0-1jpp
- First release
- Add gcj_support option
- Add post/postun Requires for javadoc
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/maven-shared/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 13 Mar 2007 11:12:15 -0000 1.1
+++ .cvsignore 20 Mar 2007 03:54:13 -0000 1.2
@@ -0,0 +1,2 @@
+maven-plugin-testing-harness-1.0-beta-1.tar.gz
+maven-shared-file-management-1.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/maven-shared/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 13 Mar 2007 11:12:15 -0000 1.1
+++ sources 20 Mar 2007 03:54:13 -0000 1.2
@@ -0,0 +1,2 @@
+aec914cb2efb6fe296cef1b902b2e663 maven-plugin-testing-harness-1.0-beta-1.tar.gz
+aacddc6818a5fa633aafb0e9ca05a8bb maven-shared-file-management-1.0.tar.gz
More information about the fedora-extras-commits
mailing list