[php-pecl-radius] PHP 5.4.0 Build

Remi Collet remi at fedoraproject.org
Fri Jan 20 18:08:35 UTC 2012


commit 056898dc17c7726eeefdddfb723ceb5385f3bffe
Author: remi <fedora at famillecollet.com>
Date:   Fri Jan 20 19:08:06 2012 +0100

    PHP 5.4.0 Build

 php-pecl-radius.spec |   21 ++++++++++++++++-----
 radius-php54.patch   |   11 +++++++++++
 2 files changed, 27 insertions(+), 5 deletions(-)
---
diff --git a/php-pecl-radius.spec b/php-pecl-radius.spec
index 05031a5..7563a22 100644
--- a/php-pecl-radius.spec
+++ b/php-pecl-radius.spec
@@ -6,7 +6,7 @@
 
 Name:           php-pecl-radius
 Version:        1.2.5
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        Radius client library
 
 License:        BSD
@@ -14,6 +14,9 @@ Group:          Development/Languages
 URL:            http://pecl.php.net/package/radius
 Source0:        http://pecl.php.net/get/radius-%{version}.tgz
 
+# http://svn.php.net/viewvc/pecl/radius/trunk/radius.c?r1=256497&r2=297236&sortby=date
+Patch0:         radius-php54.patch
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  php-devel php-pear >= 1:1.4.9-1.2
 
@@ -30,10 +33,11 @@ Requires:       php-api = %{php_apiver}
 %endif
 
 
-%{?filter_setup:
-%filter_provides_in %{php_extdir}/.*\.so$
-%filter_setup
-}
+# RPM 4.8
+%{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$}
+%{?filter_setup}
+# RPM 4.9
+%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{php_extdir}/.*\\.so$
 
 
 %description
@@ -46,7 +50,10 @@ OS (for example against Windows Active-Directory via IAS).
 
 %prep
 %setup -qc
+
 cd %{pecl_name}-%{version}
+%patch0 -p3 -b .php54
+
 # package.xml is V2
 mv ../package.xml %{name}.xml
 
@@ -111,6 +118,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Jan 19 2012 Remi Collet <remi at fedoraproject.org> - 1.2.5-13
+- build against php 5.4 with patch from upstream
+- fix filters
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.5-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/radius-php54.patch b/radius-php54.patch
new file mode 100644
index 0000000..bdee0ee
--- /dev/null
+++ b/radius-php54.patch
@@ -0,0 +1,11 @@
+--- pecl/radius/trunk/radius.c	2008/03/31 10:09:40	256497
++++ pecl/radius/trunk/radius.c	2010/03/31 20:39:48	297236
+@@ -62,7 +62,7 @@
+  *
+  * Every user visible function must have an entry in radius_functions[].
+  */
+-function_entry radius_functions[] = {
++zend_function_entry radius_functions[] = {
+ 	PHP_FE(radius_auth_open,    NULL)
+ 	PHP_FE(radius_acct_open,    NULL)
+ 	PHP_FE(radius_close,        NULL)


More information about the scm-commits mailing list