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:   21-Feb-2006 10:54:35
  Branch: HEAD                             Handle: 2006022109543500

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

  Log:
    new package: xar 1.3 (XML Format File Archiver)

  Summary:
    Revision    Changes     Path
    1.1         +83 -0      openpkg-src/xar/xar.patch
    1.1         +101 -0     openpkg-src/xar/xar.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/xar/xar.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xar.patch
  --- /dev/null 2006-02-21 10:54:31 +0100
  +++ xar.patch 2006-02-21 10:54:35 +0100
  @@ -0,0 +1,83 @@
  +Index: lib/Makefile.inc.in
  +--- lib/Makefile.inc.in.orig 2005-10-11 22:46:32 +0200
  ++++ lib/Makefile.inc.in      2006-02-21 10:48:02 +0100
  +@@ -24,30 +24,12 @@
  + # Libraries.  librxar is created such that it's possible to run xar without
  + # first installing libxar.
  + 
  +-ifeq (elf, @abi@)
  +-LIBRXAR_SNAME := [EMAIL PROTECTED]@
  +-LIBRXAR_LNAME := librxar.so
  ++LIBRXAR_SNAME := librxar.a
  ++LIBRXAR_LNAME := librxar.a.1
  + LIBRXAR_L := @[EMAIL PROTECTED]/$(LIBRXAR_LNAME)
  +-LIBXAR_SNAME := [EMAIL PROTECTED]@
  +-LIBXAR_LNAME := libxar.so
  ++LIBXAR_SNAME := libxar.a
  ++LIBXAR_LNAME := libxar.a.1
  + LIBXAR_L := @[EMAIL PROTECTED]/$(LIBXAR_LNAME)
  +-endif
  +-ifeq (macho, @abi@)
  +-LIBRXAR_SNAME := [EMAIL PROTECTED]@.dylib
  +-LIBRXAR_LNAME := librxar.dylib
  +-LIBRXAR_L := @[EMAIL PROTECTED]/$(LIBRXAR_LNAME)
  +-LIBXAR_SNAME := [EMAIL PROTECTED]@.dylib
  +-LIBXAR_LNAME := libxar.dylib
  +-LIBXAR_L := @[EMAIL PROTECTED]/$(LIBXAR_LNAME)
  +-endif
  +-ifeq (aout, @abi@)
  +-LIBRXAR_SNAME := [EMAIL PROTECTED]@.0
  +-LIBRXAR_LNAME :=
  +-LIBRXAR_L :=
  +-LIBXAR_SNAME := [EMAIL PROTECTED]@.0
  +-LIBXAR_LNAME :=
  +-LIBXAR_L :=
  +-endif
  + LIBRXAR_S := @[EMAIL PROTECTED]/$(LIBRXAR_SNAME)
  + LIBXAR_S := @[EMAIL PROTECTED]/$(LIBXAR_SNAME)
  + 
  +@@ -104,15 +86,7 @@
  + # installing libxar.
  + $(LIBRXAR_S) : $(LIBXAR_SRCS:@[EMAIL PROTECTED]@[EMAIL PROTECTED])
  +     @mkdir -p $(@D)
  +-ifeq (elf, @abi@)
  +-    $(CC) -shared -Wl,-soname,$(LIBXAR_SNAME) -o $@ $+
  +-endif
  +-ifeq (macho, @abi@)
  +-    $(CC) -dynamiclib -compatibility_version @LIB_REV@ -current_version 
