[Jpackage-commits] rpms/free/greenmail greenmail-1.3.1b.pom, NONE, 1.1 greenmail.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Thu Jul 2 17:48:19 CEST 2009


Update of /home/projects/jpackage/cvs/rpms/free/greenmail
In directory ryu.zarb.org:/tmp/ViL6J2UMLH/rpms/free/greenmail

Added Files:
	greenmail-1.3.1b.pom greenmail.spec 
Log Message:
1.3.1-2.jpp6

--- NEW FILE: greenmail-1.3.1b.pom ---
<?xml version='1.0'?>

<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>
  <name>== GreenMail ==</name>
  <description>GreenMail - Email Test Servers</description>
  <url>http://www.icegreen.com/greenmail/</url>
  <inceptionYear>2006</inceptionYear>
  
  <groupId>com.icegreen</groupId>
  <artifactId>greenmail</artifactId>
  <packaging>jar</packaging>
  <!-- This version should get inherited to all subprojects. -->
  <version>1.3.1b</version>
  
  <licenses>
    <license>
      <name>Apache 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <scm>
    <connection>
      scm:svn:http://greenmail.svn.sourceforge.net/svnroot/greenmail/trunk
    </connection>
    <developerConnection>
      scm:svn:https://greenmail.svn.sourceforge.net/svnroot/greenmail/trunk
    </developerConnection>
    <url>
      http://greenmail.svn.sourceforge.net/svnroot/greenmail/trunk
    </url>
  </scm>
  
  <issueManagement>
    <url>http://sourceforge.net/tracker/?group_id=159695</url>
  </issueManagement>
  
  <!-- details about the organization that 'owns' the project -->
  <organization>
    <name>Icegreen Technologies</name>
    <url>http://www.icegreen.com</url>
  </organization>
  
  
  <dependencies>
    <!-- Compile scope (=default) -->
    <dependency>
      <groupId>javax.mail</groupId>
      <artifactId>mail</artifactId>
      <version>1.4</version>
    </dependency>

    <dependency> <!-- SLF4J Core -->
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.3.1</version>
    </dependency>

    <!-- Test scope -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>1.3.1</version>
        <scope>test</scope>
    </dependency>
  </dependencies>
  
  <!-- who the developers are for the project -->
  <developers>
    <developer>
      <name>Wael Chatila</name>
      <id>waelc</id>
      <email>see my blog</email>
      <url>http://waelchatila.com</url>
      <organization>IceGreen Technologies</organization>
      <organizationUrl>http://www.icegreen.com</organizationUrl>
      <roles>
        <role>Lead Developer</role>
      </roles>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>Stephen Fenech</name>
      <properties>
        <id>zegon</id>
      </properties>
      <email></email>
      <url></url>
    </contributor>
    <contributor>
      <name>Marcel May</name>
      <properties>
        <id>marcel_may</id>
      </properties>
      <email>marcel.may at metacube.net</email>
      <url>http://www.metacube.net</url>
    </contributor>
  </contributors>
  
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>2.0-beta-5</version>
        <configuration>
          <skin>
            <groupId>org.apache.maven.skins</groupId>
            <artifactId>maven-site-skin</artifactId>
            <version>1.0</version>
          </skin>
        </configuration>
      </plugin>
      
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>taglist-maven-plugin</artifactId>
        <version>2.0-beta-1</version>
        
        <configuration>
          <tags>TODO, @todo, FIXME, @deprecated</tags>
        </configuration>
        
      </plugin>
      
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>surefire-report-maven-plugin</artifactId>
        <version>2.0-beta-1</version>
      </plugin>
      
      <plugin>
        <!-- javadoc report -->
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <aggregate>true</aggregate>
          <links>
            <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
            <link>http://java.sun.com/products/javamail/javadocs/</link>
            <link>http://www.junit.org/junit/javadoc/</link>
          </links>
        </configuration>
      </plugin>
      
      <plugin>
        <!--  This report includes a cross-reference of the project's sources. Each source entry is also linked with its corresponding Javadoc (if Javadoc was generated). -->
        <artifactId>maven-jxr-plugin</artifactId>
        <configuration>
          <linkJavadoc>true</linkJavadoc>
          <aggregate>true</aggregate>
        </configuration>
      </plugin>
      
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jdepend-maven-plugin</artifactId>
      </plugin>
      
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.0</version>
        
        <configuration>
          <format>html</format>
          <linkXref>true</linkXref>
          <!--
                    <xrefLocation>xref</xrefLocation>
                    -->
          <sourceEncoding>utf-8</sourceEncoding>
          <minimumTokens>100</minimumTokens>
          <targetJdk>1.5</targetJdk>
        </configuration>
      </plugin>
      
      
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <configuration>
          <threshold>Normal</threshold>
        </configuration>
      </plugin>
      
      <!--This plugin with version 2.0-beta-4-SNAPSHOT is needed to resolve
          problem described in
          http://www.mail-archive.com/users@maven.apache.org/msg32743.html -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <reportSets>
          <reportSet>
            <reports>
              <report>dependencies</report>
              <report>dependency-convergence</report>
              <report>scm</report>
              <report>mailing-list</report>
              <report>cim</report>
              <report>issue-tracking</report>
              <report>license</report>
              <report>project-team</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
    
  </reporting>
  
  <!-- distribution -->
  <!-- TODO
  <distributionManagement>
    <repository>
      <id>repository-sf-greenmail</id>
      <url>scp://HOSTNAME/PATH</url>
    </repository>
    <snapshotRepository>
      <id>snapshot-repository-sf-greenmail</id>
      <url>scp://HOSTNAME/PATH</url>
    </snapshotRepository>
    <site>
      <id>site-sf-greenmail</id>
      <url>scp://HOSTNAME/PATH/TO/HTDOCS</url>
    </site>
  </distributionManagement>
  -->
  
  <build>
    
    <!-- Plugin defaults for all inherited POMs. -->
    <plugins>
      <plugin>
        <!-- http://maven.apache.org/plugins/maven-compile-plugin/plugin-info.html -->
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.4</source>
          <target>1.4</target>
          <debug>true</debug>
        </configuration>
      </plugin>
      <plugin>
        <!-- http://maven.apache.org/plugins/maven-surefire-plugin/plugin-info.html -->
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <!-- once | pertest -->
          <forkMode>once</forkMode>
          <!-- cli -->
          <argLine>-Xmx512m -enableassertions</argLine>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <archive>
            <addMavenDescriptor>false</addMavenDescriptor>
          </archive>
        </configuration>
      </plugin>
      <!-- IDE plugins -->
      <plugin>
        <!-- http://maven.apache.org/plugins/maven-idea-plugin/plugin-info.html -->
        <artifactId>maven-idea-plugin</artifactId>
        <configuration>
          <downloadSources>true</downloadSources>
          <linkModules>true</linkModules>
          <jdkLevel>1.4</jdkLevel>
        </configuration>
      </plugin>
      <plugin>
        <!-- http://maven.apache.org/plugins/maven-eclipse-plugin/plugin-info.html -->
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <downloadSources>true</downloadSources>
        </configuration>
      </plugin>
      
    </plugins>
    
    <sourceDirectory>src/java</sourceDirectory>
    <testSourceDirectory>src/test</testSourceDirectory>
  </build>
  
</project>

--- NEW FILE: greenmail.spec ---
# Copyright (c) 2000-2009, 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 section   free
%define namedversion   1.3.1b

Name:           greenmail
Version:        1.3.1
Release:        2%{?dist}
Epoch:          0
Summary:        Email test server
Group:          Development/Libraries/Java
License:        ASL 2.0
URL:            http://www.icegreen.com/greenmail/
Source0:        http://switch.dl.sourceforge.net/sourceforge/greenmail/greenmail-1.3.1b-src.zip
Source1:        %{name}-%{namedversion}.pom
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch:      noarch
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant
BuildRequires:  junit
BuildRequires:  glassfish-javamail
BuildRequires:  jaf_1_1_api
BuildRequires:  slf4j

Requires:  java >= 0:1.5.0
Requires:  glassfish-javamail
Requires:  jaf_1_1_api
Requires:  slf4j

Requires(post):   jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5

%description
GreenMail is an open source, intuitive and easy-to-use test
suite of email servers for testing purposes.
Supports SMTP, POP3, IMAP with SSL socket support. 
GreenMail also provides a JBoss GreenMail Service.
GreenMail is the fist and only library that offers a test 
framework for both receiving and retrieving emails from Java. 

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

%description    javadoc
%{summary}.

%prep
%setup -q -c
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
pushd lib
ln -sf $(build-classpath slf4j/api) slf4j-api-1.5.6.jar
ln -sf $(build-classpath slf4j/simple) slf4j-simple-1.5.6.jar
ln -sf $(build-classpath glassfish-javamail-monolithic) mail.jar
ln -sf $(build-classpath jaf_1_1_api) activation.jar
ln -sf $(build-classpath junit) junit.jar
popd

%build
export OPT_JAR_LIST=:
export CLASSPATH=
%{ant} all

%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -p -m 644 build/lib/%{name}-%{namedversion}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap com.icegreen %{name} %{namedversion} JPP %{name}

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/%{name}

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

%changelog
* Thu Jul 02 2009 David Walluck <dwalluck at redhat.com> 0:1.3.1-2
- fix BuildRoot

* Fri Jun 12 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.3.1-1.jpp5
- First release 1.3.1b




More information about the JPackage-commits mailing list