head 1.29;
access;
symbols;
locks; strict;
comment @-- @;
1.29
date 2009.12.16.18.58.46; author rse; state Exp;
branches;
next 1.28;
commitid TegrpCGhRd7icDfu;
1.28
date 2009.11.18.19.08.30; author rse; state Exp;
branches;
next 1.27;
commitid aDHmj5C0fRzq92cu;
1.27
date 2009.11.05.13.13.51; author rse; state Exp;
branches;
next 1.26;
commitid mLw2QWtv8QFFBkau;
1.26
date 2009.09.02.17.46.45; author rse; state Exp;
branches;
next 1.25;
commitid msPSdYBz1odPa82u;
1.25
date 2009.06.30.20.20.05; author rse; state Exp;
branches;
next 1.24;
commitid mW7f5wxeUG4f4VTt;
1.24
date 2009.04.18.13.08.52; author rse; state Exp;
branches;
next 1.23;
commitid 4pHXU27WTIGCZuKt;
1.23
date 2009.03.27.09.28.20; author rse; state Exp;
branches;
next 1.22;
commitid jIHPttSbU3QIwEHt;
1.22
date 2009.01.12.11.51.58; author rse; state Exp;
branches;
next 1.21;
commitid Zz10m6MVkW3tH9yt;
1.21
date 2008.12.28.17.56.21; author rse; state Exp;
branches;
next 1.20;
commitid 1Uz22z5knd2ncgwt;
1.20
date 2008.11.21.22.41.14; author rse; state Exp;
branches;
next 1.19;
commitid xWatRzpyjRWOXwrt;
1.19
date 2008.08.02.17.06.00; author rse; state Exp;
branches;
next 1.18;
commitid d6E9FwZd7VP2Gedt;
1.18
date 2008.07.08.16.53.31; author rse; state Exp;
branches;
next 1.17;
commitid IwQAfILUedwAp1at;
1.17
date 2008.06.28.08.11.48; author rse; state Exp;
branches;
next 1.16;
commitid rmqS00ZEBeVwQG8t;
1.16
date 2008.03.09.07.25.46; author rse; state Exp;
branches;
next 1.15;
commitid FbWo0wwbT7VW9qUs;
1.15
date 2008.01.30.18.10.09; author rse; state Exp;
branches;
next 1.14;
commitid oSwvIY8ADZyJYsPs;
1.14
date 2008.01.21.18.32.24; author rse; state Exp;
branches;
next 1.13;
commitid yoDifdrMA2diojOs;
1.13
date 2008.01.01.14.51.09; author rse; state Exp;
branches;
next 1.12;
commitid B8esaHJHoduuKILs;
1.12
date 2007.12.16.08.42.32; author rse; state Exp;
branches;
next 1.11;
commitid 5ZTIG2uYovJGhDJs;
1.11
date 2007.12.11.18.37.29; author rse; state Exp;
branches;
next 1.10;
commitid v1tyTu4XE8PKJ2Js;
1.10
date 2007.11.23.17.16.34; author cs; state Exp;
branches;
next 1.9;
commitid 6Mo4P4w6gKDRRIGs;
1.9
date 2007.11.03.10.42.55; author rse; state Exp;
branches;
next 1.8;
commitid CWE1QWCHJiKGk7Es;
1.8
date 2007.10.27.14.17.20; author cs; state Exp;
branches;
next 1.7;
commitid iP7QpdeHEWJbKeDs;
1.7
date 2007.10.20.09.18.37; author rse; state Exp;
branches;
next 1.6;
commitid b5mjvHqtZOJEjjCs;
1.6
date 2007.10.06.15.59.31; author cs; state Exp;
branches;
next 1.5;
commitid EOb8z0VZbZs6ZxAs;
1.5
date 2007.09.08.14.19.06; author cs; state Exp;
branches;
next 1.4;
commitid pP4UfwDfgacrkWws;
1.4
date 2007.09.01.19.03.21; author rse; state Exp;
branches;
next 1.3;
commitid Hu2W8A2QDhBT74ws;
1.3
date 2007.09.01.17.47.43; author rse; state Exp;
branches;
next 1.2;
commitid ppPjPftRxcPXH3ws;
1.2
date 2007.09.01.08.29.21; author cs; state Exp;
branches;
next 1.1;
commitid CfXmFIxJ50FpC0ws;
1.1
date 2007.08.27.20.43.30; author rse; state Exp;
branches;
next ;
commitid TRXV3TyXAereQqvs;
desc
@@
1.29
log
@modifying package: avis-1.2.2 20091118 -> 20091216
@
text
@##
## avis.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## 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.
##
# package versions
%define V_avis 1.2.2
%define V_avis_server 1.3.0beta1
%define V_avis_client 1.1.1
%define V_avis_client_c 1.2.4
# package information
Name: avis
Summary: Event Router
URL: http://avis.sourceforge.net/
Vendor: Matthew Phillip
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: InstantMessaging
License: GPL
Version: %{V_avis}
Release: 20091216
# list of sources
Source0: http://switch.dl.sourceforge.net/avis/avis-src-%{V_avis_server}.zip
Source1: http://switch.dl.sourceforge.net/avis/avis-client-%{V_avis_client}.zip
Source2: http://switch.dl.sourceforge.net/avis/avis-client-%{V_avis_client_c}.tar.gz
Source3: rc.avis
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20060823
PreReq: OpenPKG, openpkg >= 20060823, java, JAVA-JDK
AutoReq: no
AutoReqProv: no
%description
Avis is a multicast event bus. It provides a fast, publish/subscribe
event routing service compatible with the commercial Elvin
implementation developed by Mantara Software. Elvin routers can be
federated together to form wide-area event notification networks.
Clients can exchange events with other clients anywhere on the bus,
subscribing to messages using pattern-matching expressions that
select messages based on their content.
%track
prog avis:server = {
version = %{V_avis_server}
url = http://sourceforge.net/projects/avis/files/
regex = avis-src-(__VER__)\.zip
}
prog avis:client = {
version = %{V_avis_client}
url = http://sourceforge.net/projects/avis/files/
regex = avis-client-(__VER__)\.zip
}
prog avis:client_c = {
version = %{V_avis_client_c}
url = http://sourceforge.net/projects/avis/files/
regex = avis-client-(__VER__)\.tar\.gz
}
%prep
%setup -q -T -c
%{l_prefix}/bin/unzip -q -x %{SOURCE0}
%{l_prefix}/bin/unzip -q -x %{SOURCE1}
%setup -q -T -D -a 2
%build
# build Avis client C library
( cd avis-client-%{V_avis_client_c}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
LIBS="-lm" \
./configure \
--prefix=%{l_prefix} \
--disable-shared
%{l_make} %{l_mflags -O}
) || exit $?
%install
# create installation hierarchy
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/etc/avis \
$RPM_BUILD_ROOT%{l_prefix}/libexec/avis \
$RPM_BUILD_ROOT%{l_prefix}/var/avis
# install Java parts
%{l_shtool} install -c -m 644 \
avis-%{V_avis_server}/server/lib/avis-router.jar \
avis-client-%{V_avis_client}/client/lib/avis-client.jar \
avis-client-%{V_avis_client}/client/lib/avis-tools.jar \
$RPM_BUILD_ROOT%{l_prefix}/libexec/avis/
# install C parts
( cd avis-client-%{V_avis_client_c}
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
) || exit $?
# install default server configuration
%{l_shtool} install -c -m 644 \
-e 's;# Listen=elvin://0\.0\.0\.0;Listen=elvin://127.0.0.1:2917;' \
avis-%{V_avis_server}/server/etc/avisd.config \
$RPM_BUILD_ROOT%{l_prefix}/etc/avis/avisd.config
# install client wrapper scripts
( echo "#!/bin/sh"
echo "exec %{l_prefix}/bin/java -Vsun-jdk -Xverify:none \\%{l_nil}"
echo " -cp %{l_prefix}/libexec/avis/avis-tools.jar:%{l_prefix}/libexec/avis/avis-client.jar \\%{l_nil}"
echo " org.avis.tools.Ec \${1+\"\$@@\"}"
) >avis-ec
( echo "#!/bin/sh"
echo "exec %{l_prefix}/bin/java -Vsun-jdk -Xverify:none \\%{l_nil}"
echo " -cp %{l_prefix}/libexec/avis/avis-tools.jar:%{l_prefix}/libexec/avis/avis-client.jar \\%{l_nil}"
echo " org.avis.tools.Ep \${1+\"\$@@\"}"
) >avis-ep
%{l_shtool} install -c -m 755 \
avis-ec avis-ep $RPM_BUILD_ROOT%{l_prefix}/bin/
# install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.avis} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/avis/avisd.config' \
'%dir %attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/avis'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
%post
# after upgrade, restart service
[ $1 -eq 2 ] || exit 0
eval `%{l_rc} avis status 2>/dev/null`
[ ".$avis_active" = .yes ] && %{l_rc} avis restart
exit 0
%preun
# before erase, stop service and remove log files
[ $1 -eq 0 ] || exit 0
%{l_rc} avis stop 2>/dev/null
rm -f $RPM_INSTALL_PREFIX/var/avis/avis.log* >/dev/null 2>&1 || true
exit 0
@
1.28
log
@modifying package: avis-1.2.2 20091105 -> 20091118
@
text
@d27 1
a27 1
%define V_avis_client 1.1.0
d41 1
a41 1
Release: 20091118
@
1.27
log
@modifying package: avis-1.2.2 20090902 -> 20091105
@
text
@d28 1
a28 1
%define V_avis_client_c 1.2.3
d41 1
a41 1
Release: 20091105
@
1.26
log
@modifying package: avis-1.2.2 20090327 -> 20090902
@
text
@d28 1
a28 1
%define V_avis_client_c 1.2.1
d41 1
a41 1
Release: 20090902
@
1.25
log
@switch to the new SourceForge.net website functionality where we can find all files (again)
@
text
@d26 1
a26 1
%define V_avis_server 1.2.2
d41 1
a41 1
Release: 20090327
@
1.24
log
@bump years in copyright messages
@
text
@d69 1
a69 1
url = http://prdownloads.sourceforge.net/avis/
d74 1
a74 1
url = http://prdownloads.sourceforge.net/avis/
d79 1
a79 1
url = http://prdownloads.sourceforge.net/avis/
@
1.23
log
@upgrading package: avis 1.2.1 -> 1.2.2
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.22
log
@modifying package: avis-1.2.1 20081228 -> 20090112
@
text
@d25 2
a26 2
%define V_avis 1.2.1
%define V_avis_server 1.2.1
d41 1
a41 1
Release: 20090112
@
1.21
log
@modifying package: avis-1.2.1 20081121 -> 20081228
@
text
@d28 1
a28 1
%define V_avis_client_c 1.2.0
d41 1
a41 1
Release: 20081228
@
1.20
log
@modifying package: avis-1.2.1 20080802 -> 20081121
@
text
@d28 1
a28 1
%define V_avis_client_c 1.1.0
d41 1
a41 1
Release: 20081121
@
1.19
log
@modifying package: avis-1.2.1 20080708 -> 20080802
@
text
@d28 1
a28 1
%define V_avis_client_c 1.0.0
d41 1
a41 1
Release: 20080802
@
1.18
log
@modifying package: avis-1.2.1 20080628 -> 20080708
@
text
@d28 1
a28 1
%define V_avis_client_c 0.2.0
d41 1
a41 1
Release: 20080708
@
1.17
log
@add the new Avis C client library
@
text
@d28 1
a28 1
%define V_avis_client_c 0.1.0
d41 1
a41 1
Release: 20080628
d94 1
@
1.16
log
@upgrading package: avis 1.2.0 -> 1.2.1
@
text
@d25 4
a28 3
%define V_avis 1.2.1
%define V_avis_server 1.2.1
%define V_avis_client 1.1.0
d41 1
a41 1
Release: 20080309
d46 2
a47 1
Source2: rc.avis
d77 5
d87 1
d90 9
d110 1
a110 1
# install Java program
d117 5
@
1.15
log
@modifying package: avis-1.2.0 20080121 -> 20080130
@
text
@d25 2
a26 2
%define V_avis 1.2.0
%define V_avis_server 1.2.0_u01
d40 1
a40 1
Release: 20080130
@
1.14
log
@upgrading package: avis 1.1.4 -> 1.2.0
@
text
@d25 2
a26 1
%define V_avis_server 1.2.0
d39 2
a40 2
Version: %{V_avis_server}
Release: 20080121
@
1.13
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d25 2
a26 2
%define V_avis_server 1.1.4
%define V_avis_client 1.0.6
d39 1
a39 1
Release: 20080101
d94 1
a94 1
avis-%{V_avis_server}/server/lib/avisd.jar \
@
1.12
log
@upgrading package: avis 1.1.3 -> 1.1.4
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d39 1
a39 1
Release: 20071216
@
1.11
log
@upgrading package: avis 1.1.2 -> 1.1.3
@
text
@d26 1
a26 1
%define V_avis_server 1.1.3
d40 1
a40 1
Release: 20071211
@
1.10
log
@modifying package: avis-1.1.2 20071103 -> 20071123
@
text
@d26 1
a26 1
%define V_avis_server 1.1.2
d40 1
a40 1
Release: 20071123
@
1.9
log
@modifying package: avis-1.1.2 20071027 -> 20071103
@
text
@d27 1
a27 1
%define V_avis_client 1.0.5
d40 1
a40 1
Release: 20071103
@
1.8
log
@modifying package: avis-1.1.2 20071020 -> 20071027
@
text
@d27 1
a27 1
%define V_avis_client 1.0.4
d40 1
a40 1
Release: 20071027
@
1.7
log
@modifying package: avis-1.1.2 20071006 -> 20071020
@
text
@d27 1
a27 1
%define V_avis_client 1.0.3
d40 1
a40 1
Release: 20071020
@
1.6
log
@upgrading package: avis 1.1.1 -> 1.1.2
@
text
@d27 1
a27 1
%define V_avis_client 1.0.2
d40 1
a40 1
Release: 20071006
@
1.5
log
@upgrading package: avis 1.1.0 -> 1.1.1
@
text
@d26 1
a26 1
%define V_avis_server 1.1.1
d40 1
a40 1
Release: 20070908
@
1.4
log
@fix classpath
@
text
@d26 1
a26 1
%define V_avis_server 1.1.0
d40 1
a40 1
Release: 20070901
@
1.3
log
@use 'avis' prefix on executables to resolve namespace conflicts
@
text
@d109 1
a109 1
echo " -cp %{l_prefix}/libexec/avis/avis-tools.jar \\%{l_nil}"
d114 1
a114 1
echo " -cp %{l_prefix}/libexec/avis/avis-tools.jar \\%{l_nil}"
@
1.2
log
@modifying package: avis-1.1.0 20070827 -> 20070901
@
text
@d111 1
a111 1
) >ec
d116 1
a116 1
) >ep
d118 1
a118 1
ec ep $RPM_BUILD_ROOT%{l_prefix}/bin/
@
1.1
log
@new package: avis 1.1.0 (Event Router)
@
text
@d27 1
a27 1
%define V_avis_client 1.0.1
d40 1
a40 1
Release: 20070827
@