You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
4.0 KiB

##
## 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}
17 years ago
Release: 20090824
# 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
17 years ago
regex = clojure_(__VER__)\.zip
}
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