[Jpackage-commits] dist/jgroups/devel .cvsignore, 1.1, 1.2 jgroups-2.3-build_xml.patch, NONE, 1.1 jgroups.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:57:09 CEST 2008


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

Modified Files:
	.cvsignore sources 
Added Files:
	jgroups-2.3-build_xml.patch jgroups.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jgroups/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:56:41 -0000	1.1
--- .cvsignore	28 May 2008 18:57:07 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ JGroups-2.3CR1.src.zip

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jgroups/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:56:41 -0000	1.1
--- sources	28 May 2008 18:57:07 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 28e6744e16fbfac53f20d6dd5cf020b9  JGroups-2.3CR1.src.zip

--- NEW FILE: jgroups-2.3-build_xml.patch ---
--- build.xml.sav	2006-05-24 20:30:14.000000000 -0400
+++ build.xml	2006-06-12 10:35:02.000000000 -0400
@@ -348,6 +348,7 @@
         description="Runs all unit tests in tests/junit and prints results to stdout">
         <junit printsummary="yes" timeout="${unittest.timeout.low}" fork="yes">
             <classpath refid="jg.classpath"/>
+            <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
             <formatter type="brief" usefile="false"/>
             <batchtest todir="${tmp.dir}">
                 <fileset dir="${junit.dir}"
@@ -363,7 +364,8 @@
         <mkdir dir="${tmp.dir}/tests-results"/>
         <junit printsummary="yes" timeout="${unittest.timeout.low}" fork="yes">
             <jvmarg value="-Dtests.tmp.dir=${tmp.dir}"/>
-            <jvmarg value="-Dlog4j.configuration=file:c:\log4j.properties"/>
+            <jvmarg value="-Dlog4j.configuration=file:conf/log4j.properties"/>
+            <jvmarg value="-Djava.net.preferIPv4Stack=true"/>
             <classpath refid="jg.classpath"/>
             <formatter type="xml" usefile="true"/>
             <batchtest todir="${tmp.dir}/tests-results">

--- NEW FILE: jgroups.spec ---
# Copyright (c) 2000-2005, 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.
#

# If you don't want to run the unit tests
# give rpmbuild option '--without tests'

%define with_tests %{!?_without_tests:1}%{?_without_tests:0}
%define without_tests %{?_without_tests:1}%{!?_without_tests:0}


%define section	free

Name:		jgroups
Version:	2.3
Release:	0.cr1.1jpp
Epoch:		0
Summary:	Toolkit for reliable multicast communication.
License:	LGPL
URL:		http://www.jgroups.org/
Group:		Development/LIbraries/Java
Vendor:		JPackage Project
Distribution:	JPackage
Source0:	http://download.sourceforge.net/sourceforge/javagroups/JGroups-2.3CR1.src.zip
Patch0:		jgroups-2.3-build_xml.patch
Requires:	bsh
Requires:	concurrent
Requires:	jakarta-commons-logging
Requires:	jaxp_parser_impl
Requires:	jms
Requires:	log4j
Requires:	mx4j
BuildRequires:	ant >= 0:1.6
BuildRequires:	bsh
BuildRequires:	concurrent
BuildRequires:	jakarta-commons-logging
BuildRequires:	jaxp_parser_impl
BuildRequires:	jms
BuildRequires:	jpackage-utils >= 0:1.6
BuildRequires:	junit
BuildRequires:	log4j
BuildRequires:	mx4j
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
JGroups is a toolkit for reliable multicast communication. (Note that
this doesn't necessarily mean IP Multicast, JGroups can also use
transports such as TCP). It can be used to create groups of processes
whose members can send messages to each other. The main features include

    * Group creation and deletion. Group members can be spread across
      LANs or WANs
    * Joining and leaving of groups
    * Membership detection and notification about joined/left/crashed members
    * Detection and removal of crashed members
    * Sending and receiving of member-to-group messages (point-to-multipoint)
    * Sending and receiving of member-to-member messages (point-to-point)

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

%description	javadoc
%{summary}.

%package	manual
Summary:	Documents for %{name}
Group:		Development/Documentation

%description	manual
%{summary}.

%prep
%setup -q -n JGroups-2.3CR1.src
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

# this test requires bouncycastle
rm tests/junit/org/jgroups/protocols/ENCRYPTAsymmetricTest.java

%patch0 -b .sav

%build
export OPT_JAR_LIST="ant-launcher ant/ant-junit junit xalan-j2 xalan-j2-serializer"
pushd lib
ln -sf $(build-classpath ant) .
ln -sf $(build-classpath ant-launcher) .
ln -sf $(build-classpath ant/ant-junit) .
#BUILD/JGroups-2.3CR1.src/lib/bcprov-jdk14-117.jar.no
ln -sf $(build-classpath bsh) .
ln -sf $(build-classpath commons-logging) .
ln -sf $(build-classpath concurrent) .
ln -sf $(build-classpath jms) .
ln -sf $(build-classpath junit) .
ln -sf $(build-classpath log4j) .
ln -sf $(build-classpath mx4j/mx4j-jmx) .
ln -sf $(build-classpath xalan-j2) .
ln -sf $(build-classpath xalan-j2-serializer) .
popd
%if %{without_tests}
ant jar javadoc gossip-service jgroups-service
%else
#export ANT_OPTS="-Djava.net.preferIPv4Stack=true"
ant jar javadoc gossip-service jgroups-service unittests testreport
%endif

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/%{name}-all.jar \
	$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
install -m 644 dist/%{name}-core.jar \
	$RPM_BUILD_ROOT%{_javadir}/%{name}-core-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
ln -sf ${jar} ${jar/-%{version}/}; done)

# javadoc
install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
(cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})

# services
install -p -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
install -m 644 dist/%{name}*.sar \
	$RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}

# docs
install -p -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ $1 -eq 0 ]; then
  rm -f %{_javadocdir}/%{name}
fi

%files
%defattr(0644,root,root,0755)
%{_javadir}/*
%{_datadir}/%{name}-%{version}

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

%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}

%changelog
* Mon Jun 12 2006 Ralph Apel <r.apel at r-apel.de> 0:2.3-0.cr1.1jpp
- upgrade to 2.3.CR1

* Wed May 31 2006 Ralph Apel <r.apel at r-apel.de> 0:2.2.9.2-1jpp
- upgrade to 2.2.9.2

* Tue May 02 2006 Ralph Apel <r.apel at r-apel.de> 0:2.2.9.1-1jpp
- upgrade to 2.2.9.1

* Sat Jun 04 2005 Fernando Nasser <fnasser at redhat.com> 0:2.2.7-1jpp
- upgrade to 2.2.7

* Thu Sep 16 2004 Ralph Apel <r.apel at r-apel.de> 0:2.2.6-1jpp
- upgrade to 2.2.6

* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:2.2-3jpp
- Rebuild with ant-1.6.2

* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:2.2-2jpp
- Upgrade to Ant 1.6.X

* Sun Jan 25 2004 David Walluck <david at anti-microsoft.org> 0:2.2-1jpp
- update source




More information about the JPackage-commits mailing list