+%define status stable
+%define pearname Auth_HTTP
%include /usr/lib/rpm/macros.php
-%define _class Auth
-%define _subclass HTTP
-%define _status stable
-%define _pearname %{_class}_%{_subclass}
-
-Summary: %{_pearname} - HTTP authentication system using PHP
-Summary(pl.UTF-8): %{_pearname} - system uwierzytelniania HTTP przy użyciu PHP
-Name: php-pear-%{_pearname}
-Version: 2.1.6
-Release: 4
-Epoch: 0
+Summary: %{pearname} - HTTP authentication system using PHP
+Summary(pl.UTF-8): %{pearname} - system uwierzytelniania HTTP przy użyciu PHP
+Name: php-pear-%{pearname}
+Version: 2.1.8
+Release: 1
License: PHP 2.02
Group: Development/Languages/PHP
-Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5: d5209f0d1f1874e23b44fbfb397a2aa0
+Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz
+# Source0-md5: 8a9f0ce15878a48e8a5d29ebea9f4c34
URL: http://pear.php.net/package/Auth_HTTP
BuildRequires: php-pear-PEAR
BuildRequires: rpm-php-pearprov >= 4.4.2-11
-BuildRequires: rpmbuild(macros) >= 1.300
+BuildRequires: rpmbuild(macros) >= 1.580
Requires: php-pear >= 4:1.0-8
Requires: php-pear-Auth >= 1.2.0
Obsoletes: php-pear-Auth_HTTP-tests
authentication system using PHP, that is similar to Apache's
realm-based .htaccess authentication.
-In PEAR status of this package is: %{_status}.
+In PEAR status of this package is: %{status}.
%description -l pl.UTF-8
Klasa PEAR::Auth_HTTP dostarcza metod do stworzenia uwierzytelniania
HTTP za pomocą PHP, w sposób zbliżony do opartego na .htaccess
uwierzytelniania w Apache.
-Ta klasa ma w PEAR status: %{_status}.
+Ta klasa ma w PEAR status: %{status}.
%prep
%pear_package_setup
+mv .%{php_pear_dir}/data/Auth_HTTP/README .
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_pear_dir}
%files
%defattr(644,root,root,755)
+%doc README
%doc install.log
%{php_pear_dir}/.registry/*.reg
-%{php_pear_dir}/%{_class}/*.php
+%{php_pear_dir}/Auth/*.php