rpms/javamail/devel all-1.4.3.pom, NONE, 1.1 dsn-1.4.3.pom, NONE, 1.1 imap-1.4.3.pom, NONE, 1.1 import.log, NONE, 1.1 javamail-cleanup-poms.patch, NONE, 1.1 javamail-parent-distrib.pom, NONE, 1.1 javamail.spec, NONE, 1.1 mail-1.4.3.pom, NONE, 1.1 mailapi-1.4.3.pom, NONE, 1.1 pop3-1.4.3.pom, NONE, 1.1 smtp-1.4.3.pom, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
mef
mef at fedoraproject.org
Mon Jan 11 10:25:22 UTC 2010
Author: mef
Update of /cvs/pkgs/rpms/javamail/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20974/devel
Modified Files:
.cvsignore sources
Added Files:
all-1.4.3.pom dsn-1.4.3.pom imap-1.4.3.pom import.log
javamail-cleanup-poms.patch javamail-parent-distrib.pom
javamail.spec mail-1.4.3.pom mailapi-1.4.3.pom pop3-1.4.3.pom
smtp-1.4.3.pom
Log Message:
Initial import (#543480).
--- NEW FILE all-1.4.3.pom ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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>
<groupId>com.sun.mail</groupId>
<artifactId>all</artifactId>
<packaging>pom</packaging>
<version>1.4.3</version>
<name>JavaMail API distribution</name>
<description>${project.name}</description>
<url>http://java.sun.com/projects/javamail</url>
<licenses>
<license>
<name>CDDL</name>
<url>http://www.sun.com/cddl</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
<license>
<name>GPLv2+CE</name>
<url>https://glassfish.dev.java.net/public/CDDL+GPL.html</url>
<distribution>repo</distribution>
<comments>GPL version 2 plus the Classpath Exception</comments>
</license>
</licenses>
<organization>
<name>Sun Microsystems, Inc.</name>
<url>http://www.sun.com</url>
</organization>
<properties>
<mail.version>1.4.3</mail.version>
<!-- like mail.version, but with underscores instead of dots -->
<mail.zipversion>1_4_3</mail.zipversion>
<mail.spec.version>1.4</mail.spec.version>
<activation-api.version>1.1</activation-api.version>
<!-- defaults that are overridden in mail module -->
<mail.extensionName>
${project.groupId}.${project.artifactId}
</mail.extensionName>
<mail.specificationTitle>
${project.groupId}.${project.artifactId}
</mail.specificationTitle>
<mail.implementationTitle>
${project.groupId}.${project.artifactId}
</mail.implementationTitle>
<mail.packages.export>
javax.mail.*; version=${mail.spec.version}
</mail.packages.export>
<mail.packages.import>
javax.security.sasl;resolution:=optional,
sun.security.util;resolution:=optional,
jcifs.ntlmssp;resolution:=optional,
*
</mail.packages.import>
<mail.packages.private>
com.sun.mail.*
</mail.packages.private>
<mail.probeFile/>
<!-- for the osgiversion-maven-plugin -->
<hk2.plugin.version>0.4.11</hk2.plugin.version>
</properties>
<developers>
<developer>
<id>shannon</id>
<name>Bill Shannon</name>
<organization>Sun Microsystems, Inc.</organization>
<roles>
<role>lead</role>
</roles>
</developer>
</developers>
<modules>
<module>mail</module>
<module>mailapi</module>
<module>smtp</module>
<module>imap</module>
<module>pop3</module>
<module>dsn</module>
</modules>
<profiles>
<!--
This profile contains modules that should only be built
but not installed or deployed.
-->
<profile>
<id>build-only</id>
<modules>
<module>mbox</module>
<module>demo</module>
<module>client</module>
<module>servlet</module>
<module>webapp</module>
<module>taglib</module>
<module>logging</module>
<module>javadoc</module>
</modules>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<!--
Activating this profile manually for deployment causes
the above profile to be deactivated, which works around
an apparent bug in maven that prevents me from manually
deactivating a profile. This profile purposely has none
of the modules I don't want to be deployed.
-->
<profile>
<id>deploy</id>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>java.net-m2-repository</id>
<url>java-net:/maven2-repository/trunk/repository/</url>
<uniqueVersion>false</uniqueVersion>
</repository>
</distributionManagement>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<!--
This plugin is reponsible for packaging artifacts
as OSGi bundles. Please refer to
http://felix.apache.org/site/maven-bundle-plugin-bnd.html
for more information about how to use this plugin.
-->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Export-Package>
${mail.packages.export}
</Export-Package>
<Import-Package>
${mail.packages.import}
</Import-Package>
<Private-Package>
${mail.packages.private}
</Private-Package>
</instructions>
</configuration>
<!--
Since we don't change the packaging type to bundle, we
need to configure the plugin to execute the manifest goal
during the process-classes phase of the build life cycle.
-->
<executions>
<execution>
<id>osgi-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Since we don't want a qualifier like b05 or SNAPSHOT to
appear in the OSGi package version attribute, we use
the following plugin to populate a project property
with an OSGi version that is equivalent to the maven
version without the qualifier.
-->
<plugin>
<groupId>com.sun.enterprise</groupId>
<artifactId>osgiversion-maven-plugin</artifactId>
<version>${hk2.plugin.version}</version>
<configuration>
<dropVersionComponent>qualifier</dropVersionComponent>
<versionPropertyName>mail.osgiversion</versionPropertyName>
</configuration>
<executions>
<execution>
<id>compute-osgi-version</id>
<goals>
<goal>compute-osgi-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<!-- need at least this version to make excludes work -->
<configuration>
<finalName>${project.artifactId}</finalName>
<archive>
<!--
Configure the maven-jar-plugin to pick up
META-INF/MANIFEST.MF that's generated by
the maven-bundle-plugin.
-->
<manifestFile>
${project.build.outputDirectory}/META-INF/MANIFEST.MF
</manifestFile>
<manifestEntries>
<Extension-Name>
${mail.extensionName}
</Extension-Name>
<Specification-Title>
${mail.specificationTitle}
</Specification-Title>
<Specification-Version>
${mail.spec.version}</Specification-Version>
<Specification-Vendor>
${project.organization.name}
</Specification-Vendor>
<Implementation-Title>
${mail.implementationTitle}
</Implementation-Title>
<Implementation-Version>
${project.version}
</Implementation-Version>
<Implementation-Vendor>
${project.organization.name}
</Implementation-Vendor>
<Implementation-Vendor-Id>
com.sun
</Implementation-Vendor-Id>
<Probe-Provider-XML-File-Names>
${mail.probeFile}
</Probe-Provider-XML-File-Names>
</manifestEntries>
</archive>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<!--
This is the rule that creates the zip file for distribution.
-->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<inherited>false</inherited>
<!--
I'd like this to be run as part of the
package phase, but that doesn't work.
Have to run it explicitly as:
mvn package assembly:assembly
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>assembly</goal>
</goals>
-->
<configuration>
<finalName>javamail${mail.zipversion}</finalName>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
<!--
</execution>
</executions>
-->
</plugin>
<!-- not used
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<arguments>-P deploy</arguments>
</configuration>
</plugin>
-->
</plugins>
<pluginManagement>
<plugins>
<plugin>
<!--
By default, disable the FindBugs plugin for all modules.
It's enabled in the "mail" module, which is the only
module where we actually want to run it.
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>RELEASE</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<extensions>
<extension>
<groupId>org.jvnet.wagon-svn</groupId>
<artifactId>wagon-svn</artifactId>
<!--
Following should be:
<version>RELEASE</version>
but Kohsuke says it doesn't work and to replace
it with the actual version number.
-->
<version>1.8</version>
</extension>
</extensions>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>dsn</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>mbox</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>taglib</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>${activation-api.version}</version>
</dependency>
<!-- following works around a bug that causes NullPointerException -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.3.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>glassfish-repo-archive</id>
<name>M2 repo for GlassFish project specific artifacts</name>
<url>http://download.java.net/maven/glassfish/</url>
</pluginRepository>
</pluginRepositories>
</project>
--- NEW FILE dsn-1.4.3.pom ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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">
<parent>
<groupId>com.sun.mail</groupId>
<artifactId>all</artifactId>
<version>1.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sun.mail</groupId>
<artifactId>dsn</artifactId>
<packaging>jar</packaging>
<name>JavaMail API dsn support</name>
<properties>
<mail.packages.export>
com.sun.mail.dsn; version=${mail.version}
</mail.packages.export>
</properties>
<dependencies>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</dependency>
</dependencies>
</project>
--- NEW FILE imap-1.4.3.pom ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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">
<parent>
<groupId>com.sun.mail</groupId>
<artifactId>parent-distrib</artifactId>
<version>1.4.3</version>
<relativePath>../parent-distrib/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sun.mail</groupId>
<artifactId>imap</artifactId>
<packaging>jar</packaging>
<name>JavaMail API imap provider</name>
<properties>
<mail.extraClasses>com/sun/mail/iap/**</mail.extraClasses>
<mail.packages.export>
com.sun.mail.imap; version=${mail.version}
</mail.packages.export>
</properties>
</project>
--- NEW FILE import.log ---
javamail-1_4_3-2_fc12:HEAD:javamail-1.4.3-2.fc12.src.rpm:1263205394
javamail-cleanup-poms.patch:
mail/pom.xml | 36 -----------------------
pom.xml | 89 -----------------------------------------------------------
2 files changed, 125 deletions(-)
--- NEW FILE javamail-cleanup-poms.patch ---
diff -ur javamail-1.4.3.orig/mail/pom.xml javamail-1.4.3/mail/pom.xml
--- javamail-1.4.3.orig/mail/pom.xml 2009-12-02 11:59:14.440289296 +0000
+++ javamail-1.4.3/mail/pom.xml 2009-12-02 11:59:25.329352444 +0000
@@ -81,24 +81,6 @@
<filtering>true</filtering>
</resource>
</resources>
- <plugins>
- <!--
- Configure FindBugs to run with "mvn findbugs:findbugs"
- and generate XML output that can be used by the Hudson
- FindBugs plugin.
- -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <configuration>
- <skip>false</skip>
- <threshold>Normal</threshold>
- <excludeFilterFile>exclude.xml</excludeFilterFile>
- <findbugsXmlOutput>true</findbugsXmlOutput>
- <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
- </configuration>
- </plugin>
- </plugins>
</build>
<dependencies>
@@ -111,22 +93,4 @@
</dependency>
</dependencies>
- <reporting>
- <plugins>
- <!--
- Configure FindBugs to run with "mvn site" and
- generate html output that can be viewed directly.
- -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <configuration>
- <skip>false</skip>
- <threshold>Normal</threshold>
- <excludeFilterFile>exclude.xml</excludeFilterFile>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-
</project>
diff -ur javamail-1.4.3.orig/pom.xml javamail-1.4.3/pom.xml
--- javamail-1.4.3.orig/pom.xml 2009-12-02 11:59:14.441289220 +0000
+++ javamail-1.4.3/pom.xml 2009-12-02 11:59:55.368290231 +0000
@@ -114,10 +114,6 @@
<modules>
<module>mail</module>
- <module>mailapi</module>
- <module>smtp</module>
- <module>imap</module>
- <module>pop3</module>
<module>dsn</module>
</modules>
@@ -188,45 +184,6 @@
</Private-Package>
</instructions>
</configuration>
- <!--
- Since we don't change the packaging type to bundle, we
- need to configure the plugin to execute the manifest goal
- during the process-classes phase of the build life cycle.
- -->
- <executions>
- <execution>
- <id>osgi-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <!--
- Since we don't want a qualifier like b05 or SNAPSHOT to
- appear in the OSGi package version attribute, we use
- the following plugin to populate a project property
- with an OSGi version that is equivalent to the maven
- version without the qualifier.
- -->
- <plugin>
- <groupId>com.sun.enterprise</groupId>
- <artifactId>osgiversion-maven-plugin</artifactId>
- <version>${hk2.plugin.version}</version>
- <configuration>
- <dropVersionComponent>qualifier</dropVersionComponent>
- <versionPropertyName>mail.osgiversion</versionPropertyName>
- </configuration>
- <executions>
- <execution>
- <id>compute-osgi-version</id>
- <goals>
- <goal>compute-osgi-version</goal>
- </goals>
- </execution>
- </executions>
</plugin>
<plugin>
@@ -328,37 +285,6 @@
-->
</plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <!--
- By default, disable the FindBugs plugin for all modules.
- It's enabled in the "mail" module, which is the only
- module where we actually want to run it.
- -->
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>RELEASE</version>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
-
- <extensions>
- <extension>
- <groupId>org.jvnet.wagon-svn</groupId>
- <artifactId>wagon-svn</artifactId>
- <!--
- Following should be:
- <version>RELEASE</version>
- but Kohsuke says it doesn't work and to replace
- it with the actual version number.
- -->
- <version>1.8</version>
- </extension>
- </extensions>
</build>
<dependencyManagement>
@@ -374,16 +300,6 @@
<version>${mail.version}</version>
</dependency>
<dependency>
- <groupId>com.sun.mail</groupId>
- <artifactId>mbox</artifactId>
- <version>${mail.version}</version>
- </dependency>
- <dependency>
- <groupId>com.sun.mail</groupId>
- <artifactId>taglib</artifactId>
- <version>${mail.version}</version>
- </dependency>
- <dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
@@ -397,11 +313,6 @@
</dependencyManagement>
<dependencies>
- <dependency>
- <groupId>javax.activation</groupId>
- <artifactId>activation</artifactId>
- <version>${activation-api.version}</version>
- </dependency>
<!-- following works around a bug that causes NullPointerException -->
<dependency>
<groupId>junit</groupId>
--- NEW FILE javamail-parent-distrib.pom ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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">
<parent>
<groupId>com.sun.mail</groupId>
<artifactId>all</artifactId>
<version>1.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sun.mail</groupId>
<artifactId>parent-distrib</artifactId>
<packaging>pom</packaging>
<name>JavaMail API ${project.artifactId} provider</name>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>process-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactItems>
<artifactItem>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>${mail.version}</version>
</artifactItem>
</artifactItems>
<outputDirectory>
${project.build.outputDirectory}
</outputDirectory>
<includes>
META-INF/LICENSE.txt,
com/sun/mail/${project.artifactId}/**,
${mail.extraClasses}
</includes>
</configuration>
</plugin>
</plugins>
</build>
</project>
--- NEW FILE javamail.spec ---
%global with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
Name: javamail
Version: 1.4.3
Release: 2%{?dist}
Summary: Java Mail API
Group: Development/Libraries
License: CDDL or GPLv2 with exceptions
URL: http://java.sun.com/products/javamail/
# Parent POM
Source0: http://download.java.net/maven/2/com/sun/mail/all/%{version}/all-%{version}.pom
# POMs and source files for things that get built
Source1: http://download.java.net/maven/2/javax/mail/mail/%{version}/mail-%{version}-sources.jar
Source2: http://download.java.net/maven/2/javax/mail/mail/%{version}/mail-%{version}.pom
Source3: http://download.java.net/maven/2/com/sun/mail/dsn/%{version}/dsn-%{version}-sources.jar
Source4: http://download.java.net/maven/2/com/sun/mail/dsn/%{version}/dsn-%{version}.pom
# Additional POMs for things that are provided by the monolithic mail.jar
Source5: http://download.java.net/maven/2/javax/mail/mailapi/%{version}/mailapi-%{version}.pom
Source6: http://download.java.net/maven/2/com/sun/mail/imap/%{version}/imap-%{version}.pom
Source7: http://download.java.net/maven/2/com/sun/mail/pop3/%{version}/pop3-%{version}.pom
Source8: http://download.java.net/maven/2/com/sun/mail/smtp/%{version}/smtp-%{version}.pom
# Parent POM for many of the above
# http://kenai.com/projects/javamail/sources/mercurial/content/parent-distrib/pom.xml?raw=true
Source9: %{name}-parent-distrib.pom
# Remove Maven plugins we don't have yet
# Remove unavailable-on-Fedora dependencies from pom.xml
Patch0: %{name}-cleanup-poms.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: jpackage-utils
BuildRequires: maven2
BuildRequires: maven2-plugin-assembly
BuildRequires: maven2-plugin-compiler
BuildRequires: maven2-plugin-dependency
BuildRequires: maven2-plugin-install
BuildRequires: maven2-plugin-jar
BuildRequires: maven2-plugin-javadoc
BuildRequires: maven2-plugin-resources
BuildRequires: maven2-plugin-site
BuildRequires: maven-plugin-bundle
BuildRequires: maven-surefire-maven-plugin
BuildRequires: tomcat5
BuildRequires: tomcat5-jsp-2.0-api
BuildRequires: java-devel >= 1:1.6.0
Requires: jpackage-utils
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
# Requirements from POMs
Requires: tomcat5-jsp-2.0-api
# Adapted from the classpathx-mail (and JPackage glassfish-javamail) Provides
Provides: javamail-monolithic = 0:%{version}
%if %{with_gcj}
BuildRequires: java-gcj-compat-devel >= 1.0.31
Requires(post): java-gcj-compat >= 1.0.31
Requires(postun): java-gcj-compat >= 1.0.31
%else
BuildArch: noarch
%endif
%description
The JavaMail API provides a platform-independent and protocol-independent
framework to build mail and messaging applications.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation
Requires: jpackage-utils >= 0:1.7.5
BuildArch: noarch
%description javadoc
%{summary}.
%prep
%setup -c -T
mkdir -p mail dsn
(cd mail && jar xvf %SOURCE1 && cp %SOURCE2 ./pom.xml)
(cd dsn && jar xvf %SOURCE3 && cp %SOURCE4 ./pom.xml)
for sub in *; do
pushd $sub
mkdir -p src/main/java src/main/resources
mv META-INF src/main/resources
[ -e com ] && mv com src/main/java
[ -e javax ] && mv javax src/main/java
popd
done
cp %SOURCE0 ./pom.xml
mkdir poms
cp %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 poms
%patch0 -p1
# Convert license file to UTF-8
for file in mail/src/main/resources/META-INF/*.txt; do
iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
touch -r $file $file.new && \
mv $file.new $file
done
%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL
mvn-jpp \
-P deploy \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
package javadoc:javadoc
%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -d -m 755 p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
(cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}-all.pom
%add_to_maven_depmap com.sun.mail all %{version} JPP %{name}-all
# Install everything
for sub in mail dsn; do
install -m 644 $sub/target/$sub.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}/$sub-%{version}.jar
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/$sub/
cp -pr $sub/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/$sub/
done
install -m 644 mail/pom.xml $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}.pom
install -m 644 dsn/pom.xml $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}-dsn.pom
# Install the remaining POMs
for sub in mailapi imap pop3 smtp; do
install -m 644 poms/$sub-%{version}.pom \
$RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}-$sub.pom
done
# Add maven dependency information
%add_to_maven_depmap javax.mail mail %{version} JPP/%{name} mail
%add_to_maven_depmap com.sun.mail dsn %{version} JPP/%{name} dsn
%add_to_maven_depmap javax.mail mailapi %{version} JPP/%{name} mail
%add_to_maven_depmap com.sun.mail imap %{version} JPP/%{name} mail
%add_to_maven_depmap com.sun.mail pop3 %{version} JPP/%{name} mail
%add_to_maven_depmap com.sun.mail smtp %{version} JPP/%{name} mail
install -m 644 poms/%{name}-parent-distrib.pom \
$RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}-parent-distrib.pom
%add_to_maven_depmap com.sun.mail parent-distrib %{version} JPP %{name}
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
%if %{with_gcj}
%{_bindir}/aot-compile-rpm
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post
%update_maven_depmap
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%postun
%update_maven_depmap
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files
%defattr(-,root,root,-)
%doc mail/src/main/resources/META-INF/LICENSE.txt mail/overview.html
%{_javadir}/%{name}
%config(noreplace) %{_mavendepmapfragdir}/*
%{_datadir}/maven2/poms/*.pom
%if %{with_gcj}
%attr(-,root,root) %{_libdir}/gcj/%{name}
%endif
%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%changelog
* Fri Jan 8 2010 Mary Ellen Foster <mefoster at gmail.com> 1.4.3-2
- Remove unnecessary (build)requirement tomcat5-servlet-2.4-api
- Move jar files into subdirectory
* Wed Dec 2 2009 Mary Ellen Foster <mefoster at gmail.com> 1.4.3-1
- Initial package
--- NEW FILE mail-1.4.3.pom ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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">
<parent>
<groupId>com.sun.mail</groupId>
<artifactId>all</artifactId>
<version>1.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<packaging>jar</packaging>
<name>JavaMail API</name>
<properties>
<mail.extensionName>
javax.mail
</mail.extensionName>
<mail.specificationTitle>
JavaMail(TM) API Design Specification
</mail.specificationTitle>
<mail.implementationTitle>
javax.mail
</mail.implementationTitle>
<mail.packages.export>
javax.mail.*; version=${mail.spec.version},
com.sun.mail.imap; version=${mail.osgiversion},
com.sun.mail.pop3; version=${mail.osgiversion},
com.sun.mail.smtp; version=${mail.osgiversion},
com.sun.mail.util; version=${mail.osgiversion},
com.sun.mail.util.logging; version=${mail.osgiversion},
com.sun.mail.handlers; version=${mail.osgiversion}
</mail.packages.export>
<mail.probeFile>
META-INF/gfprobe-provider.xml
</mail.probeFile>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<!--
Configure FindBugs to run with "mvn findbugs:findbugs"
and generate XML output that can be used by the Hudson
FindBugs plugin.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
<threshold>Normal</threshold>
<excludeFilterFile>exclude.xml</excludeFilterFile>
<findbugsXmlOutput>true</findbugsXmlOutput>
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.3.1</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
</dependencies>
<reporting>
<plugins>
<!--
Configure FindBugs to run with "mvn site" and
generate html output that can be viewed directly.
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
<threshold>Normal</threshold>
<excludeFilterFile>exclude.xml</excludeFilterFile>
</configuration>
</plugin>
</plugins>
</reporting>
</project>
--- NEW FILE mailapi-1.4.3.pom ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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">
<parent>
<groupId>com.sun.mail</groupId>
<artifactId>all</artifactId>
<version>1.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>javax.mail</groupId>
<artifactId>mailapi</artifactId>
<packaging>jar</packaging>
<name>JavaMail API jar</name>
<properties>
<mail.packages.export>
javax.mail.*; version=${mail.spec.version},
com.sun.mail.util; version=${mail.version},
com.sun.mail.util.logging; version=${mail.version},
com.sun.mail.handlers; version=${mail.version}
</mail.packages.export>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>process-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactItems>
<artifactItem>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>${mail.version}</version>
</artifactItem>
</artifactItems>
<outputDirectory>
${project.build.outputDirectory}
</outputDirectory>
<includes>
javax/**,
com/sun/mail/util/**,
com/sun/mail/handlers/**,
META-INF/*
</includes>
<excludes>
META-INF/javamail.default.*
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<finalName>${project.artifactId}</finalName>
<archive>
<manifestFile>
${project.build.outputDirectory}/META-INF/MANIFEST.MF
</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
--- NEW FILE pop3-1.4.3.pom ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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">
<parent>
<groupId>com.sun.mail</groupId>
<artifactId>parent-distrib</artifactId>
<version>1.4.3</version>
<relativePath>../parent-distrib/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sun.mail</groupId>
<artifactId>pop3</artifactId>
<packaging>jar</packaging>
<name>JavaMail API pop3 provider</name>
<properties>
<mail.packages.export>
com.sun.mail.pop3; version=${mail.version}
</mail.packages.export>
</properties>
</project>
--- NEW FILE smtp-1.4.3.pom ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common Development
and Distribution License("CDDL") (collectively, the "License"). You
may not use this file except in compliance with the License. You can obtain
a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
language governing permissions and limitations under the License.
When distributing the software, include this License Header Notice in each
file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [year]
[name of copyright owner]"
Contributor(s):
If you wish your version of this file to be governed by only the CDDL or
only the GPL Version 2, indicate your decision by adding "[Contributor]
elects to include this software in this distribution under the [CDDL or GPL
Version 2] license." If you don't indicate a single choice of license, a
recipient has the option to distribute your version of this file under
either the CDDL, the GPL Version 2 or to extend the choice of license to
its licensees as provided above. However, if you add GPL Version 2 code
and therefore, elected the GPL Version 2 license, then the option applies
only if the new code is made subject to such option by the copyright
holder.
-->
<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">
<parent>
<groupId>com.sun.mail</groupId>
<artifactId>parent-distrib</artifactId>
<version>1.4.3</version>
<relativePath>../parent-distrib/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sun.mail</groupId>
<artifactId>smtp</artifactId>
<packaging>jar</packaging>
<name>JavaMail API smtp provider</name>
<properties>
<mail.packages.export>
com.sun.mail.smtp; version=${mail.version}
</mail.packages.export>
</properties>
</project>
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/javamail/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 9 Jan 2010 04:36:29 -0000 1.1
+++ .cvsignore 11 Jan 2010 10:25:21 -0000 1.2
@@ -0,0 +1,2 @@
+dsn-1.4.3-sources.jar
+mail-1.4.3-sources.jar
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/javamail/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 9 Jan 2010 04:36:30 -0000 1.1
+++ sources 11 Jan 2010 10:25:22 -0000 1.2
@@ -0,0 +1,2 @@
+b58478b633703f489b589c2288bf4469 dsn-1.4.3-sources.jar
+4b9994ac98a99fc22e93b93c362a09aa mail-1.4.3-sources.jar
More information about the scm-commits
mailing list