haxe/haxe.spec

Wed, 25 Feb 2009 19:23:10 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 25 Feb 2009 19:23:10 +0100
changeset 115
ec005c58d27f
parent 113
29f149b6e2be
child 128
f64e7bdded52
permissions
-rw-r--r--

Import new package specs for introduction into repository.
The purpose of these packages are for flash video manipulation,
something seemingly missing from the current mtasc, haxe, sswf,
swftools, and adobeflex packages.

michael@112 1 ##
michael@112 2 ## haxe.spec -- OpenPKG RPM Package Specification
michael@112 3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@112 4 ##
michael@112 5 ## Permission to use, copy, modify, and distribute this software for
michael@112 6 ## any purpose with or without fee is hereby granted, provided that
michael@112 7 ## the above copyright notice and this permission notice appear in all
michael@112 8 ## copies.
michael@112 9 ##
michael@112 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@112 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@112 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@112 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@112 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@112 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@112 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@112 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@112 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@112 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@112 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@112 21 ## SUCH DAMAGE.
michael@112 22 ##
michael@112 23
michael@112 24 # package version
michael@112 25 %define V_release 2.02
michael@113 26 %define V_snapshot 20090130
michael@112 27
michael@112 28 # package information
michael@112 29 Name: haxe
michael@112 30 Summary: Haxe Programming Language
michael@112 31 URL: http://haxe.org/
michael@112 32 Vendor: Nicolas Cannasse, Motion Twin
michael@112 33 Packager: OpenPKG Foundation e.V.
michael@112 34 Distribution: OpenPKG Community
michael@112 35 Class: EVAL
michael@112 36 Group: Language
michael@112 37 License: GPL/BSD
michael@112 38 Version: %{V_release}.%{V_snapshot}
michael@113 39 Release: 20090106
michael@112 40
michael@112 41 # list of sources
michael@112 42 Source0: ftp://ftp.openpkg.org/sources/CPY/haxe/haxe-%{V_snapshot}.tar.bz2
michael@112 43 Source1: haxe.sh
michael@112 44 Source2: haxe.vim
michael@112 45 Patch0: haxe.patch
michael@112 46
michael@112 47 # build information
michael@112 48 Prefix: %{l_prefix}
michael@112 49 BuildRoot: %{l_buildroot}
michael@114 50 BuildPreReq: OpenPKG, openpkg >= 20060823, zlib, ocaml
michael@114 51 PreReq: OpenPKG, openpkg >= 20060823, zlib
michael@112 52 AutoReq: no
michael@112 53 AutoReqProv: no
michael@112 54
michael@112 55 %description
michael@112 56 haXe (pronounced as hex) is a multi-platform programming language,
michael@112 57 which can be compiled to Javascript, Flash, NekoVM and PHP.
michael@112 58
michael@112 59 %track
michael@112 60 prog haxe = {
michael@112 61 version = %{V_release}
michael@112 62 url = http://haxe.org/download
michael@112 63 regex = haxe-(__VER__)-linux\.tar\.gz
michael@112 64 }
michael@112 65
michael@112 66 %prep
michael@112 67 %setup -q -n haxe
michael@112 68 %patch -p0
michael@112 69
michael@112 70 %build
michael@112 71 %{l_shtool} subst \
michael@112 72 -e 's%"/usr/lib/libz.dylib".*"/lib/libz.so.1"%"%{l_prefix}/lib/libz.a"%' \
michael@112 73 haxe/doc/install.ml
michael@113 74 %{l_shtool} subst \
michael@113 75 -e "s;\(let c_opts = .*-ccopt\);\1 -I %{l_prefix}/include;" \
michael@113 76 -e "s;\(let c_opts = .* else \"\);\1 -I %{l_prefix}/include;" \
michael@113 77 haxe/doc/install.ml
michael@112 78 %{l_prefix}/bin/ocaml haxe/doc/install.ml
michael@112 79
michael@112 80 %install
michael@112 81 rm -rf $RPM_BUILD_ROOT
michael@112 82 %{l_shtool} mkdir -f -p -m 755 \
michael@112 83 $RPM_BUILD_ROOT%{l_prefix}/bin \
michael@112 84 $RPM_BUILD_ROOT%{l_prefix}/libexec/haxe \
michael@112 85 $RPM_BUILD_ROOT%{l_prefix}/lib/haxe \
michael@112 86 $RPM_BUILD_ROOT%{l_prefix}/share/vim/syntax
michael@112 87 %{l_shtool} install -c -m 755 %{l_value -s -a} \
michael@112 88 %{SOURCE haxe.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/haxe
michael@112 89 %{l_shtool} install -c -s -m 755 \
michael@112 90 bin/haxe $RPM_BUILD_ROOT%{l_prefix}/libexec/haxe/
michael@112 91 find haxe/std -name CVS -type d -print | xargs rm -rf
michael@112 92 cp -rp haxe/std/* $RPM_BUILD_ROOT%{l_prefix}/lib/haxe/
michael@112 93 %{l_shtool} install -c -m 644 \
michael@112 94 %{SOURCE haxe.vim} $RPM_BUILD_ROOT%{l_prefix}/share/vim/syntax/
michael@112 95 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@112 96
michael@112 97 %files -f files
michael@112 98
michael@112 99 %clean
michael@112 100 rm -rf $RPM_BUILD_ROOT
michael@112 101

mercurial