summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-06-20 20:03:06 +0200
committerRemi Collet <fedora@famillecollet.com>2013-06-20 20:03:06 +0200
commit36da215e8f4d53b03d8d3b48a8ac9c29c976a360 (patch)
tree84100c4dbdfd13fed52533f09c82a4f8f96f40b9
parent0d15d0eba2b8ac7ce0b7268e23cbf0d02dc28429 (diff)
php-pecl-radius: 1.2.6
-rw-r--r--php-pecl-radius.spec18
-rw-r--r--radius-php54.patch11
2 files changed, 10 insertions, 19 deletions
diff --git a/php-pecl-radius.spec b/php-pecl-radius.spec
index e5d1eb6..1fd2f0a 100644
--- a/php-pecl-radius.spec
+++ b/php-pecl-radius.spec
@@ -3,8 +3,8 @@
%global pecl_name radius
Name: php-pecl-radius
-Version: 1.2.5
-Release: 14%{?dist}.4
+Version: 1.2.6
+Release: 1%{?dist}.1
Summary: Radius client library
License: BSD
@@ -12,9 +12,6 @@ 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
BuildRequires: php-pear
@@ -32,9 +29,7 @@ Provides: php-pecl(%{pecl_name})%{?_isa} = %{version}
# Other third party repo stuff
Obsoletes: php53-pecl-%{pecl_name}
Obsoletes: php53u-pecl-%{pecl_name}
-%if "%{php_version}" > "5.4"
Obsoletes: php54-pecl-%{pecl_name}
-%endif
%if "%{php_version}" > "5.5"
Obsoletes: php55-pecl-%{pecl_name}
%endif
@@ -56,7 +51,11 @@ OS (for example against Windows Active-Directory via IAS).
%setup -qc
cd %{pecl_name}-%{version}
-%patch0 -p3 -b .php54
+extver=$(sed -n '/#define PHP_RADIUS_VERSION/{s/.* "//;s/".*$//;p}' php_radius.h)
+if test "x${extver}" != "x%{version}"; then
+ : Error: Upstream version is ${extver}, expecting %{version}.
+ exit 1
+fi
cd ..
cat > %{pecl_name}.ini << 'EOF'
@@ -133,6 +132,9 @@ rm -rf %{buildroot}
%changelog
+* Thu Jun 20 2013 Remi Collet <remi@fedoraproject.org> - 1.2.6-1
+- Update to 1.2.6
+
* Fri Nov 18 2011 Remi Collet <rpms@famillecollet.com> 1.2.5-14
- also provides php-radius
diff --git a/radius-php54.patch b/radius-php54.patch
deleted file mode 100644
index bdee0ee..0000000
--- a/radius-php54.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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)