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:   25-Aug-2006 20:31:46
  Branch: HEAD                             Handle: 2006082519314500

  Added files:
    openpkg-src/vortex      vortex.patch vortex.spec

  Log:
    new package: vortex 0.9.0 (BEEP Core Network Protocol Toolkit)

  Summary:
    Revision    Changes     Path
    1.1         +57 -0      openpkg-src/vortex/vortex.patch
    1.1         +133 -0     openpkg-src/vortex/vortex.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/vortex/vortex.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vortex.patch
  --- /dev/null 2006-08-25 20:30:42 +0200
  +++ vortex.patch      2006-08-25 20:31:45 +0200
  @@ -0,0 +1,57 @@
  +Index: data/Makefile.in
  +--- data/Makefile.in.orig    2006-07-08 09:32:10 +0200
  ++++ data/Makefile.in 2006-08-25 20:26:46 +0200
  +@@ -163,7 +163,7 @@
  + sharedstatedir = @sharedstatedir@
  + sysconfdir = @sysconfdir@
  + target_alias = @target_alias@
  +-dtddir = $(datadir)/libvortex
  ++dtddir = $(datadir)/vortex
  + dtd_DATA = channel.dtd sasl.dtd tls.dtd xml-rpc-boot.dtd 
vortex-listener-conf.dtd
  + 
  + EXTRA_DIST = $(dtd_DATA)
  +Index: src/vortex_tls.c
  +--- src/vortex_tls.c.orig    2006-06-18 23:11:59 +0200
  ++++ src/vortex_tls.c 2006-08-25 20:26:46 +0200
  +@@ -48,6 +48,7 @@
  + #define LOG_DOMAIN "vortex-tls"
  + 
  + #include <vortex.h>
  ++#undef boolean /* undefine AXL #define boolean int as it clashes with 
OpenSSL asn1.h */
  + 
  + 
  + /** 
  +Index: test/Makefile.in
  +--- test/Makefile.in.orig    2006-07-08 09:32:10 +0200
  ++++ test/Makefile.in 2006-08-25 20:26:46 +0200
  +@@ -164,7 +164,7 @@
  + sharedstatedir = @sharedstatedir@
  + sysconfdir = @sysconfdir@
  + target_alias = @target_alias@
  +-certfilesdir = $(datadir)/libvortex
  ++certfilesdir = $(datadir)/vortex
  + certfiles_DATA = test-certificate.pem test-private-key.pem
  + EXTRA_DIST = Makefile.win $(certfiles_DATA)
  + bin_PROGRAMS = vortex-client 
  +Index: vortex.pc.in
  +--- vortex.pc.in.orig        2006-04-11 18:16:32 +0200
  ++++ vortex.pc.in     2006-08-25 20:26:46 +0200
  +@@ -7,5 +7,5 @@
  + Description: A BEEP implementation for af-arch (RFC 3080/RFC 3081 compliant)
  + Requires: glib-2.0 gthread-2.0 axl
  + Version: @VORTEX_VERSION@
  +-Libs: -L${libdir} -lvortex
  ++Libs: -L${libdir} -lvortex @LIBRARIES_LIBS@
  + Cflags: -I${includedir}/vortex
  +Index: xml-rpc-gen/Makefile.in
  +--- xml-rpc-gen/Makefile.in.orig     2006-07-08 09:32:10 +0200
  ++++ xml-rpc-gen/Makefile.in  2006-08-25 20:27:46 +0200
  +@@ -164,7 +164,7 @@
  + sharedstatedir = @sharedstatedir@
  + sysconfdir = @sysconfdir@
  + target_alias = @target_alias@
  +-dtddir = $(datadir)/libvortex
  ++dtddir = $(datadir)/vortex
  + dtd_DATA = xml-rpc.dtd
  + 
  + EXTRA_DIST = $(dtd_DATA) $(wildcard *.idl) $(wildcard *.xdl) $(wildcard 
*.c) _support.c 
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/vortex/vortex.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vortex.spec
  --- /dev/null 2006-08-25 20:30:42 +0200
  +++ vortex.spec       2006-08-25 20:31:46 +0200
  @@ -0,0 +1,133 @@
  +##
  +##  vortex.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2006 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 version
  +%define       V_external 0.9.0
  +%define       V_internal b2134.g2134
  +
  +#   package information
  +Name:         vortex
  +Summary:      BEEP Core Network Protocol Toolkit
  +URL:          http://vortex.aspl.es/
  +Vendor:       ASPL
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Network
  +License:      LGPL
  +Version:      %{V_external}
  +Release:      20060825
  +
  +#   package options
  +%option       with_ssl     yes
  +%option       with_sasl    yes
  +%option       with_xmlrpc  yes
  +
  +#   list of sources
  +Source0:      
http://switch.dl.sourceforge.net/vortexlibrary/vortex-%{V_external}.%{V_internal}.tar.gz
  +Patch0:       vortex.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130
  +PreReq:       OpenPKG, openpkg >= 20040130
  +BuildPreReq:  axl, glib2
  +PreReq:       axl, glib2
  +%if "%{with_ssl}" == "yes"
  +BuildPreReq:  openssl
  +PreReq:       openssl
  +%endif
  +%if "%{with_sasl}" == "yes"
  +BuildPreReq:  libgsasl
  +PreReq:       libgsasl
  +%endif
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Vortex is a C implementation of the BEEP Core network protocol (RFC
  +    3080, RFC 3081), implemented on top of TCP/IP. Additionally, it
  +    comes with SSL/TLS and SASL profiles plus a complete XML-RPC over
  +    BEEP (RFC 3529) implementation.
  +
  +%track
  +    prog vortex = {
  +        version   = %{V_external}.%{V_internal}
  +        url       = http://prdownloads.sourceforge.net/vortexlibrary/
  +        regex     = vortex-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -n vortex-%{V_external}.%{V_internal}
  +    %patch -p0
  +
  +%build
  +    CC="%{l_cc}"
  +    CFLAGS="%{l_cflags -O}"
  +    CPPFLAGS="%{l_cppflags}"
  +    LDFLAGS="%{l_ldflags}"
  +    LIBRARIES_CFLAGS="%{l_cppflags} `pkg-config gthread-2.0 glib-2.0 
--cflags`"
  +    LIBRARIES_LIBS="%{l_ldflags} `pkg-config gthread-2.0 glib-2.0 --libs`"
  +%if "%{with_ssl}" == "yes"
  +    LIBRARIES_CFLAGS="$LIBRARIES_CFLAGS `pkg-config openssl --cflags`"
  +    LIBRARIES_LIBS="$LIBRARIES_LIBS `pkg-config openssl --libs`"
  +%endif
  +    export CC CFLAGS CPPFLAGS LDFLAGS LIBRARIES_CFLAGS LIBRARIES_LIBS
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +%if "%{with_ssl}" == "yes"
  +        --enable-tls-support \
  +%else
  +        --disable-tls-support \
  +%endif
  +%if "%{with_sasl}" == "yes"
  +        --enable-sasl-support \
  +%else
  +        --disable-sasl-support \
  +%endif
  +%if "%{with_xmlrpc}" == "yes"
  +        --enable-xml-rpc-support \
  +        --enable-xml-rpc-gen-tool \
  +%else
  +        --disable-xml-rpc-support \
  +        --disable-xml-rpc-gen-tool \
  +%endif
  +        --disable-vortex-log \
  +        --disable-vortex-doc \
  +        --disable-shared
  +
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    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
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to