@LIB_REV@ -install_name @[EMAIL PROTECTED](LIBRXAR_S) -o $@ $+ $(LDFLAGS) @LIBS@
  +-endif
  +-ifeq (aout, @abi@)
  +-    $(CC) -shared -o $@ $+
  +-endif
  ++    ar cvr $@ $+
  + ifneq ($(words "" $(LIBRXAR_L)), 1)
  +     rm -f $(LIBRXAR_L)
  +     ln -s $(LIBRXAR_SNAME) $(LIBRXAR_L)
  +@@ -120,15 +94,7 @@
  + 
  + $(LIBXAR_S) : $(LIBXAR_SRCS:@[EMAIL PROTECTED]@[EMAIL PROTECTED])
  +     @mkdir -p $(@D)
  +-ifeq (elf, @abi@)
  +-    $(CC) -shared -Wl,-soname,$(LIBXAR_SNAME) -o $@ $+
  +-endif
  +-ifeq (macho, @abi@)
  +-    $(CC) -dynamiclib -compatibility_version @LIB_REV@ -current_version 
@LIB_REV@ -install_name $(LIBDIR)/$(LIBXAR_SNAME) -o $@ $+ $(LDFLAGS) @LIBS@
  +-endif
  +-ifeq (aout, @abi@)
  +-    $(CC) -shared -o $@ $+
  +-endif
  ++    ar cvr $@ $+
  + ifneq ($(words "" $(LIBXAR_L)), 1)
  +     rm -f $(LIBXAR_L)
  +     ln -s $(LIBXAR_SNAME) $(LIBXAR_L)
  +Index: lib/archive.c
  +--- lib/archive.c.orig       2005-10-09 07:15:25 +0200
  ++++ lib/archive.c    2006-02-21 10:43:39 +0100
  +@@ -38,6 +38,7 @@
  + #include <fcntl.h>
  + #include <libgen.h>
  + #include <errno.h>
  ++#include <limits.h>
  + #include <sys/stat.h>
  + #include <arpa/inet.h> /* for ntoh{l,s} */
  + #include <inttypes.h>  /* for PRIu64 */
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/xar/xar.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xar.spec
  --- /dev/null 2006-02-21 10:54:31 +0100
  +++ xar.spec  2006-02-21 10:54:35 +0100
  @@ -0,0 +1,101 @@
  +##
  +##  xar.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 information
  +Name:         xar
  +Summary:      XML Format File Archiver
  +URL:          http://www.opendarwin.org/projects/xar/
  +Vendor:       K. Van Vechten, R. Braun, L. Fuller, D. Leimbach
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Archiver
  +License:      BSD
  +Version:      1.3
  +Release:      20060221
  +
  +#   list of sources
  +Source0:      http://www.opendarwin.org/projects/xar/xar-%{version}.tar.gz
  +Patch0:       xar.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130
  +PreReq:       OpenPKG, openpkg >= 20040130
  +BuildPreReq:  openssl, zlib, bzip2, libxml, libiconv
  +PreReq:       openssl, zlib, bzip2, libxml, libiconv
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    The XAR project aims to provide an easily extensible archive format.
  +    Important design decisions include an easily extensible XML table of
  +    contents for random access to archived files, storing the toc at the
  +    beginning of the archive to allow for efficient handling of streamed
  +    archives, the ability to handle files of arbitrarily large sizes,
  +    the ability to choose independent encodings for individual files in
  +    the archive, the ability to store checksums for individual files in
  +    both compressed and uncompressed form, and the ability to query the
  +    table of content's rich meta-data.
  +
  +%track
  +    prog xar = {
  +        version   = %{version}
  +        url       = http://www.opendarwin.org/projects/xar/
  +        regex     = xar-(__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} \
  +        --disable-shared
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install \
  +        PREFIX=$RPM_BUILD_ROOT%{l_prefix} \
  +        BINDIR=$RPM_BUILD_ROOT%{l_prefix}/bin \
  +        DATADIR=$RPM_BUILD_ROOT%{l_prefix}/share \
  +        LIBDIR=$RPM_BUILD_ROOT%{l_prefix}/lib \
  +        INCLUDEDIR=$RPM_BUILD_ROOT%{l_prefix}/include \
  +        MANDIR=$RPM_BUILD_ROOT%{l_prefix}/man
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.a.1
  +    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