[Jpackage-commits] dist/genericjmsra10/JPP-5 Makefile, NONE, 1.1 genericjmsra10-build.patch, NONE, 1.1 genericjmsra10-config-properties.patch, NONE, 1.1 genericjmsra10.spec, NONE, 1.1 genericra-1.0.pom, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Sun Feb 1 22:48:49 CET 2009


Update of /home/projects/jpackage/cvs/dist/genericjmsra10/JPP-5
In directory ryu.zarb.org:/tmp/cvs-serv13298/JPP-5

Added Files:
	Makefile genericjmsra10-build.patch 
	genericjmsra10-config-properties.patch genericjmsra10.spec 
	genericra-1.0.pom sources 
Log Message:
Import genericjmsra10 into JPP-5

--- NEW FILE: genericjmsra10.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 genericjmsra
%define sname genericra

Summary:        Generic JMS Resource Adapter
Name:           genericjmsra10
Version:        1.0
Release:        1%{dist}
Epoch:          0
License:        Apache Software License 2.0
URL:            https://genericjmsra.dev.java.net/
Group:          Development/Libraries/Java
Source0:        genericjmsra10.tar.gz
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs login
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs export -r RELEASE_1_0 genericjmsra
Source1:        http://mirrors.ibiblio.org/pub/mirrors/maven2/jencks/genericra/1.0/genericra-1.0.pom
Patch0:         genericjmsra10-config-properties.patch
Patch1:         genericjmsra10-build.patch

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  j2ee_connector_1_5_api
BuildRequires:  jms_1_1_api
Requires:  java >= 0:1.5.0
Requires:  j2ee_connector_1_5_api
Requires:  jms_1_1_api

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}-%{release}-buildroot

%description
J2EE 1.4 specifies J2EE Connector Architecture 1.5 as the 
basic mechanism to integrate JMS providers with J2EE 
application servers. However some JMS provider vendors do 
not provide a J2EE Connector Architecture 1.5 compliant 
resource adapter to enable such an integration. This project
helps such JMS providers to integrate with J2EE application
servers by wrapping their JMS client library in a J2EE
Connector Architecture 1.5 resource adapter. 

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

%description    javadoc
%{summary}.

%prep
%setup -q -n %{oname}
for j in $(find . -name "*.jar"); do
      mv $j $j.no
done
%patch0 -b .sav0
%patch1 -b .sav1

%build
export RA_HOME=$(pwd)
export CLASSPATH=$(build-classpath \
j2ee_connector_1_5_api \
jms_1_1_api \
)
ant -Dbuild.sysclasspath=first build javadoc

%install
rm -rf $RPM_BUILD_ROOT
install -dm 755 $RPM_BUILD_ROOT%{_javadir}
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}

# jars
install -m 644 build/dist/%{sname}.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

# rars
install -m 644 build/dist/%{sname}.rar \
      $RPM_BUILD_ROOT%{_datadir}/%{name}/

install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
%add_to_maven_depmap jencks genericra %{version} JPP %{name}

# javadoc
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/javadoc/* $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(0644,root,root,0755)
%{_javadir}/*.jar
%doc LICENSE
%{_datadir}/%{name}
%{_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 Jan 23 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.0-1.jpp5
- First release


--- NEW FILE: genericjmsra10-build.patch ---
--- build.xml.sav	2008-09-25 19:03:22.000000000 +0200
+++ build.xml	2008-09-25 19:09:43.000000000 +0200
@@ -66,4 +66,23 @@
 			ant build (creates the resource adapter archive)
 	</echo>
     </target>
+
+  <!--=======================================================================-->
+  <target name="javadoc">
+    <mkdir dir="build/javadoc"/>
+    <javadoc access="public"
+        author="true"
+        destdir="build/javadoc"
+        doctitle="GenericJmsRa API"
+        use="true"
+        splitindex="true"
+        version="true">
+      <sourcepath path="src/java"/>
+      <classpath>
+        <pathelement path="${build.sysclasspath}"/>
+      </classpath>
+      <package name="com.sun.genericra.*"/>
+    </javadoc>
+  </target>
+
 </project>

--- NEW FILE: Makefile ---
# Makefile for source rpm: genericjmsra10
# $Id: Makefile,v 1.1 2009/02/01 21:48:47 jpackage Exp $
NAME := genericjmsra10
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: genericra-1.0.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>jencks</groupId>
  <artifactId>genericra</artifactId>
  <version>1.0</version>
</project>
--- NEW FILE: sources ---
d8c5a5b00bbfa84b8e595c5480593583  genericjmsra10.tar.gz

--- NEW FILE: genericjmsra10-config-properties.patch ---
--- config/properties.xml.sav	2008-09-25 18:55:53.000000000 +0200
+++ config/properties.xml	2008-09-25 18:56:38.000000000 +0200
@@ -16,7 +16,7 @@
 -->
 <property environment="env"/>
 
-<target name="init-common" depends="setToolProperty,setS1ASclassPath">
+<target name="init-common" depends="setToolProperty">
    <!-- Appserver setup properties -->
    <echo message="Loading props from file ${env.RA_HOME}/config.properties" 
     level="verbose"/>




More information about the JPackage-commits mailing list