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

  Server: cvs.openpkg.org                  Name:   Christoph Schug
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   12-Mar-2003 15:53:04
  Branch: HEAD                             Handle: 2003031214530300

  Added files:
    openpkg-src/xfig        xfig xfig.spec

  Log:
    New package: xfig

  Summary:
    Revision    Changes     Path
    1.1         +10 -0      openpkg-src/xfig/xfig
    1.1         +125 -0     openpkg-src/xfig/xfig.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/xfig/xfig
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xfig
  --- /dev/null 2003-03-12 15:53:04.000000000 +0100
  +++ xfig      2003-03-12 15:53:04.000000000 +0100
  @@ -0,0 +1,10 @@
  +#! /bin/sh
  +##
  +##  xfig wrapper script
  +##
  +
  +XAPPLRESDIR="@l_prefix@/etc/X11/app-defaults"
  +export XAPPLRESDIR
  +
  +exec @l_prefix@/libexec/xfig/xfig "$@"
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/xfig/xfig.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 xfig.spec
  --- /dev/null 2003-03-12 15:53:04.000000000 +0100
  +++ xfig.spec 2003-03-12 15:53:04.000000000 +0100
  @@ -0,0 +1,125 @@
  +##
  +##  xfig.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:         xfig
  +Summary:      Interactive Drawing Tool
  +URL:          http://epb.lbl.gov/xfig/
  +Vendor:       unknown
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG [JUNK]
  +Group:        XWindow
  +License:      unknown
  +Version:      3.2.4
  +Release:      20030312
  +
  +#   list of sources
  +Source0:      ftp://epb.lbl.gov/xfig/xfig.%{version}.code_only.tar.gz
  +Source1:      xfig
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20021204, X11, make, gcc, zlib, jpeg, png, xpm, 
xaw3d
  +PreReq:       OpenPKG, openpkg >= 20021204, X11
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    xfig is an X Window System tool for creating basic vector graphics,
  +    including bezier curves, lines, rulers and more. The resulting graphics can
  +    be saved, printed on PostScript printers or converted to a variety of other
  +    formats (e.g., X11 bitmaps, Encapsulated PostScript, LaTeX).
  +
  +%prep
  +    %setup -q -n xfig.%{version}
  +    X11BINDIR="`%{l_prefix}/etc/rc --query x11_bindir`"
  +    %{l_shtool} subst \
  +        -e "s;^XCOMM \(BINDIR =\).*$;DESTDIR = \"$RPM_BUILD_ROOT\"\n\1 
%{l_prefix}/libexec/xfig;" \
  +        -e "s;^XCOMM \(MKDIRHIER =\).*$;\1 $X11BINDIR/mkdirhier;" \
  +        -e 's;^XCOMM \(XAPPLOADDIR =\) .*$;\1 %{l_prefix}/etc/X11/app-defaults;' \
  +        -e 's;^\(XFIGLIBDIR =\) .*$;\1 %{l_prefix}/lib/X11/xfig;' \
  +        -e 's;^\(PNGLIBDIR =\) .*$;\1 %{l_prefix}/lib;' \
  +        -e 's;^\(PNGINC =\) .*$;\1 -I%{l_prefix}/include/libpng;' \
  +        -e 's;^\(JPEGLIBDIR =\) .*$;\1 %{l_prefix}/lib;' \
  +        -e 's;^\(JPEGINC =\) .*$;\1 -I%{l_prefix}/include;' \
  +        -e 's;^XCOMM \(#define USEXPM\)$;\1;' \
  +        -e 's;^XCOMM \(#define USEXPM_ICON\)$;\1;' \
  +        -e 's;^\(XPMLIBDIR =\) .*$;\1 %{l_prefix}/lib;' \
  +        -e 's;^\(XPMINC =\) .*$;\1 -I%{l_prefix}/include/X11;' \
  +        -e 's;^XCOMM \(#define XAW3D\)$;\1;' \
  +        -e 's;^\(XAW3DINC =\) .*$;\1 -I%{l_prefix}/include/X11/Xaw3d;' \
  +        -e 's;^\(#define I18N\)$;XCOMM \1;' \
  +        -e 's;^XCOMM \(USEINLINE = .*\)$;\1;' \
  +        Imakefile
  +    echo "DESTDIR = \"$RPM_BUILD_ROOT\"" >> Imakefile
  +
  +%build
  +    X11BINDIR="`%{l_prefix}/etc/rc --query x11_bindir`"
  +    export PATH="$PATH:$X11BINDIR"
  +    $X11BINDIR/xmkmf -a
  +    %{l_make} %{l_mflags -O} xfig
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +
  +    #   install binaries
  +    %{l_make} install
  +
  +    #   install shell wrapper script
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        %{SOURCE xfig} \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/
  +
  +    #   strip binaries
  +    strip $RPM_BUILD_ROOT%{l_prefix}/libexec/xfig/* >/dev/null 2>&1 || true
  +
  +    #   rearrange X11 application defaults
  +    ( cd $RPM_BUILD_ROOT%{l_prefix}/etc/X11/app-defaults
  +      chmod u+rw Fig Fig-color
  +      %{l_shtool} install -m 644 \
  +          Fig \
  +          Fig-classic
  +      %{l_shtool} install -m 644 \
  +          -e 's;^\(#include \)"Fig"$;\1"Fig-classic";' \
  +          Fig-color \
  +          Fig
  +    )
  +
  +    #   generate file list
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
  +        '%not %dir %{l_prefix}/etc/X11' \
  +        '%not %dir %{l_prefix}/etc/X11/app-defaults' \
  +        '%not %dir %{l_prefix}/lib/X11' \
  +        '%config   %{l_prefix}/etc/X11/app-defaults/*'
  +
  +%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