# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346171630 -7200 # Node ID 680d05ed5db836326f711a3cb6557163eb58893f # Parent 5366946896cdbba9ade9be2765bc8e7e918ddd33 Rewrite call to function_entry(3) to zend_function_entry since PHP 5.4 dropped support to this deprecated function. Modernize packaging as well. diff -r 5366946896cd -r 680d05ed5db8 uuid/uuid.spec --- a/uuid/uuid.spec Tue Aug 28 18:33:45 2012 +0200 +++ b/uuid/uuid.spec Tue Aug 28 18:33:50 2012 +0200 @@ -32,7 +32,7 @@ Group: Libraries License: MIT/X11-style Version: 1.6.2 -Release: 20080717 +Release: 20120800 # package options %option with_dce no @@ -48,8 +48,8 @@ # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20050615 -PreReq: OpenPKG, openpkg >= 20050615 +BuildPreReq: OpenPKG, openpkg >= 20100101 +PreReq: OpenPKG, openpkg >= 20100101 %if "%{with_cxx}" == "yes" BuildPreReq: gcc %endif @@ -97,11 +97,16 @@ %prep %setup -q %patch -p0 + %{l_shtool} subst \ + -e 's;function_entry;zend_function_entry;' \ + php/uuid.c + %{l_shtool} subst \ + -e 's;\[\.\.\];[\`pwd\`/..];g' \ + php/config.m4 %build CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ - GREP="grep" \ ./configure \ --prefix=%{l_prefix} \ --mandir=%{l_prefix}/man \ @@ -125,7 +130,6 @@ %endif %install - rm -rf $RPM_BUILD_ROOT %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT %if "%{with_perl}" == "yes" %{l_prefix}/bin/perl-openpkg -d perl install @@ -139,5 +143,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT