[Jpackage-commits] dist/hessian-nodep/devel .cvsignore, 1.1, 1.2 hessian-3.1.3-build.xml, NONE, 1.1 hessian-3.1.3.pom, NONE, 1.1 hessian-nodep.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:18:47 CEST 2008


Update of /home/projects/jpackage/cvs/dist/hessian-nodep/devel
In directory ryu.zarb.org:/tmp/cvs-serv7593/devel

Modified Files:
	.cvsignore sources 
Added Files:
	hessian-3.1.3-build.xml hessian-3.1.3.pom hessian-nodep.spec 
Log Message:
Import from JPP 5.0

--- NEW FILE: hessian-3.1.3.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.caucho</groupId>
  <artifactId>hessian</artifactId>
  <version>3.1.3</version>
  <packaging>jar</packaging>
  <name>Hessian</name>
  <url>http://hessian.caucho.com</url>
  <description>The Hessian binary web service protocol destribution pack</description>
  <licenses>
    <license>
      <name>The Apache Software License, Version 1.1</name>
      <url>http://www.apache.org/licenses/LICENSE-1.1.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>http://svn.apache.org/viewcvs.cgi/maven</url>
  </scm>

</project> 
Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/hessian-nodep/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:18:23 -0000	1.1
--- sources	28 May 2008 18:18:45 -0000	1.2
***************
*** 0 ****
--- 1,2 ----
+ 883028d92891f81f87c0e578c8e925e7  hessian-3.1.3-src.jar
+ 9b786d3fc037f43f9c11b48d486a0893  resin-3.1.3-src.zip

--- NEW FILE: hessian-3.1.3-build.xml ---
<?xml version="1.0" encoding="UTF-8"?>

<project default="jar" name="hessian" basedir=".">
    <property name="defaulttargetdir" value="target">
    </property>
    <property name="libdir" value="target/lib">
    </property>
    <property name="classesdir" value="target/classes">
    </property>
    <property name="testclassesdir" value="target/test-classes">
    </property>
    <property name="testreportdir" value="target/test-reports">
    </property>
    <property name="distdir" value="dist">
    </property>
    <property name="javadocdir" value="dist/docs/api">
    </property>
    <property name="version" value="3.1.3">
    </property>
    <property name="final.name" value="hessian-${version}">
    </property>
    <target name="init" description="o Initializes some properties">
        <mkdir dir="${libdir}">
        </mkdir>
        <condition property="noget">
            <equals arg2="only" arg1="${build.sysclasspath}">
            </equals>
        </condition>
    </target>
    <target name="compile" description="o Compile the code" depends="get-deps">
        <mkdir dir="${classesdir}">
        </mkdir>
        <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
            <src>
                <pathelement location="src">
                </pathelement>
            </src>
            <classpath>
                <fileset dir="${libdir}">
                    <include name="*.jar">
                    </include>
                </fileset>
            </classpath>
        </javac>
    </target>
    <target name="jar" description="o Create the jar" depends="compile">
        <jar jarfile="target/${final.name}.jar" includes="com/caucho/hessian/**,com/caucho/services/**" basedir="${classesdir}">
        </jar>
    </target>
    <target name="clean" description="o Clean up the generated directories">
        <delete dir="${defaulttargetdir}">
        </delete>
        <delete dir="${distdir}">
        </delete>
    </target>
    <target name="dist" description="o Create a distribution" depends="jar, javadoc">
        <mkdir dir="dist">
        </mkdir>
        <copy todir="dist">
            <fileset dir="${defaulttargetdir}" includes="*.jar">
            </fileset>
            <fileset dir="${basedir}" includes="LICENSE*, README*">
            </fileset>
        </copy>
    </target>
    <target name="javadoc" description="o Generate javadoc" depends="jar">
        <mkdir dir="${javadocdir}">
        </mkdir>
        <tstamp>
            <format pattern="2003-yyyy" property="year">
            </format>
        </tstamp>
        <property name="title" value="Hessian Webservice Protocol ${version} API">
        </property>
        <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src" packagenames="com.caucho.hessian.*">
            <classpath>
                <fileset dir="${libdir}">
                    <include name="*.jar">
                    </include>
                </fileset>
                <pathelement location="target/${final.name}.jar">
                </pathelement>
            </classpath>
        </javadoc>
    </target>
    <target name="get-deps" unless="noget" depends="init">
        <jar destfile="${libdir}/javadoc-1.4.jar">
            <zipfileset src="${java.home}/../lib/tools.jar" includes="com/sun/javadoc/**,com/sun/tools/doclets/Taglet.class"/>
        </jar>
    </target>
