[Jpackage-commits] rpms/devel/jtopen jt400-7.4.pom, NONE, 1.1 jtopen-build.patch, NONE, 1.1 jtopen.spec, 1.2, 1.3

jpackage jpackage at ryu.zarb.org
Sun Oct 9 20:09:43 CEST 2011


Update of /home/projects/jpackage/cvs/rpms/devel/jtopen
In directory ryu.zarb.org:/tmp/wryoSr0nw2/rpms/devel/jtopen

Modified Files:
	jtopen.spec 
Added Files:
	jt400-7.4.pom jtopen-build.patch 
Log Message:
7.4-1.jpp6

Index: jtopen.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/devel/jtopen/jtopen.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** jtopen.spec	15 Dec 2004 14:15:42 -0000	1.2
--- jtopen.spec	9 Oct 2011 18:09:40 -0000	1.3
***************
*** 1,51 ****
! %define name		jtopen
! %define version		4.2
! %define cvs_version	4_2
! %define release		2jpp
! %define section		free
  
! Name:		%{name}
! Version:	%{version}
! Release:	%{release}
! Epoch:		0
! Summary: 	OpenSource Java ToolBox for AS/400
! License: 	IBM Public License
! URL:		http://oss.software.ibm.com/developerworks/opensource/jt400/
! Group:		Development/Libraries
! Vendor:		JPackage Project
! Distribution:	JPackage
! Source0: 	ftp://www-126.ibm.com/pub/jt400/4.2/jtopen_4_2.zip
! BuildArch:	noarch
! BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
  
! %description
! The AS/400 Toolbox for Java is a library of Java classes supporting the
! client/server and internet programming models to an AS/400 or iSeries
! server. The classes can be used by Java applets, servlets, and
! applications to easily access data and resources on the server.
! 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 popular product, AS/400 Toolbox
! for Java. It runs on a wide variety of platforms, including AIX, AS/400
! and iSeries servers, Linux, Network Station, OS/2, Solaris, and Windows.
  
! %package manual
! Summary:	Manual for %{name}
! Group:		Development/Libraries/Java
  
! %description manual
! Documentation for %{name}.
  
  %package javadoc
! Summary:	Javadoc for %{name}.
! Group:		Development/Documentation
  
  %description javadoc
! Javadoc for %{name}.
  
  %prep
! %setup -c
! # fix files perms
! chmod -R go=u-w *
  
  %install
--- 1,115 ----
! # 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
! BuildRequires:  servletapi4
  
! 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
***************
*** 53,138 ****
  
  # jars
! install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
! install -m 644 lib/jt400.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jt400-%{version}.jar
! install -m 644 lib/jt400Proxy.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jt400Proxy-%{version}.jar
! install -m 644 lib/jt400Micro.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jt400Micro-%{version}.jar
! install -m 644 lib/jt400Servlet.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jt400Servlet-%{version}.jar
! install -m 644 lib/jui400.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/jui400-%{version}.jar
! install -m 644 lib/composer.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/composer-%{version}.jar
! install -m 644 lib/tes.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/tes-%{version}.jar
! install -m 644 lib/outputwriters.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/outputwriters-%{version}.jar
! install -m 644 lib/reportwriter.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/reportwrite-%{version}.jar
! install -m 644 lib/uitools.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/uitools-%{version}.jar
! install -m 644 lib/util400.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/util400-%{version}.jar
! (cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
  # javadoc
! install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
! cp -pr doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
! rm -rf doc/javadoc
  
  %clean
  rm -rf $RPM_BUILD_ROOT
  
! %post javadoc
! rm -f %{_javadocdir}/%{name}
! ln -s %{name}-%{version} %{_javadocdir}/%{name}
  
! %postun javadoc
! if [ "$1" = "0" ]; then
!     rm -f %{_javadocdir}/%{name}
! fi
  
  %files
  %defattr(0644,root,root,0755)
! %doc license.html readme.html
! %{_javadir}/%{name}
! 
! %files manual
! %defattr(0644,root,root,0755)
! %doc doc/*
  
  %files javadoc
  %defattr(0644,root,root,0755)
  %{_javadocdir}/%{name}-%{version}
  
  %changelog
! * Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:4.2-2jpp
! - Rebuild with ant-1.6.2
! * Wed Jan 21 2004 David Walluck <david at anti-microsoft.org> 0:4.2-1jpp
! - 4.2
! 
! * Fri May 15 2003 David Walluck <david at anti-microsoft.org> 0:4.0-1jpp
! - 4.0
! - update for JPackage 1.5
! 
! * Wed Feb 26 2003 Henri Gomez <hgomez at users.sourceforge.net> 3.3-1jpp
! - jtopen 3.3
! - x4j and xslparser no more provided in source distro
! 
! * Thu May 23 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 3.0-2jpp
! - vendor, distribution, group tags
! - corrected line too long in description
! - fixed perm problems
! 
! * Sat Apr 06 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 3.0-1jpp 
! - first unified release
! - section macro
! - nosrc package
! - spec cleanup
! - javadoc in javadoc package
! 
! * Mon Jun 18 2001 Henri Gomez <hgomez at users.sourceforge.net>
! - jtopen 2.03
! - corrected URLs (http://oss.software.ibm.com/developerworks/opensource/jt400/)
! - a decent description
! 
! * Mon Jan 22 2001 Henri Gomez <hgomez at users.sourceforge.net>
! - jtopen 2.01
! - removed jt400Native.jar since not useable on Linux Boxes.
  
- * Tue Jan 16 2001 Henri Gomez <hgomez at users.sourceforge.net>
- - RPM release 2
- - removed unexisting stuff in %doc
  
- * Fri Jan 12 2001 Henri Gomez <hgomez at users.sourceforge.net>
- - Initial release jtopen 2.0
--- 117,166 ----
  
  # 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
! * Sun Oct 09 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