uuid/uuid.spec

changeset 560
680d05ed5db8
parent 559
5366946896cd
     1.1 --- a/uuid/uuid.spec	Tue Aug 28 18:33:45 2012 +0200
     1.2 +++ b/uuid/uuid.spec	Tue Aug 28 18:33:50 2012 +0200
     1.3 @@ -32,7 +32,7 @@
     1.4  Group:        Libraries
     1.5  License:      MIT/X11-style
     1.6  Version:      1.6.2
     1.7 -Release:      20080717
     1.8 +Release:      20120800
     1.9  
    1.10  #   package options
    1.11  %option       with_dce   no
    1.12 @@ -48,8 +48,8 @@
    1.13  #   build information
    1.14  Prefix:       %{l_prefix}
    1.15  BuildRoot:    %{l_buildroot}
    1.16 -BuildPreReq:  OpenPKG, openpkg >= 20050615
    1.17 -PreReq:       OpenPKG, openpkg >= 20050615
    1.18 +BuildPreReq:  OpenPKG, openpkg >= 20100101
    1.19 +PreReq:       OpenPKG, openpkg >= 20100101
    1.20  %if "%{with_cxx}" == "yes"
    1.21  BuildPreReq:  gcc
    1.22  %endif
    1.23 @@ -97,11 +97,16 @@
    1.24  %prep
    1.25      %setup -q
    1.26      %patch -p0
    1.27 +    %{l_shtool} subst \
    1.28 +        -e 's;function_entry;zend_function_entry;' \
    1.29 +        php/uuid.c
    1.30 +    %{l_shtool} subst \
    1.31 +        -e 's;\[\.\.\];[\`pwd\`/..];g' \
    1.32 +        php/config.m4
    1.33  
    1.34  %build
    1.35      CC="%{l_cc}" \
    1.36      CFLAGS="%{l_cflags -O}" \
    1.37 -    GREP="grep" \
    1.38      ./configure \
    1.39          --prefix=%{l_prefix} \
    1.40          --mandir=%{l_prefix}/man \
    1.41 @@ -125,7 +130,6 @@
    1.42  %endif
    1.43  
    1.44  %install
    1.45 -    rm -rf $RPM_BUILD_ROOT
    1.46      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.47  %if "%{with_perl}" == "yes"
    1.48      %{l_prefix}/bin/perl-openpkg -d perl install
    1.49 @@ -139,5 +143,4 @@
    1.50  %files -f files
    1.51  
    1.52  %clean
    1.53 -    rm -rf $RPM_BUILD_ROOT
    1.54  

mercurial