OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 01-Sep-2007 20:15:36 Branch: HEAD Handle: 2007090119153500 Added files: openpkg-src/libelvin libelvin.patch libelvin.spec Log: new package: libelvin 4.0.3 (Elvin Client Library) Summary: Revision Changes Path 1.1 +62 -0 openpkg-src/libelvin/libelvin.patch 1.1 +128 -0 openpkg-src/libelvin/libelvin.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/libelvin/libelvin.patch ============================================================================ $ cvs diff -u -r0 -r1.1 libelvin.patch --- /dev/null 2007-09-01 20:15:13 +0200 +++ libelvin.patch 2007-09-01 20:15:35 +0200 @@ -0,0 +1,62 @@ +Index: configure +--- configure.orig 2001-09-06 04:22:17 +0200 ++++ configure 2007-09-01 20:09:12 +0200 +@@ -6217,7 +6217,7 @@ + + # Make sure it's recent enough + case "x$xml_version" in +- x2.2.[8-9]|x2.2.1[0-2]|x2.3.[0-9]|x2.3.1[0-9]) ++ x2.*) + echo "$ac_t""$xml_version ok" 1>&6 + have_xml=yes + ;; +Index: info/Makefile.in +--- info/Makefile.in.orig 2001-09-06 06:19:45 +0200 ++++ info/Makefile.in 2007-09-01 20:04:59 +0200 +@@ -180,7 +180,7 @@ + + + # things to install as data +-data_DATA = @ELVIN_DOC_PDF@ @ELVIN_DOC_PS@ @ELVIN_DOC_HTML@ ++data_DATA = + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = ../src/include/elvin/config.h + CONFIG_CLEAN_FILES = +@@ -454,7 +454,7 @@ + + # force build of pdf and html versions + all-local: info-local +-info-local: @ELVIN_DOC_PDF@ @ELVIN_DOC_PS@ @ELVIN_DOC_HTML@ ++info-local: + + # rules for building pdf and html versions + elvin.html:elvin.texinfo +Index: src/include/elvin/packet_segments.h +--- src/include/elvin/packet_segments.h.orig 2001-05-02 06:44:50 +0200 ++++ src/include/elvin/packet_segments.h 2007-09-01 20:04:59 +0200 +@@ -65,12 +65,6 @@ + + #define ELVIN_PACKET_SPECS_SIZE (256) + +-/* For win32 and dll boundaries we hide this */ +-#if !defined(ELVIN_WIN32) || defined(ELVIN_LIBVIN4_SOURCE) +-extern struct elvin_packet_spec elvin_packet_specs[]; +-extern struct elvin_segment_spec elvin_segment_specs[]; +-#endif +- + /**************************************************************** + * Initialise the elvin_packet_spacs + * +@@ -139,6 +133,12 @@ + #define elvin_get_segment_spot(ptype,stype) elvin_segment_specs[stype].spot[ptype] + #endif + ++/* For win32 and dll boundaries we hide this */ ++#if !defined(ELVIN_WIN32) || defined(ELVIN_LIBVIN4_SOURCE) ++extern struct elvin_packet_spec elvin_packet_specs[]; ++extern struct elvin_segment_spec elvin_segment_specs[]; ++#endif ++ + /***************************************************************/ + #endif /* ELVIN_PACKET_SEGMENTS_H */ + @@ . patch -p0 <<'@@ .' Index: openpkg-src/libelvin/libelvin.spec ============================================================================ $ cvs diff -u -r0 -r1.1 libelvin.spec --- /dev/null 2007-09-01 20:15:13 +0200 +++ libelvin.spec 2007-09-01 20:15:36 +0200 @@ -0,0 +1,128 @@ +## +## libelvin.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/> +## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/> +## +## 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 information +Name: libelvin +Summary: Elvin Client Library +URL: http://www.elvin.org/ +Vendor: DTSC/Mantara +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: InstantMessaging +License: Non-Commercial +Version: 4.0.3 +Release: 20070901 + +# package options +%option with_xml yes +%option with_ssl yes +%option with_threads no + +# list of sources +Source0: http://elvin.dstc.com/download/files/libelvin-%{version}.tar.gz +Patch0: libelvin.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823 +PreReq: OpenPKG, openpkg >= 20060823 +%if "%{with_ssl}" == "yes" +BuildPreReq: openssl +PreReq: openssl +%endif +%if "%{with_xml}" == "yes" +BuildPreReq: libxml +PreReq: libxml +%endif +AutoReq: no +AutoReqProv: no + +%description + This is the original C client library for the Elvin event routing + protocol. It supports HTTP/TCP/UDP/Unix as the transport protocol, + optionally SSL as the security layer and XDR/XML as the marshalling. + It also provides an Elvin command-line client. + +%track + prog libelvin = { + disabled + comment = "rse: DTSC/Mantara shutdown in 2006 at all" + version = %{version} + url = http://elvin.dstc.com/download/files/ + regex = libelvin-(__VER__)\.tar\.gz + } + +%prep + %setup -q + %patch -p0 + +%build + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} \ + --sysconfdir=%{l_prefix}/etc/libelvin \ +%if "%{with_ssl}" == "yes" + --with-ssl \ +%else + --without-ssl \ +%endif +%if "%{with_xml}" == "yes" + --with-xml \ +%else + --without-xml \ +%endif +%if "%{with_threads}" == "yes" + --enable-threads \ +%else + --disable-threads \ +%endif + --enable-udp \ + --enable-unix \ + --enable-http \ + --enable-cluster \ + --without-x \ + --without-xt \ + --without-gtk \ + --disable-shared \ + --disable-nls + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir + rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/nls + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org