2009-07-04 09:08:10 +00:00
|
|
|
#
|
2013-09-12 15:04:45 +00:00
|
|
|
# spec file for package jgroups
|
2009-07-04 09:08:10 +00:00
|
|
|
#
|
2022-02-22 19:19:06 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2009-07-04 09:08:10 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-11-01 11:12:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-07-04 09:08:10 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define _with_repolib 1
|
|
|
|
|
%define with_repolib %{?_with_repolib:1}%{!?_with_repolib:0}
|
|
|
|
|
%define without_repolib %{!?_with_repolib:1}%{?_with_repolib:0}
|
|
|
|
|
%define repodir %{_javadir}/repository.jboss.com/jgroups/2.4.1.SP4-brew
|
|
|
|
|
%define repodirlib %{repodir}/lib
|
|
|
|
|
%define repodirsrc %{repodir}/src
|
|
|
|
|
Name: jgroups
|
|
|
|
|
Version: 2.6.10
|
2013-09-12 15:04:45 +00:00
|
|
|
Release: 0
|
2009-07-04 09:08:10 +00:00
|
|
|
Summary: Toolkit for reliable multicast communication
|
2018-05-17 20:03:57 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2009-07-04 09:08:10 +00:00
|
|
|
Group: Development/Libraries/Java
|
2022-02-22 19:19:06 +00:00
|
|
|
URL: http://www.jgroups.org/
|
2009-07-04 09:08:10 +00:00
|
|
|
# get source zip from sf.net
|
|
|
|
|
# unzip -q JGroups-2.6.10.merge.src.zip
|
|
|
|
|
# find JGroups-2.6.10.merge.src/ -iname *.jar | xargs rm -rf
|
|
|
|
|
# ## bnc#509439
|
|
|
|
|
# cd JGroups-2.6.10.merge.src
|
|
|
|
|
# rm -rf doc/
|
2014-07-08 10:46:36 +00:00
|
|
|
# cvs -d:pserver:anonymous@javagroups.cvs.sourceforge.net:/cvsroot/javagroups login
|
2009-07-04 09:08:10 +00:00
|
|
|
# cvs -z3 -d:pserver:anonymous@javagroups.cvs.sourceforge.net:/cvsroot/javagroups co -P JGroups/doc
|
|
|
|
|
# mv JGroups/doc doc/
|
|
|
|
|
# rm -rf JGroups
|
|
|
|
|
# cd ..
|
|
|
|
|
# tar --exclude-vcs -cjf JGroups-2.6.10.merge.src.tar.bz2 JGroups-2.6.10.merge.src/
|
2013-10-11 11:02:27 +00:00
|
|
|
Source0: JGroups-%{version}.merge.src.tar.bz2
|
2009-07-04 09:08:10 +00:00
|
|
|
Source1: jgroups-component-info.xml
|
2013-12-12 09:00:17 +00:00
|
|
|
#PATCH-FIX-OPENSUSE: junit.swingui does not exists in junit 4
|
|
|
|
|
Patch0: jgroups-swingui.patch
|
2017-09-19 08:10:37 +00:00
|
|
|
#PATCH-FIX-OPENSUSE: don't hardcode source so that it can be specified from command-line
|
|
|
|
|
Patch1: jgroups-nosource.patch
|
2009-07-04 09:08:10 +00:00
|
|
|
BuildRequires: ant >= 1.6
|
|
|
|
|
BuildRequires: ant-junit
|
2014-07-08 10:46:36 +00:00
|
|
|
BuildRequires: apache-commons-logging
|
2018-11-01 11:12:03 +00:00
|
|
|
BuildRequires: bsh2
|
2017-09-19 08:10:37 +00:00
|
|
|
BuildRequires: fdupes
|
2014-07-08 10:46:36 +00:00
|
|
|
BuildRequires: geronimo-jms-1_1-api
|
2022-03-22 16:47:05 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2013-09-12 15:04:45 +00:00
|
|
|
BuildRequires: javapackages-tools
|
2009-07-04 09:08:10 +00:00
|
|
|
BuildRequires: jaxp_parser_impl
|
|
|
|
|
BuildRequires: junit
|
|
|
|
|
BuildRequires: mx4j
|
2022-02-22 19:19:06 +00:00
|
|
|
BuildRequires: reload4j
|
2009-07-04 09:08:10 +00:00
|
|
|
BuildRequires: xalan-j2
|
2014-07-08 10:46:36 +00:00
|
|
|
# To use JGroups one needs:
|
|
|
|
|
Requires: apache-commons-logging
|
2018-11-01 11:12:03 +00:00
|
|
|
Requires: bsh2
|
2014-07-08 10:46:36 +00:00
|
|
|
Requires: geronimo-jms-1_1-api
|
|
|
|
|
Requires: jaxp_parser_impl
|
2022-02-22 19:19:06 +00:00
|
|
|
Requires: reload4j
|
2014-07-08 10:46:36 +00:00
|
|
|
Provides: javagroups = %{version}
|
|
|
|
|
Obsoletes: javagroups < %{version}
|
|
|
|
|
BuildArch: noarch
|
2009-07-04 09:08:10 +00:00
|
|
|
|
|
|
|
|
%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)
|
|
|
|
|
|
|
|
|
|
To use JGroups one needs:
|
|
|
|
|
commons-logging.jar
|
|
|
|
|
log4j.jar
|
|
|
|
|
|
|
|
|
|
To run JGroups you need to have an XML parser installed on your system.
|
|
|
|
|
If you use JDK 1.4 or higher, you can use the parser that is shipped with it.
|
|
|
|
|
|
|
|
|
|
If you want to use the JGroups JMS protocol ( org.jgroups.protocols.JMS ),
|
2014-07-08 10:46:36 +00:00
|
|
|
then you will also need to place jms.jar somewhere in your CLASSPATH.
|
2009-07-04 09:08:10 +00:00
|
|
|
|
|
|
|
|
Place the JAR files somewhere in your CLASSPATH , and you're ready to start
|
|
|
|
|
using JGroups.
|
|
|
|
|
|
|
|
|
|
%if %{with_repolib}
|
|
|
|
|
%package repolib
|
|
|
|
|
Summary: Artifacts to be uploaded to a repository library
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description repolib
|
|
|
|
|
Artifacts to be uploaded to a repository library.
|
|
|
|
|
This package is not meant to be installed but so its contents
|
|
|
|
|
can be extracted through rpm2cpio
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: Javadoc for jgroups
|
2013-09-12 15:04:45 +00:00
|
|
|
Group: Development/Libraries/Java
|
2009-07-04 09:08:10 +00:00
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
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 manual
|
|
|
|
|
Summary: Manual for jgroups
|
2013-09-12 15:04:45 +00:00
|
|
|
Group: Development/Libraries/Java
|
2009-07-04 09:08:10 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description manual
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
%prep
|
2013-10-11 11:02:27 +00:00
|
|
|
%setup -q -n JGroups-%{version}.merge.src
|
2013-12-12 09:00:17 +00:00
|
|
|
%patch0 -p1
|
2017-09-19 08:10:37 +00:00
|
|
|
%patch1 -p1
|
2009-07-04 09:08:10 +00:00
|
|
|
find . -type f -name '*.jar' | xargs rm -f
|
|
|
|
|
# this test requires bouncycastle
|
|
|
|
|
rm tests/junit/org/jgroups/protocols/ENCRYPTAsymmetricTest.java
|
|
|
|
|
%if %{with_repolib}
|
|
|
|
|
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
|
|
|
|
|
sed -i "s/tag=\".*\">/tag=\"$tag\">/g" %{SOURCE1}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CLASSPATH=
|
|
|
|
|
export OPT_JAR_LIST="ant-launcher ant/ant-junit ant/ant-trax 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.4.1.src/lib/bcprov-jdk14-117.jar.no
|
2018-11-01 11:13:00 +00:00
|
|
|
ln -sf $(build-classpath bsh2/bsh) .
|
2009-07-04 09:08:10 +00:00
|
|
|
ln -sf $(build-classpath commons-logging) .
|
2019-04-15 14:05:22 +00:00
|
|
|
ln -sf $(build-classpath geronimo-jms-1.1-api) .
|
2009-07-04 09:08:10 +00:00
|
|
|
ln -sf $(build-classpath junit) .
|
2022-02-22 19:19:06 +00:00
|
|
|
ln -sf $(build-classpath reload4j/reload4j) .
|
2009-07-04 09:08:10 +00:00
|
|
|
ln -sf $(build-classpath mx4j/mx4j-jmx) .
|
|
|
|
|
ln -sf $(build-classpath xalan-j2) .
|
|
|
|
|
ln -sf $(build-classpath xalan-j2-serializer) .
|
|
|
|
|
popd
|
2022-03-22 16:47:05 +00:00
|
|
|
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 jar javadoc gossip-service jgroups-service
|
2009-07-04 09:08:10 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# jar
|
2014-07-08 10:46:36 +00:00
|
|
|
install -d %{buildroot}%{_javadir}
|
2009-07-04 09:08:10 +00:00
|
|
|
install -m 644 dist/%{name}-all.jar \
|
2014-07-08 10:46:36 +00:00
|
|
|
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
2009-07-04 09:08:10 +00:00
|
|
|
install -m 644 dist/%{name}-core.jar \
|
2014-07-08 10:46:36 +00:00
|
|
|
%{buildroot}%{_javadir}/%{name}-core-%{version}.jar
|
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
2009-07-04 09:08:10 +00:00
|
|
|
# javadoc
|
2014-07-08 10:46:36 +00:00
|
|
|
install -d %{buildroot}%{_javadocdir}/%{name}-%{version}
|
|
|
|
|
cp -pr dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
2017-09-19 08:10:37 +00:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}-%{version}
|
2014-07-08 10:46:36 +00:00
|
|
|
(cd %{buildroot}%{_javadocdir} && ln -sf %{name}-%{version} %{name})
|
2009-07-04 09:08:10 +00:00
|
|
|
# services
|
2014-07-08 10:46:36 +00:00
|
|
|
install -p -d -m 755 %{buildroot}%{_datadir}/%{name}-%{version}
|
2009-07-04 09:08:10 +00:00
|
|
|
install -m 644 dist/%{name}*.sar \
|
2014-07-08 10:46:36 +00:00
|
|
|
%{buildroot}%{_datadir}/%{name}-%{version}
|
2009-07-04 09:08:10 +00:00
|
|
|
# docs
|
2014-07-08 10:46:36 +00:00
|
|
|
install -p -d -m 755 %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
|
|
cp -pr doc/* %{buildroot}%{_docdir}/%{name}-%{version}
|
2009-07-04 09:08:10 +00:00
|
|
|
%if %{with_repolib}
|
2014-07-08 10:46:36 +00:00
|
|
|
install -d -m 755 %{buildroot}%{repodir}
|
|
|
|
|
install -d -m 755 %{buildroot}%{repodirlib}
|
|
|
|
|
install -m 755 %{SOURCE1} %{buildroot}%{repodir}/component-info.xml
|
|
|
|
|
install -d -m 755 %{buildroot}%{repodirsrc}
|
|
|
|
|
install -m 755 %{SOURCE0} %{buildroot}%{repodirsrc}
|
|
|
|
|
cp -p %{buildroot}%{_javadir}/jgroups.jar %{buildroot}%{repodirlib}
|
2009-07-04 09:08:10 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
2022-03-22 16:47:05 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc CREDITS INSTALL.html README
|
2009-07-04 09:08:10 +00:00
|
|
|
%{_javadir}/%{name}*jar
|
|
|
|
|
%{_datadir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%files manual
|
|
|
|
|
%doc %{_docdir}/%{name}-%{version}
|
|
|
|
|
%if %{with_repolib}
|
|
|
|
|
%files repolib
|
|
|
|
|
%{repodir}
|
|
|
|
|
%dir %{_javadir}/repository.jboss.com
|
|
|
|
|
%dir %{_javadir}/repository.jboss.com/%{name}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|