mtasc/mtasc.spec

changeset 113
29f149b6e2be
parent 112
6052d0605a74
child 128
f64e7bdded52
     1.1 --- a/mtasc/mtasc.spec	Wed Feb 25 13:55:52 2009 +0100
     1.2 +++ b/mtasc/mtasc.spec	Wed Feb 25 13:58:24 2009 +0100
     1.3 @@ -36,7 +36,7 @@
     1.4  Group:        Flash
     1.5  License:      GPL/BSD
     1.6  Version:      %{V_release}.%{V_snapshot}
     1.7 -Release:      20080914
     1.8 +Release:      20090106
     1.9  
    1.10  #   list of sources
    1.11  Source0:      ftp://ftp.openpkg.org/sources/CPY/mtasc/mtasc-%{V_snapshot}.tar.bz2
    1.12 @@ -46,8 +46,8 @@
    1.13  #   build information
    1.14  Prefix:       %{l_prefix}
    1.15  BuildRoot:    %{l_buildroot}
    1.16 -BuildPreReq:  OpenPKG, openpkg >= 20060823, ocaml
    1.17 -PreReq:       OpenPKG, openpkg >= 20060823
    1.18 +BuildPreReq:  OpenPKG, openpkg >= 20060823, zlib, ocaml
    1.19 +PreReq:       OpenPKG, openpkg >= 20060823, zlib
    1.20  AutoReq:      no
    1.21  AutoReqProv:  no
    1.22  
    1.23 @@ -67,6 +67,10 @@
    1.24  %prep
    1.25      %setup -q -n mtasc
    1.26      %patch -p0
    1.27 +    %{l_shtool} subst \
    1.28 +        -e "s;\(let c_opts = .*-ccopt\);\1 -I %{l_prefix}/include;" \
    1.29 +        -e "s;\(let c_opts = .* else \"\);\1 -I %{l_prefix}/include;" \
    1.30 +        install.ml
    1.31  
    1.32  %build
    1.33      %{l_prefix}/bin/ocaml install.ml

mercurial