[Jpackage-commits] rpms/devel/plexus-cipher plexus-cipher-1.7-build.xml, NONE, 1.1 plexus-cipher-1.7-maven-build.properties, NONE, 1.1 plexus-cipher-1.7-maven-build.xml, NONE, 1.1 plexus-cipher-jpp-depmap.xml, NONE, 1.1 plexus-cipher-pom.patch, NONE, 1.1 plexus-cipher.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Thu Oct 20 23:52:10 CEST 2011


Update of /home/projects/jpackage/cvs/rpms/devel/plexus-cipher
In directory ryu.zarb.org:/tmp/x1saMwd5tY/rpms/devel/plexus-cipher

Added Files:
	plexus-cipher-1.7-build.xml 
	plexus-cipher-1.7-maven-build.properties 
	plexus-cipher-1.7-maven-build.xml plexus-cipher-jpp-depmap.xml 
	plexus-cipher-pom.patch plexus-cipher.spec 
Log Message:
1.7-1.jpp6

--- NEW FILE: plexus-cipher-1.7-maven-build.xml ---

--- NEW FILE: plexus-cipher-1.7-maven-build.properties ---

--- NEW FILE: plexus-cipher.spec ---
# Copyright (c) 2000-2011, 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.
#

%bcond_without maven

%define section free

Name:           plexus-cipher
Version:        1.7
Release:        1%{?dist}
Epoch:          0
Summary:        Plexus Cipher
License:        ASL 2.0
Group:          Development/Java
URL:            http://plexus.codehaus.org/
# git clone git://github.com/sonatype/plexus-cipher.git
# cd plexus-cipher/
# git archive plexus-cipher-1.7 > ../plexus-cipher-1.7.tar
# bzip2 ../plexus-cipher-1.7.tar

Source0:        plexus-cipher-1.7.tar.bz2
Source1:        plexus-cipher-1.7-build.xml
Source2:        plexus-cipher-1.7-maven-build.properties
Source3:        plexus-cipher-1.7-maven-build.xml
Source4:        %{name}-jpp-depmap.xml

Patch0:         plexus-cipher-pom.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch:      noarch

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  ant
BuildRequires:  apache-commons-parent

%if %with maven
BuildRequires:  maven2 >= 2.0.8
BuildRequires:  maven2-plugin-ant
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  maven-surefire-provider-junit
BuildRequires:  maven-doxia
BuildRequires:  maven-doxia-sitetools
BuildRequires:  maven2-common-poms >= 1.0
BuildRequires:  maven-release
BuildRequires:  google-guice
BuildRequires:  sisu-maven-plugin
BuildRequires:  sisu2
%endif

Requires:  java >= 0:1.6.0
Requires:  google-guice
Requires:  sisu-maven-plugin
Requires:  sisu2
Requires(post):    jpackage-utils >= 0:1.7.5
Requires(postun):  jpackage-utils >= 0:1.7.5

%description
The Plexus project seeks to create end-to-end developer tools for 
writing applications. At the core is the container, which can be 
embedded or for a full scale application server. There are many 
reusable components for hibernate, form processing, jndi, i18n, 
velocity, etc. Plexus also includes an application server which 
is like a J2EE application server, without all the baggage.

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

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
cp %{SOURCE1} build.xml
cp %{SOURCE2} maven-build.properties
cp %{SOURCE3} maven-build.xml
%patch0 -b .sav0

%build
%if %{with_maven}
export MAVEN_REPO_LOCAL=`pwd`/.m2/repository

mvn-jpp -e \
    -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
    -Dmaven2.jpp.depmap.file=%{SOURCE4} \
    ant:ant install javadoc:javadoc

%else
export OPT_JAR_LIST=:
export CLASSPATH=target/classes:target/test-classes
%{ant} -Dbuild.sysclasspath=only jar javadoc
%endif


%install
rm -rf %{buildroot}

# jars
install -d -m 755 %{buildroot}%{_javadir}
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus plexus-cipher %{version} JPP %{name}
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -s ${jar} `/bin/echo $jar | sed  "s|-%{version}||g"`; done)

# pom
mkdir -p %{buildroot}%{_datadir}/maven2/poms
cp -p pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom

# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%clean
rm -rf %{buildroot}

%post
%update_maven_depmap

%postun
%update_maven_depmap

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

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

%changelog
* Thu Oct 20 2011 Ralph Apel <r.apel at r-apel.de> 0:1.7-1
- First release


--- NEW FILE: plexus-cipher-1.7-build.xml ---

--- NEW FILE: plexus-cipher-jpp-depmap.xml ---
<dependencies>
<dependency>
    <maven>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.2</version>
    </maven>
    <jpp>
        <groupId>JPP</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.2</version>
    </jpp>
</dependency>

<dependency>
    <maven>
        <groupId>org.apache.maven.shared</groupId>
        <artifactId>maven-common-artifact-filters</artifactId>
        <version>1.3</version>
    </maven>
    <jpp>
        <groupId>JPP</groupId>
        <artifactId>maven-common-artifact-filters</artifactId>
        <version>1.3</version>
    </jpp>
</dependency>

<dependency>
    <maven>
        <groupId>org.sonatype.sisu</groupId>
        <artifactId>sisu-inject-bean</artifactId>
        <version>2.2.0</version>
    </maven>
    <jpp>
        <groupId>JPP/sisu2</groupId>
        <artifactId>sisu-inject-bean</artifactId>
        <version>2.2.1</version>
    </jpp>
</dependency>
<dependency>
    <maven>
        <groupId>org.sonatype.sisu.inject</groupId>
        <artifactId>guice-bean-reflect</artifactId>
        <version>2.2.0</version>
    </maven>
    <jpp>
        <groupId>JPP/sisu2</groupId>
        <artifactId>guice-bean-reflect</artifactId>
        <version>2.2.1</version>
    </jpp>
</dependency>
<dependency>
    <maven>
        <groupId>org.sonatype.sisu.inject</groupId>
        <artifactId>guice-bean-scanners</artifactId>
        <version>2.2.0</version>
    </maven>
    <jpp>
        <groupId>JPP/sisu2</groupId>
        <artifactId>guice-bean-scanners</artifactId>
        <version>2.2.1</version>
    </jpp>
</dependency>
<dependency>
    <maven>
        <groupId>org.sonatype.sisu.inject</groupId>
        <artifactId>guice-bean-converters</artifactId>
        <version>2.2.0</version>
    </maven>
    <jpp>
        <groupId>JPP/sisu2</groupId>
        <artifactId>guice-bean-converters</artifactId>
        <version>2.2.1</version>
    </jpp>
</dependency>
<dependency>
    <maven>
        <groupId>org.sonatype.sisu.inject</groupId>
        <artifactId>guice-bean-locators</artifactId>
        <version>2.2.0</version>
    </maven>
    <jpp>
        <groupId>JPP/sisu2</groupId>
        <artifactId>guice-bean-locators</artifactId>
        <version>2.2.1</version>
    </jpp>
</dependency>

</dependencies>

--- NEW FILE: plexus-cipher-pom.patch ---
--- pom.xml.sav0	2011-07-26 20:05:27.000000000 +0200
+++ pom.xml	2011-10-15 21:49:01.000000000 +0200
@@ -30,6 +30,7 @@
           <artifactId>maven-surefire-plugin</artifactId>
           <version>2.9</version>
         </plugin>
+<!--
         <plugin>
           <groupId>org.eclipse.m2e</groupId>
           <artifactId>lifecycle-mapping</artifactId>
@@ -55,6 +56,7 @@
             </lifecycleMappingMetadata>
           </configuration>
         </plugin>
+-->
       </plugins>
     </pluginManagement>
 
@@ -97,7 +99,6 @@
           </execution>
         </executions>
       </plugin>
-
       <plugin>
         <groupId>org.sonatype.plugins</groupId>
         <artifactId>sisu-maven-plugin</artifactId>
@@ -122,9 +123,16 @@
       <scope>provided</scope>
     </dependency>
     <dependency>
+      <groupId>com.google.inject</groupId>
+      <artifactId>guice</artifactId>
+      <version>2.0</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <version>3.8.2</version>
+      <scope>test</scope>
     </dependency>
   </dependencies>
 




More information about the JPackage-commits mailing list