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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   23-Aug-2009 14:55:10
  Branch: HEAD                             Handle: 2009082313551000

  Added files:
    openpkg-src/clojure     clojure.sh clojure.spec

  Log:
    new package: clojure 1.0.0 (Clojure Programming Language)

  Summary:
    Revision    Changes     Path
    1.1         +5  -0      openpkg-src/clojure/clojure.sh
    1.1         +108 -0     openpkg-src/clojure/clojure.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/clojure/clojure.sh
  ============================================================================
  $ cvs diff -u -r0 -r1.1 clojure.sh
  --- /dev/null 2009-08-23 14:55:07 +0200
  +++ clojure.sh        2009-08-23 14:55:10 +0200
  @@ -0,0 +1,5 @@
  +#!/bin/sh
  +...@l_prefix@/bin/java \
  +    -classpath 
@l_prefix@/libexec/clojure/clojure.jar:@l_prefix@/libexec/clojure/jline.jar \
  +    jline.ConsoleRunner \
  +    clojure.lang.Repl
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/clojure/clojure.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 clojure.spec
  --- /dev/null 2009-08-23 14:55:07 +0200
  +++ clojure.spec      2009-08-23 14:55:10 +0200
  @@ -0,0 +1,108 @@
  +##
  +##  clojure.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  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 version
  +%define       V_clojure 1.0.0
  +%define       V_jline   0.9.94
  +
  +#   package information
  +Name:         clojure
  +Summary:      Clojure Programming Language
  +URL:          http://clojure.org/
  +Vendor:       Rich Hickey
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Language
  +License:      EPL
  +Version:      %{V_clojure}
  +Release:      20090823
  +
  +#   list of sources
  +Source0:      http://clojure.googlecode.com/files/clojure_%{V_clojure}.zip
  +Source1:      http://switch.dl.sourceforge.net/jline/jline-%{V_jline}.zip
  +Source2:      clojure.sh
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823, infozip
  +PreReq:       OpenPKG, openpkg >= 20060823, java
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Clojure is a dynamic programming language that targets the Java
  +    Virtual Machine. It is designed to be a general-purpose language,
  +    combining the approachability and interactive development of a
  +    scripting language with an efficient and robust infrastructure for
  +    multithreaded programming. Clojure is a compiled language - it
  +    compiles directly to JVM bytecode, yet remains completely dynamic.
  +    Every feature supported by Clojure is supported at runtime. Clojure
  +    provides easy access to the Java frameworks, with optional type
  +    hints and type inference, to ensure that calls to Java can avoid
  +    reflection. Clojure is a dialect of Lisp, and shares with Lisp the
  +    code-as-data philosophy and a powerful macro system. Clojure is
  +    predominantly a functional programming language, and features a rich
  +    set of immutable, persistent data structures. When mutable state
  +    is needed, Clojure offers a software transactional memory system
  +    and reactive Agent system that ensure clean, correct, multithreaded
  +    designs.
  +
  +%track
  +    prog clojure = {
  +        version   = %{V_clojure}
  +        url       = http://code.google.com/p/clojure/downloads/list
  +        regex     = clojure-(__VER__)\.tar\.gz
  +    }
  +    prog clojure:jline = {
  +        version   = %{V_jline}
  +        url       = http://sourceforge.net/projects/jline/files/
  +        regex     = jline-(__VER__)\.zip
  +    }
  +
  +%prep
  +    %setup -q -T -c
  +    unzip -q -x %{SOURCE0}
  +    unzip -q -x %{SOURCE1}
  +
  +%build
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin \
  +        $RPM_BUILD_ROOT%{l_prefix}/libexec/clojure
  +    %{l_shtool} install -c -m 755 %{l_value -s -a} \
  +        %{SOURCE clojure.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/clojure
  +    %{l_shtool} install -c -m 644 \
  +        clojure-*.jar $RPM_BUILD_ROOT%{l_prefix}/libexec/clojure/clojure.jar
  +    %{l_shtool} install -c -m 644 \
  +        jline-*/jline-*.jar 
$RPM_BUILD_ROOT%{l_prefix}/libexec/clojure/jline.jar
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to