[Jpackage-commits] rpms/free/activeio3 activeio3-HowlJournal.patch, NONE, 1.1.2.1 activeio3-core-pom.patch, NONE, 1.1.2.1 activeio3-jpp-depmap.xml, NONE, 1.1.2.1 activeio3-pom.patch, NONE, 1.1.2.1 activeio3-settings.xml, NONE, 1.1.2.1 activeio3.spec, NONE, 1.1.2.1

jpackage jpackage at ryu.zarb.org
Sat Feb 7 16:32:30 CET 2009


Update of /home/projects/jpackage/cvs/rpms/free/activeio3
In directory ryu.zarb.org:/tmp/1qu7VSh3mc/rpms/free/activeio3

Added Files:
      Tag: JPACKAGE-5_0
	activeio3-HowlJournal.patch activeio3-core-pom.patch 
	activeio3-jpp-depmap.xml activeio3-pom.patch 
	activeio3-settings.xml activeio3.spec 
Log Message:
3.0.1-1.jpp5

--- NEW FILE: activeio3-HowlJournal.patch ---
--- activeio-core/src/main/java/org/apache/activeio/journal/howl/HowlJournal.java.sav	2008-09-02 09:08:10.000000000 +0200
+++ activeio-core/src/main/java/org/apache/activeio/journal/howl/HowlJournal.java	2008-09-02 13:49:29.000000000 +0200
@@ -147,6 +147,13 @@
 			public void logOverflowNotification(long key) {
 				eventListener.overflowNotification(new LongRecordLocation(key));
 			}
+                        public boolean isLoggable(int level) {
+			        return true;
+			}
+                        public void log(int level, String message) {
+			}
+                        public void log(int level, String message, Throwable thrown) {
+			}
 		});
 	}
 

--- NEW FILE: activeio3-core-pom.patch ---
--- activeio-core/pom.xml.sav2	2008-04-03 22:45:25.000000000 +0200
+++ activeio-core/pom.xml	2009-01-08 21:36:27.000000000 +0100
@@ -103,6 +103,18 @@
       <artifactId>commons-collections</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-j2ee-management_1.0_spec</artifactId>
+      <version>1.1</version>
+      <scope>test</scope>
+    </dependency>
+
 
     <!-- Used by xnet GBean code -->
     <dependency>

--- NEW FILE: activeio3-pom.patch ---
--- pom.xml.sav0	2008-04-03 22:45:25.000000000 +0200
+++ pom.xml	2008-09-02 14:13:13.000000000 +0200
@@ -19,7 +19,7 @@
   </modules>
 
   <prerequisites>
-    <maven>2.0.8</maven>
+    <maven>2.0.7</maven>
   </prerequisites>
 
   <url>http://activemq.apache.org/</url>
@@ -65,6 +65,11 @@
         <scope>runtime</scope>
       </dependency>
       <dependency>
+        <groupId>junit</groupId>
+        <artifactId>junit</artifactId>
+        <version>${junit-version}</version>
+      </dependency>
+      <dependency>
         <groupId>commons-collections</groupId>
         <artifactId>commons-collections</artifactId>
         <version>${commons-collections-version}</version>
@@ -108,6 +113,7 @@
     <howl-version>0.1.8</howl-version>
     <commons-beanutils-version>1.6.1</commons-beanutils-version>
     <commons-collections-version>2.1</commons-collections-version>
+    <junit-version>3.8.2</junit-version>
     <log4j-version>1.2.12</log4j-version>
     <mx4j-version>2.1.1</mx4j-version>
     <commons-logging-version>1.1</commons-logging-version>
@@ -313,7 +319,7 @@
             </goals>
             <configuration>
               <!-- Fail the build if no legal files were found -->
-              <strict>true</strict>
+              <strict>false</strict>
             </configuration>
           </execution>
         </executions>
@@ -497,4 +503,4 @@
 
   </profiles>
 
-</project>
\ No newline at end of file
+</project>

--- NEW FILE: activeio3-settings.xml ---
<settings>
	<profiles>
		<profile>
			<id>JPP</id>
			<repositories>
				<repository>
					<id>internal</id>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>external</id>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>local</id>
					<layout>jpp</layout>
					<url>__MAVENREPO_DIR_PLACEHOLDER__</url>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>plugins-internal</id>
					<name>plugins-internal</name>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-external</id>
					<name>plugins-external</name>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-maven</id>
					<name>plugins-maven</name>
					<layout>jpp</layout>
					<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<activeProfile>JPP</activeProfile>
	</activeProfiles>
</settings>

--- NEW FILE: activeio3.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 gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section free
%define oname activeio

