[Jpackage-commits] dist/jtopen/devel .cvsignore, 1.1, 1.2 jt400-7.4.pom, NONE, 1.1 jtopen-build.patch, NONE, 1.1 jtopen.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Sun Oct 9 17:14:51 CEST 2011


Update of /home/projects/jpackage/cvs/dist/jtopen/devel
In directory ryu.zarb.org:/tmp/cvs-serv24865/devel

Modified Files:
	.cvsignore sources 
Added Files:
	jt400-7.4.pom jtopen-build.patch jtopen.spec 
Log Message:
Import PKG into devel

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jtopen/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	9 Oct 2011 15:02:32 -0000	1.1
--- .cvsignore	9 Oct 2011 15:14:48 -0000	1.2
***************
*** 0 ****
--- 1,4 ----
+ jtopen_7_4.zip
+ jtopen_7_4_jdbc40_jdk6.zip
+ jtopen_7_4_source_pure.zip
+ sslightx.zip

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jtopen/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	9 Oct 2011 15:02:32 -0000	1.1
--- sources	9 Oct 2011 15:14:48 -0000	1.2
***************
*** 0 ****
--- 1,4 ----
+ ab76e4456210b91dcbaf0dfc0d23b336  jtopen_7_4.zip
+ 887ed0828c9462d3a3be3928d67e274b  jtopen_7_4_jdbc40_jdk6.zip
+ 055f2f59d94c95aa40c7dda2c6f60815  jtopen_7_4_source_pure.zip
+ 3a86e5006908757514d6477cdfa863c7  sslightx.zip

--- NEW FILE: jtopen.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.
#

%define with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}

Name:           jtopen
Version:        7.4
Release:        1%{?dist}
Epoch:          0
Summary:        IBM Toolbox for Java
License:        IBM Public License
Group:          Development/Java
URL:            http://jt400.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:      noarch
#Source0:        http://downloads.sourceforge.net/project/jt400/JTOpen-full/7.4/jtopen_7_4_source.zip
Source0:        jtopen_7_4_source_pure.zip
Source1:        http://downloads.sourceforge.net/project/jt400/JTOpen-full/7.4/jtopen_7_4.zip
Source2:        ftp://ftp.software.ibm.com/as400/toolbox/sslightx.zip
Source3:        http://downloads.sourceforge.net/project/jt400/JTOpen-full/7.4/jtopen_7_4_jdbc40_jdk6.zip
Source4:        jt400-7.4.pom
Patch0:         jtopen-build.patch

BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  ant >= 0:1.7.1

Requires:  java-devel >= 0:1.6.0

%description
The IBM Toolbox for Java is a library of Java classes 
supporting the client/server and internet programming models
to a system running IBM i (or i5/OS or OS/400). The classes 
can be used by Java applets, servlets, and applications to 
easily access IBM i data and resources.
The Toolbox does not require additional client support over 
and above what is provided by the Java Virtual Machine and 
TCP/IP.
JTOpen is the open source version of the IBM Toolbox for 
Java licensed program product, and contains the identical 
code. Both have been tested on a wide variety of platforms, 
including AIX, IBM i, Linux, Solaris, and Windows.
Details of all the functions and capabilities are available 
on the IBM Toolbox for Java web page. 

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

%description javadoc
%{summary}.

%prep
%setup -qq -c
unzip -o -q %{SOURCE1}
unzip -o -q %{SOURCE3}
mkdir src
#mv com src
mv utilities src
mkdir contrib
mkdir jdbc40-combined
mv com jdbc40-combined
pushd jdbc40-combined
unzip -o -q ../lib/src.zip
%patch0 -b .sav0
cp build.* ..
popd
mkdir include
ln -sf $(build-classpath servlet_2_3_api) include/servlet.jar
cp %{SOURCE2} include
cp lib/jt400.jar include
rm -rf jdbc40-combined/com/ibm/as400/micro/
mkdir build
cp *manifest.txt build
cp *.includes build
find . -name "*.class" -exec rm {} \;

%build
export CLASSPATH=$(pwd)/include/sslightx.zip:$(pwd)/lib/jt400.jar:$(pwd)/lib/jui400.jar:$(build-classpath ant):.
export ANT_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
javac *.java
ant -Dbuild.sysclasspath=last -Dbuild=$(pwd) all

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -m 0644 dist/jt400.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jt400-%{version}.jar
install -m 0644 dist/jt400Native.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jt400Native-%{version}.jar
install -m 0644 dist/jt400Proxy.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jt400Proxy-%{version}.jar
install -m 0644 dist/jt400Servlet.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jt400Servlet-%{version}.jar

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

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE4} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-jt400.pom
%add_to_maven_depmap net.sf.jt400 jt400 %{version} JPP/%{name} jt400

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

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

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

