OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   14-Aug-2004 11:00:57
  Branch: HEAD                             Handle: 2004081410005600

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

  Log:
    new package: libextractor 0.3.3 (File Extraction and Classification
    Library)

  Summary:
    Revision    Changes     Path
    1.1         +23 -0      openpkg-src/libextractor/libextractor.patch
    1.1         +96 -0      openpkg-src/libextractor/libextractor.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/libextractor/libextractor.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 libextractor.patch
  --- /dev/null 2004-08-14 11:00:57 +0200
  +++ libextractor.patch        2004-08-14 11:00:57 +0200
  @@ -0,0 +1,23 @@
  +Index: src/plugins/wavextractor.c
  +--- src/plugins/wavextractor.c.orig  2004-06-23 10:04:01 +0200
  ++++ src/plugins/wavextractor.c       2004-08-14 09:07:49 +0200
  +@@ -32,6 +32,7 @@
  + #include <stdlib.h>
  + #include <ctype.h>
  + #ifndef MINGW
  ++#include <sys/types.h>
  + #include <sys/mman.h>
  + #include <netinet/in.h>
  + #endif
  +Index: src/main/Makefile.in
  +--- src/main/Makefile.in.orig        2004-06-23 10:09:13 +0200
  ++++ src/main/Makefile.in     2004-08-14 09:19:29 +0200
  +@@ -155,7 +155,7 @@
  +     getopt1.$(OBJEXT)
  + extract_OBJECTS = $(am_extract_OBJECTS)
  + extract_DEPENDENCIES = $(top_builddir)/src/main/libextractor.la
  +-extract_LDFLAGS =
  ++extract_LDFLAGS = -static
  + 
  + DEFS = @DEFS@
  + DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)/src/include
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/libextractor/libextractor.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 libextractor.spec
  --- /dev/null 2004-08-14 11:00:57 +0200
  +++ libextractor.spec 2004-08-14 11:00:57 +0200
  @@ -0,0 +1,96 @@
  +##
  +##  libextractor.spec -- OpenPKG RPM Specification
  +##  Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  +##  Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
  +##  Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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:         libextractor
  +Summary:      File Extraction and Classification Library
  +URL:          http://ovmj.org/libextractor/
  +Vendor:       Christian Grothoff & Vids Samanta
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Filesystem
  +License:      GPL
  +Version:      0.3.3
  +Release:      20040814
  +
  +#   list of sources
  +Source0:      http://ovmj.org/libextractor/download/libextractor-%{version}.tar.gz
  +Patch0:       libextractor.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130
  +PreReq:       OpenPKG, openpkg >= 20040130
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    libextractor is a library used to extract meta-data from files of
  +    arbitrary type. It is designed to use helper-libraries to perform
  +    the actual extraction, and to be trivially extendable by linking
  +    against external extractors for additional file types. Currently,
  +    it supports the formats HTML, PDF, PS, MP3, OGG, WAV, JPEG, GIF,
  +    PNG, TIFF, RPM, ZIP, ELF, REAL, RIFF (AVI), MPEG, QT and ASF. Also,
  +    various additional MIME types are detected.
  +
  +%track
  +    prog libextractor = {
  +        version   = %{version}
  +        url       = http://ovmj.org/libextractor/download.php3
  +        regex     = libextractor-(__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} \
  +        --libdir=%{l_prefix}/lib/libextractor \
  +        --enable-shared
  +    %{l_make} %{l_mflags}
  +
  +%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
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libextractor/libextractor_*.a
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libextractor/libextractor.so*
  +    mv  $RPM_BUILD_ROOT%{l_prefix}/lib/libextractor/libextractor.* \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib/
  +    %{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                     [EMAIL PROTECTED]

Reply via email to