%define _subclass RADIUS
%define _status stable
%define _pearname %{_class}_%{_subclass}
+
Summary: %{_pearname} - Wrapper Classes for the RADIUS PECL
Summary(pl): %{_pearname} - Wrapper dla klasy RADIUS PECL
Name: php-pear-%{_pearname}
-Version: 1.0.2
-Release: 1
+Version: 1.0.4
+Release: 5
License: BSD
Group: Development/Languages/PHP
Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5: 33bc926537310799e2cc3a3451aa8585
-URL: http://pear.php.net/
-BuildRequires: rpm-php-pearprov >= 4.0.2-98
+# Source0-md5: 1463850d06db8ed70a0aa2fadd6be0e5
+URL: http://pear.php.net/package/Auth_RADIUS/
+BuildRequires: php-pear-PEAR
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
Requires: php-pear
-Requires: php-pecl-radius >= 1.2
+Requires: php-pecl-radius >= 1.2.4
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
using CHAP-MD5 or MS-CHAP you need also the Crypt_CHAP package. If you
are using MS-CHAP you need also the mhash extension.
-This class has in PEAR status: %{_status}.
+In PEAR status of this package is: %{_status}.
%description -l pl
Ten pakiet udostêpnia klasy obudowuj±ce RADIUS PECL. S± ró¿ne klasy
Ta klasa ma w PEAR status: %{_status}.
%prep
-%setup -q -c
+%pear_package_setup
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
-
-install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc %{_pearname}-%{version}/examples/*
+%doc install.log
+%doc docs/%{_pearname}/examples/*
+%{php_pear_dir}/.registry/*.reg
%{php_pear_dir}/%{_class}/*.php