Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37404483
en ru br
Репозитории ALT
5.1: 2.4.1-alt2_1.SP4.1jpp5
4.1: 2.2.9.2-alt1_3jpp1.7
4.0: 2.2.9.2-alt1_3jpp1.7
www.altlinux.org/Changes

Группа :: Разработка/Java
Пакет: jgroups

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

BuildRequires: /proc
BuildRequires: jpackage-1.4-compat
# 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.
#

%define gcj_support 0

# 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}



Name: jgroups
Version: 2.2.9.2
Release: alt1_3jpp1.7
Epoch: 0
Summary: Toolkit for reliable multicast communication.
License: LGPL
URL: http://www.jgroups.org/
Group: Development/Java
Source0: http://download.sourceforge.net/sourceforge/javagroups/JGroups-2.2.9.2.src.tar.bz2
Patch0: jgroups-2.2.9-build_xml.patch
Requires: bsh
Requires: concurrent
Requires: jakarta-commons-logging
Requires: jaxp_parser_impl
Requires: jms
Requires: log4j
Requires: mx4j
Requires: xalan-j2
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: ant-junit
BuildRequires: log4j
BuildRequires: mx4j
BuildRequires: xalan-j2
%if ! %{gcj_support}
BuildArch:      noarch
%endif

%if %{gcj_support}
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif

%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.2.9.2.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"
pushd lib
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) .
popd
%if %{without_tests}
ant jar javadoc jboss-service jgroups-service
%else
export ANT_OPTS="-Djava.net.preferIPv4Stack=true"
export CLASSPATH=$CLASSPATH:`build-classpath xalan-j2 xalan-j2-serializer`
ant jar javadoc jboss-service jgroups-service unittests testreport
%endif

%install

# 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}

%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif

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

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

%post
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
 %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
 %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%{_javadir}/*
%{_datadir}/%{name}-%{version}

%if %{gcj_support}
%{_libdir}/gcj/%{name}/jgroups-2.2.9.2.jar.*
#This is generated by spec-convert-gcj-* but this is a subset...
#%attr(-,root,root) %{_libdir}/gcj/%{name}/jgroups-core-2.2.9.2.jar.*
%endif

%files javadoc
%dir %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}-%{version}/*
%ghost %dir %{_javadocdir}/%{name}

%files manual
%doc %{_docdir}/%{name}-%{version}

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin