OpenPKG CVS Repository
  http://www.openpkg.org/cvsweb/cvsweb.cgi
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Michael Schloh
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-re, openpkg-web, openpkg-src Date:   09-Aug-2002 21:19:54
  Branch: HEAD                             Handle: 2002080920195301

  Added files:
    openpkg-re/vcheck       vc.xv
    openpkg-src/xv          xv.patch xv.spec
  Modified files:
    openpkg-web             news.txt

  Log:
    Added new package xv.

  Summary:
    Revision    Changes     Path
    1.1         +9  -0      openpkg-re/vcheck/vc.xv
    1.1         +13 -0      openpkg-src/xv/xv.patch
    1.1         +107 -0     openpkg-src/xv/xv.spec
    1.1140      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  Index: openpkg-re/vcheck/vc.xv
  ============================================================
  $ cvs update -p -r1.1 vc.xv
  config = {
  }
  
  prog xv = {
    version = 3.10a
    url     = ftp://ftp.cis.upenn.edu/pub/xv/xv-%{version}.tar.gz
    regex   = xv-(\d+\.\d+[a-z]?)\.tar\.gz
  }
  
  Index: openpkg-src/xv/xv.patch
  ============================================================
  $ cvs update -p -r1.1 xv.patch
  diff -Naur xv-3.10a.orig/xv.h xv-3.10a/xv.h
  --- xv-3.10a.orig/xv.h        Mon Jan 23 21:22:23 1995
  +++ xv-3.10a/xv.h     Fri Aug  9 21:05:23 2002
  @@ -116,7 +116,9 @@
   #  include <errno.h>
      extern int   errno;             /* SHOULD be in errno.h, but often isn't */
   #  ifndef __NetBSD__
  +#  ifndef __FreeBSD__
        extern char *sys_errlist[];     /* this too... */
  +#  endif
   #  endif
   #endif
   
  Index: openpkg-src/xv/xv.spec
  ============================================================
  $ cvs update -p -r1.1 xv.spec
  ##
  ##  xv.spec -- OpenPKG RPM Specification
  ##  Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  ##  Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  ##  Copyright (c) 2000-2002 Ralf S. Engelschall <[EMAIL PROTECTED]>
  ##
  ##  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:         xv
  Summary:      X Window System Graphics Viewer
  URL:          http://www.trilon.com/xv/
  Vendor:       John Bradley
  Packager:     The OpenPKG Project
  Distribution: OpenPKG [EXP]
  Group:        XWindow
  License:      XV
  Version:      3.10a
  Release:      20020809
  
  #   list of sources
  Source0:      ftp://ftp.cis.upenn.edu/pub/xv/xv-%{version}.tar.gz
  Patch0:       ftp://ftp.cis.upenn.edu/pub/xv/xv-%{version}.JPEG-patch
  Patch1:       xv.patch
  
  #   build information
  Prefix:       %{l_prefix}
  BuildRoot:    %{l_buildroot}
  BuildPreReq:  OpenPKG, openpkg >= 20020206, X11, jpeg
  PreReq:       OpenPKG, openpkg >= 20020206, X11, gzip, jpeg
  AutoReq:      no
  AutoReqProv:  no
  
  %description
      XV is an interactive image manipulation program for the X Window
      System. It can operate on images in the GIF, JPEG, TIFF, PBM, PGM,
      PPM, XPM, X11 bitmap, Sun Rasterfile, Targa, RLE, RGB, BMP, PCX, FITS,
      and PM formats on all known types of X displays. It can generate
      PostScript files, and if you have ghostscript (version 2.6 or above)
      installed on your machine, it can also display them.
  
      This OpenPKG copy of xv is patched for use with version 6 of the
      Independent JPEG Group's JPEG library.
  
  %prep
      %setup0 -q
      %patch0 -p0
      %patch1 -p1
      %{l_shtool} subst -e 's;#undef USE_GUNZIP;#define USE_GUNZIP;' \
                        -e 's;#    define GUNZIP "/usr/local/bin/gunzip -q";#define 
GUNZIP "%{l_prefix}/bin/gunzip -q";' config.h
  
  %build
      #   fix braindead FreeBSD
      CCHACK="-O"
      case "%{l_target}" in
          *-freebsd*)CCHACK="-O -I/usr/X11R6/include/ -L/usr/X11R6/lib/";;
      esac
  
      #   build XV
      %{l_make} %{l_mflags} \
          JPEGINC=-I%{l_prefix}/include \
          JPEGLIB=%{l_prefix}/lib/libjpeg.a \
          CCOPTS="$CCHACK"
  
  %install
      rm -rf $RPM_BUILD_ROOT
  
      #   create hierarchy
      %{l_shtool} mkdir -f -p -m 755 \
          $RPM_BUILD_ROOT%{l_prefix}/bin \
          $RPM_BUILD_ROOT%{l_prefix}/share \
          $RPM_BUILD_ROOT%{l_prefix}/share/%name \
          $RPM_BUILD_ROOT%{l_prefix}/man/man1
  
      #   install XV
      %{l_make} %{l_mflags} install \
          BINDIR=$RPM_BUILD_ROOT%{l_prefix}/bin \
          LIBDIR=$RPM_BUILD_ROOT%{l_prefix}/share/%name \
          MANSUF=1 MANDIR=$RPM_BUILD_ROOT%{l_prefix}/man/man1
  
      #   strip binaries
      strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
  
      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  
  %files -f files
  
  %clean
      rm -rf $RPM_BUILD_ROOT
  
  Index: openpkg-web/news.txt
  ============================================================
  $ cvs diff -u -r1.1139 -r1.1140 news.txt
  --- openpkg-web/news.txt      9 Aug 2002 19:14:04 -0000       1.1139
  +++ openpkg-web/news.txt      9 Aug 2002 19:19:53 -0000       1.1140
  @@ -1,3 +1,4 @@
  +09-Aug-2002: New package: P<xv-3.10a-20020809>
   09-Aug-2002: Upgraded package: P<sasl-2.1.7-20020809>
   09-Aug-2002: Upgraded package: P<openssl-0.9.6g-20020809>
   09-Aug-2002: Upgraded package: P<openpkg-20020809-20020809>
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to