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:   06-Apr-2004 17:08:07
  Branch: HEAD                             Handle: 2004040616080601

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

  Log:
    new package: orpie 1.0.1 (Full-Screen RPN Calculator)

  Summary:
    Revision    Changes     Path
    1.1         +75 -0      openpkg-src/orpie/orpie.patch
    1.1         +105 -0     openpkg-src/orpie/orpie.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/orpie/orpie.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 orpie.patch
  --- /dev/null 2004-04-06 17:08:07.000000000 +0200
  +++ orpie.patch       2004-04-06 17:08:07.000000000 +0200
  @@ -0,0 +1,75 @@
  +Index: curses/Makefile.in
  +--- curses/Makefile.in.orig  2004-04-06 05:02:58.000000000 +0200
  ++++ curses/Makefile.in       2004-04-06 16:49:25.000000000 +0200
  +@@ -37,7 +37,7 @@
  + INCLUDES =
  + BFLAGS = -g $(INCLUDES)
  + OFLAGS = $(INCLUDES)
  +-CFLAGS = -Wall -fPIC -DPIC
  ++CFLAGS = @CFLAGS@ @CPPFLAGS@
  + 
  + # main target
  + #############
  +Index: gsl/Makefile.in
  +--- gsl/Makefile.in.orig     2004-04-06 05:02:58.000000000 +0200
  ++++ gsl/Makefile.in  2004-04-06 16:49:11.000000000 +0200
  +@@ -37,7 +37,7 @@
  + INCLUDES =
  + BFLAGS = -g $(INCLUDES)
  + OFLAGS = $(INCLUDES)
  +-CFLAGS = -Wall -fPIC -DPIC
  ++CFLAGS = @CFLAGS@ @CPPFLAGS@
  + 
  + # main target
  + #############
  +Index: gsl/wrappers.h
  +--- gsl/wrappers.h.orig      2004-04-06 05:02:56.000000000 +0200
  ++++ gsl/wrappers.h   2004-04-06 16:51:50.000000000 +0200
  +@@ -70,7 +70,7 @@
  + #define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  + 
  + #ifndef DONT_USE_ALLOCA
  +-#include <malloc.h>
  ++#include <stdlib.h>
  + #define LOCALARRAY(type, x, len)  type * x = ( type *) alloca(sizeof( type ) * 
(len))
  + #else
  + #define LOCALARRAY(type, x, len)  type x [(len)] 
  +Index: rcfile.ml
  +--- rcfile.ml.orig   2004-04-06 05:02:56.000000000 +0200
  ++++ rcfile.ml        2004-04-06 16:54:39.000000000 +0200
  +@@ -456,9 +456,9 @@
  +    in
  +    let prefix_rcfile = 
  +       if Install.prefix = "/usr" || Install.prefix = "/usr/" then
  +-         "/etc/orpierc"
  ++         "/etc/orpie/orpierc"
  +       else
  +-         Install.prefix ^ "/etc/orpierc" 
  ++         Install.prefix ^ "/etc/orpie/orpierc" 
  +    in
  +    try (open_in home_rcfile, home_rcfile)
  +    with Sys_error error_str ->
  +Index: Makefile.in
  +--- Makefile.in.orig 2004-04-06 05:02:58.000000000 +0200
  ++++ Makefile.in      2004-04-06 16:56:24.000000000 +0200
  +@@ -84,16 +84,16 @@
  + static: $(NAME).static-opt $(NAME2).static-opt
  + 
  + $(NAME).byte: subdirs_byte $(CMO)
  +-    $(OCAMLC) $(BFLAGS) $(BLFLAGS) -o $@ $(CURSES_BOBJS) $(CMA) $(GSL_BOBJS) 
$(CMO) 
  ++    $(OCAMLC) $(BFLAGS) -o $@ $(CURSES_BOBJS) $(CMA) $(GSL_BOBJS) $(CMO) $(BLFLAGS)
  + 
  + $(NAME2).byte: subdirs_byte utility.cmo curses-keys.cmo
  +-    $(OCAMLC) $(BFLAGS) $(BLFLAGS) -o $@ $(CURSES_BOBJS) $(CMA) utility.cmo 
curses-keys.cmo
  ++    $(OCAMLC) $(BFLAGS) -o $@ $(CURSES_BOBJS) $(CMA) utility.cmo curses-keys.cmo 
$(BLFLAGS)
  + 
  + $(NAME).opt: subdirs_opt $(CMX)
  +-    $(OCAMLOPT) $(OFLAGS) $(OLFLAGS) -o $@ $(CURSES_OOBJS) $(CMXA) $(GSL_OOBJS) 
$(CMX)
  ++    $(OCAMLOPT) $(OFLAGS) -o $@ $(CURSES_OOBJS) $(CMXA) $(GSL_OOBJS) $(CMX) 
$(OLFLAGS)
  + 
  + $(NAME2).opt: subdirs_opt utility.cmx curses-keys.cmx
  +-    $(OCAMLOPT) $(OFLAGS) $(OLFLAGS) -o $@ $(CURSES_OOBJS) $(CMXA) utility.cmx 
curses-keys.cmx
  ++    $(OCAMLOPT) $(OFLAGS) -o $@ $(CURSES_OOBJS) $(CMXA) utility.cmx 
curses-keys.cmx $(OLFLAGS)
  + 
  + # static build seems to require mashing all the C objects into a library
  + $(NAME).static-opt: subdirs_opt $(CMX) my-static-libs
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/orpie/orpie.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 orpie.spec
  --- /dev/null 2004-04-06 17:08:07.000000000 +0200
  +++ orpie.spec        2004-04-06 17:08:07.000000000 +0200
  @@ -0,0 +1,105 @@
  +##
  +##  orpie.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:         orpie
  +Summary:      Full-Screen RPN Calculator
  +URL:          http://www.eecs.umich.edu/~pelzlpj/orpie/
  +Vendor:       Paul Pelzl
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Algorithm
  +License:      GPL
  +Version:      1.0.1
  +Release:      20040406
  +
  +#   list of sources
  +Source0:      http://www.eecs.umich.edu/~pelzlpj/orpie/orpie-%{version}.tar.gz
  +Patch0:       orpie.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, gsl, ncurses, ocaml
  +PreReq:       OpenPKG, openpkg >= 20040130, gsl, ncurses
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Orpie is a fullscreen RPN calculator for the console. Its operation
  +    is similar to that of modern HP calculators, but data entry has
  +    been optimized for efficiency on a PC keyboard. Features include
  +    extensive scientific calculator functionality, command completion,
  +    and a visible interactive stack.
  +
  +%track
  +    prog orpie = {
  +        version   = %{version}
  +        url       = http://www.eecs.umich.edu/~pelzlpj/orpie/
  +        regex     = orpie-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    LIBS="-lm" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --with-ncurses
  +    %{l_make} %{l_mflags}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/orpie \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man5
  +    %{l_shtool} install -c -s -m 755 \
  +        orpie.opt $RPM_BUILD_ROOT%{l_prefix}/bin/orpie
  +    %{l_shtool} install -c -s -m 755 \
  +        orpie-curses-keys.opt $RPM_BUILD_ROOT%{l_prefix}/bin/orpie-curses-keys
  +    %{l_shtool} install -c -m 644 \
  +        orpierc $RPM_BUILD_ROOT%{l_prefix}/etc/orpie/
  +    %{l_shtool} install -c -m 644 \
  +        doc/orpie.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  +    %{l_shtool} install -c -m 644 \
  +        doc/orpierc.5 $RPM_BUILD_ROOT%{l_prefix}/man/man5/
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/orpie/orpierc'
  +
  +%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