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-Jun-2008 09:10:38
  Branch: HEAD                             Handle: 2008060108103600

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

  Log:
    new package: serf 0.1.2 (APR HTTP Client Library)

  Summary:
    Revision    Changes     Path
    1.1         +12 -0      openpkg-src/serf/serf.patch
    1.1         +91 -0      openpkg-src/serf/serf.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/serf/serf.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 serf.patch
  --- /dev/null 2008-06-01 09:01:56 +0200
  +++ serf.patch        2008-06-01 09:10:38 +0200
  @@ -0,0 +1,12 @@
  +Index: Makefile.in
  +--- Makefile.in.orig 2006-12-21 20:12:31 +0100
  ++++ Makefile.in      2008-06-01 09:07:13 +0200
  +@@ -19,7 +19,7 @@
  + TARGET_LIB=libserf-$(SERF_MAJOR_VERSION).la
  + 
  + TEST_OBJECTS = test/serf_get.lo test/serf_response.lo test/serf_request.lo \
  +-               test/serf_spider.lo
  ++               
  + PROGRAMS = $(TEST_OBJECTS:.lo=)
  + 
  + TESTCASES = test/testcases/simple.response \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/serf/serf.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 serf.spec
  --- /dev/null 2008-06-01 09:01:56 +0200
  +++ serf.spec 2008-06-01 09:10:38 +0200
  @@ -0,0 +1,91 @@
  +##
  +##  serf.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  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:         serf
  +Summary:      APR HTTP Client Library
  +URL:          http://serf.googlecode.com/
  +Vendor:       Justin Erenkrantz, Greg Stein
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Web
  +License:      Apache
  +Version:      0.1.2
  +Release:      20080601
  +
  +#   list of sources
  +Source0:      http://serf.googlecode.com/files/serf-%{version}.tar.bz2
  +Patch0:       serf.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823
  +PreReq:       OpenPKG, openpkg >= 20060823
  +BuildPreReq:  apr, openssl
  +PreReq:       apr, openssl
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    The serf library is a C-based HTTP client library built upon the
  +    Apache Portable Runtime (APR) library. It multiplexes connections,
  +    running the read/write communication asynchronously. Memory
  +    copies and transformations are kept to a minimum to provide high
  +    performance operation.
  +
  +%track
  +    prog serf = {
  +        version   = %{version}
  +        url       = http://serf.googlecode.com/
  +        regex     = serf-(__VER__)\.tar\.bz2
  +    }
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --with-apr=%{l_prefix} \
  +        --with-apr-util=%{l_prefix} \
  +        --with-openssl=%{l_prefix}
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install 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
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to