%changelog
* Thu Jul 21 2011 Ralph Apel <r.apel at r-apel.de> 0:7.4-1
- first release
- largely pristine
- no microedition support



--- NEW FILE: jt400-7.4.pom ---
<?xml version="1.0" encoding="UTF-8"?>
<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>net.sf.jt400</groupId>
	<artifactId>jt400</artifactId>
	<packaging>jar</packaging>
	<version>7.4</version>
	<name>JT400</name>
	<description>The Open Source version of the IBM Toolbox for Java</description>
	<url>http://jt400.sourceforge.net/</url>

	<licenses>
		<license>
			<name>IBM Public License Version 1.0</name>
			<url>http://sourceforge.net/projects/jt400/files/JTOpen-full/7.4/license_7_4.html</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<scm>
		<url>http://jt400.cvs.sourceforge.net/jt400/</url>
	</scm>
	
</project>

--- NEW FILE: jtopen-build.patch ---
--- build.xml.sav0	2011-04-28 15:17:34.000000000 +0200
+++ build.xml	2011-07-20 18:37:44.000000000 +0200
@@ -501,78 +501,6 @@
 
 
 <!--///////////////////////////////////////////////////////////////////////////
-    // Target: source
-    ///////////////////////////////////////////////////////////////////////////-->
-  <target name="source" depends="init">
-<!-- For some reason, this condition doesn't work with newer cvs.exe files.  So we'll just proceed on the assumption that cvs.exe exists along the PATH.
-    <condition property="cvsExeExists">
-      <or>
-        <and>
-          <os family="windows"/>
-          <available resource="cvs.exe"/>     // Windows.
-        </and>
-        <not>
-          <os family="windows"/>      // Assume CVS is available.
-        </not>
-      </or>
-    </condition>        
-    <fail message="Can't find cvs executable.  Copy cvs.exe to local directory." unless="cvsExeExists"/>
--->
-    <cvspass cvsroot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400" password=""/>
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="src" dest="${build}"/>
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="jdbc40" dest="${build}"/>
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="contrib" dest="${build}"/>
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="include" dest="${build}"/>
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="build" dest="${build}"/>
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="stubs" dest="${build}"/>
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="license.html" dest="${build}"/>
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="readme.html" dest="${build}"/>
-<<<<<<< build.xml
-   <!-- 
-      <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="src" dest="${build}" /> 
-  <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="contrib" dest="${build}" /> 
-  <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="include" dest="${build}" /> 
-  <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="jdbc40" dest="${build}" />
-  <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="build" dest="${build}" /> 
-  <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="stubs" dest="${build}" /> 
-  <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="license.html" dest="${build}" /> 
-  <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="readme.html" dest="${build}" /> 
-  <cvs cvsRoot=":ext:jlee-oss at jt400.cvs.sourceforge.net:/cvsroot/jt400" cvsRsh="ssh" command="checkout -P -A" package="changes.html" dest="${build}" />
-
--->
-
-<!-- copy all source to new dir, and then copy the new jdbc40 specific files replacing any pre-jdbc40 files -->
-    <copy todir="${source-jdbc40-combined}" overwrite="yes"  preservelastmodified="yes"> 
-         <fileset dir="${source}"/>  
-    </copy>
-    <copy todir="${source-jdbc40-combined}" overwrite="yes" preservelastmodified="yes"> 
-         <fileset dir="${source-jdbc40}"/>  
-   </copy>
-
-    <!-- jdbc 4.0 driver manifest -->
-    <copy tofile="${build}/build/META-INF/services/java.sql.Driver" 
-          overwrite="yes"  
-          preservelastmodified="yes"
-          file="${build}/build/java.sql.Driver" />
-
-    
-=======
-    <cvs cvsRoot=":pserver:anonymous at jt400.cvs.sourceforge.net:/cvsroot/jt400"
-             command="checkout -P -A" package="changes.html" dest="${build}"/>
->>>>>>> 1.65
-  </target>
-
-
-
-<!--///////////////////////////////////////////////////////////////////////////
     // Target: usage
     ///////////////////////////////////////////////////////////////////////////-->
   <target name="usage">




More information about the JPackage-commits mailing list