</project>

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/hessian-nodep/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:18:23 -0000	1.1
--- .cvsignore	28 May 2008 18:18:45 -0000	1.2
***************
*** 0 ****
--- 1,2 ----
+ hessian-3.1.3-src.jar
+ resin-3.1.3-src.zip

--- NEW FILE: hessian-nodep.spec ---
# Copyright (c) 2000-2008, 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 section free
%define oname hessian

Name: hessian-nodep
Epoch: 0
Version: 3.1.3
Release: 2jpp
Summary: Hessian binary web service protocol with deps

Group: Development/Libraries/Java
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
License: Apache Software License
URL: http://www.caucho.com/%{name}
Source0: http://hessian.caucho.com/download/hessian-%{version}-src.jar
Source1: %{oname}-%{version}-build.xml
Source2: http://www.caucho.com/download/resin-3.1.3-src.zip
Source3: http://repo1.maven.org/maven2/com/caucho/hessian/3.1.3/hessian-3.1.3.pom
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch

BuildRequires: jpackage-utils >= 0:1.7.4
BuildRequires: java-devel = 0:1.5.0
BuildRequires: ant >= 0:1.6.5
BuildRequires: servlet_2_4_api
BuildRequires: jms_1_1_api
Requires: java >= 0:1.5.0
Requires: servlet_2_4_api
Requires: jms_1_1_api

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

%description
The Hessian binary web service protocol makes web 
services usable without requiring a large framework, 
and without learning yet another alphabet soup of 
protocols. Because it is a binary protocol, it is 
well-suited to sending binary data without any need 
to extend the protocol with attachments.

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

%description    javadoc
Javadoc for %{name}

%prep
%setup -q -c -n %{oname}-%{version}
%{__mkdir} src
%{__mv} com src
%{__cp} %{SOURCE1} build.xml
unzip -qq %{SOURCE2}
%{__cp} -R resin-%{version}/modules/util/src/com src
mkdir -p src/com/caucho/jms/util/
%{__cp} resin-%{version}/modules/resin/src/com/caucho/jms/util/BytesMessageOutputStream.java src/com/caucho/jms/util/
#%{__rm} -rf resin-%{version}

%build
CLASSPATH="$(build-classpath servlet_2_4_api jms_1_1_api):target/classes" \
    ant -Dbuild.sysclasspath="only" dist

%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}/%{_javadir}
%{__install} -p -m 0644 dist/%{oname}-%{version}.jar \
    ${RPM_BUILD_ROOT}/%{_javadir}/%{name}-%{version}.jar
%{__ln_s} %{name}-%{version}.jar \
    ${RPM_BUILD_ROOT}/%{_javadir}/%{name}.jar
%add_to_maven_depmap com.caucho %{oname} %{version} JPP %{name}

# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom

# javadoc
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}/%{_javadocdir}/%{name}-%{version}
%{__cp} -pr dist/docs/api/* ${RPM_BUILD_ROOT}/%{_javadocdir}/%{name}-%{version}
# ghost symlink
%{__ln_s} %{name}-%{version} ${RPM_BUILD_ROOT}/%{_javadocdir}/%{name}

%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

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root,-)
%{_javadir}/*.jar
%{_datadir}/maven2
%{_mavendepmapfragdir}

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


%changelog
* Tue Feb 19 2008 Ralph Apel <r.apel at r-apel.de> 0:3.1.3-2jpp
- Really include some dep classes

* Wed Feb 06 2008 Ralph Apel <r.apel at r-apel.de> 0:3.1.3-1jpp
- 3.1.3
- Include dep classes
- Change name to hessian-nodep

* Fri Jun 22 2007 Jason Corley <jason.corley at gmail.com> 1:3.0.8-1jpp
- revert to 3.0.8 and bump epoch
- build in mock
- update copyright

* Sun Jan 14 2007 Jason Corley <jason.corley at gmail.com> 0:3.0.20-1jpp
- 3.0.20
- update servletapi build requirement to servletapi5
- macrofy!

* Fri Mar 10 2006 Ralph Apel <r.apel at r-apel.de> - 0:3.0.8-1jpp
- derive from hessian2

* Fri Feb 24 2006 Ralph Apel <r.apel at r-apel.de> - 0:2.1.12-3jpp
- Minor fixes

* Tue Oct 05 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.1-2jpp
- Fix typo conducting to jar with no classes

* Mon Oct 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.1-1jpp
- First JPackage release




More information about the JPackage-commits mailing list