Name:           activeio3
Summary:        ActiveIO Protocol Implementation Framework
Url:            http://activeio.codehaus.org/
Version:        3.0.1
Release:        1%{dist}
Epoch:          0
License:        Apache Software License 2.0
Group:          Development/Libraries/Java
Source0:        activeio-3.0.1.tar.gz
# svn export http://svn.apache.org/repos/asf/activemq/activeio/tags/activeio-3.0.1/

Source1:        activeio3-settings.xml
Source2:        activeio3-jpp-depmap.xml
Source3:        apache-jar-resource-bundle-1.3.jar

Patch0:         activeio3-pom.patch
Patch1:         activeio3-HowlJournal.patch
Patch2:         activeio3-core-pom.patch

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  junit
BuildRequires:  maven2 >= 0:2.0.7
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-eclipse
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-remote-resources
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-stage
BuildRequires:  maven-release
BuildRequires:  maven-surefire-plugin
BuildRequires:  mojo-maven2-plugin-rat
BuildRequires:  felix-maven2
BuildRequires:  geronimo-genesis

BuildRequires:  geronimo-specs-poms
BuildRequires:  geronimo-j2ee-management-1.0-api
BuildRequires:  jakarta-commons-collections
BuildRequires:  jakarta-commons-logging
BuildRequires:  geronimo11-base
BuildRequires:  howl-logger
BuildRequires:  log4j

Requires:  java >= 0:1.5.0
Requires:  backport-util-concurrent
Requires:  howl-logger
Requires:  jakarta-commons-logging

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

%if %{gcj_support}
BuildRequires:    gnu-crypto
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}-buildroot

%description
ActiveIO provides a high performance IO framework 
for implementing protocols.

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

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{version}
chmod -R go=u-w *
for f in $(find . -name "*.jar"); do
  mv $f $f.no
done
%patch0 -b .sav0
%patch1 -b .sav1
%patch2 -b .sav2

# needs geronimo10
rm activeio-core/src/main/java/org/apache/activeio/xnet/StandardServiceStackGBean.java


cp %{SOURCE1} settings.xml

%build
sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" settings.xml

export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL/org.apache
cp %{SOURCE3} $MAVEN_REPO_LOCAL/org.apache/apache-jar-resource-bundle.jar

mkdir external_repo
ln -s %{_javadir} external_repo/JPP

export SETTINGS=$(pwd)/settings.xml

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

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms

install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap org.apache.activemq activeio-parent %{version} JPP %{name}

install -m 644 %{oname}-core/target/%{oname}-core-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}-core-%{version}.jar
install -m 644 activeio-core/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}-core.pom
%add_to_maven_depmap org.apache.activemq activeio-core %{version} JPP %{name}-core

(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr activeio-core/target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(-,root,root)
%doc LICENSE
%{_javadir}/*
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

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

%changelog
* Fri Feb 06 2009 Ralph Apel <r.apel at r-apel.de> 0:3.0.1-1.jpp5
- 3.0.1 changed name to activeio3

* Fri May 04 2007 Ralph Apel <r.apel at r-apel.de> 0:2.0-3jpp
- Clean buildroot!

* Fri May 04 2007 Ralph Apel <r.apel at r-apel.de> 0:2.0-2jpp
- Add maven-plugins-base, maven-plugin-test, -xdoc, -license BRs
- Fix aot build

* Thu Oct 19 2006 Ralph Apel <r.apel at r-apel.de> 0:2.0-1jpp
- First release
- Add gcj_support option
- Add javadoc post/postun Requires

--- NEW FILE: activeio3-jpp-depmap.xml ---
<dependencies>
 <dependency>
   <maven>
     <groupId>geronimo</groupId>
     <artifactId>geronimo-kernel</artifactId>
     <version>1.0</version>
   </maven>
   <jpp>
     <groupId>JPP/geronimo11</groupId>
     <artifactId>kernel</artifactId>
     <version>1.1</version>
   </jpp>
 </dependency>
 <dependency>
   <maven>
     <groupId>geronimo</groupId>
     <artifactId>geronimo-j2ee</artifactId>
     <version>1.0</version>
   </maven>
   <jpp>
     <groupId>JPP/geronimo11</groupId>
     <artifactId>j2ee</artifactId>
     <version>1.1</version>
   </jpp>
 </dependency>

 <dependency>
   <maven>
     <groupId>howl</groupId>
     <artifactId>howl-logger</artifactId>
     <version>0.1.8</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>howl-logger</artifactId>
     <version>1.0.2</version>
   </jpp>
 </dependency>

</dependencies>




More information about the JPackage-commits mailing list