mtasc/mtasc.spec

Wed, 25 Feb 2009 13:55:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 25 Feb 2009 13:55:52 +0100
changeset 112
6052d0605a74
child 113
29f149b6e2be
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@112 1 ##
michael@112 2 ## mtasc.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 1.14
michael@112 26 %define V_snapshot 20080901
michael@112 27
michael@112 28 # package information
michael@112 29 Name: mtasc
michael@112 30 Summary: Motion-Twin ActionScript Compiler
michael@112 31 URL: http://mtasc.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: Flash
michael@112 37 License: GPL/BSD
michael@112 38 Version: %{V_release}.%{V_snapshot}
michael@112 39 Release: 20080914
michael@112 40
michael@112 41 # list of sources
michael@112 42 Source0: ftp://ftp.openpkg.org/sources/CPY/mtasc/mtasc-%{V_snapshot}.tar.bz2
michael@112 43 Source1: mtasc.sh
michael@112 44 Patch0: mtasc.patch
michael@112 45
michael@112 46 # build information
michael@112 47 Prefix: %{l_prefix}
michael@112 48 BuildRoot: %{l_buildroot}
michael@112 49 BuildPreReq: OpenPKG, openpkg >= 20060823, ocaml
michael@112 50 PreReq: OpenPKG, openpkg >= 20060823
michael@112 51 AutoReq: no
michael@112 52 AutoReqProv: no
michael@112 53
michael@112 54 %description
michael@112 55 MTASC is a free ActionScript 2 compiler and the predecessor to
michael@112 56 haXe. It can compile large number of ActionScript .as class files
michael@112 57 in a very short time and generate directly the corresponding .swf
michael@112 58 bytecode files without relying on Macromedia Flash or other tools.
michael@112 59
michael@112 60 %track
michael@112 61 prog mtasc = {
michael@112 62 version = %{V_release}
michael@112 63 url = http://mtasc.org/
michael@112 64 regex = mtasc-(__VER__)\.zip
michael@112 65 }
michael@112 66
michael@112 67 %prep
michael@112 68 %setup -q -n mtasc
michael@112 69 %patch -p0
michael@112 70
michael@112 71 %build
michael@112 72 %{l_prefix}/bin/ocaml install.ml
michael@112 73
michael@112 74 %install
michael@112 75 rm -rf $RPM_BUILD_ROOT
michael@112 76 %{l_shtool} mkdir -f -p -m 755 \
michael@112 77 $RPM_BUILD_ROOT%{l_prefix}/bin \
michael@112 78 $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc
michael@112 79 for tool in mtasc mtasc-byte; do
michael@112 80 %{l_shtool} install -c -m 755 %{l_value -s -a} \
michael@112 81 -e "s;@tool@;$tool;" \
michael@112 82 %{SOURCE mtasc.sh} $RPM_BUILD_ROOT%{l_prefix}/bin/$tool
michael@112 83 done
michael@112 84 %{l_shtool} install -c -s -m 755 \
michael@112 85 bin/mtasc bin/mtasc-byte \
michael@112 86 $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc/
michael@112 87 find ocaml/mtasc -name CVS -type d -print | xargs rm -rf
michael@112 88 cp -rp ocaml/mtasc/std* $RPM_BUILD_ROOT%{l_prefix}/lib/mtasc/
michael@112 89 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@112 90
michael@112 91 %files -f files
michael@112 92
michael@112 93 %clean
michael@112 94 rm -rf $RPM_BUILD_ROOT
michael@112 95

mercurial