%include /usr/lib/rpm/macros.php
%define _class System
%define _subclass Command
+%define _status stable
%define _pearname %{_class}_%{_subclass}
-Summary: %{_class}_%{_subclass} - commandline execution interface
-Summary(pl): %{_class}_%{_subclass} - interfejs do wykonywania poleceñ systemowych
+Summary: %{_pearname} - commandline execution interface
+Summary(pl): %{_pearname} - interfejs do wykonywania poleceñ systemowych
Name: php-pear-%{_pearname}
-Version: 1.0
-Release: 2
+Version: 1.0.4
+Release: 1
License: PHP 2.02
Group: Development/Languages/PHP
Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
-URL: http://pear.php.net/
-BuildRequires: rpm-php-pearprov
+# Source0-md5: 1a3000bfcd31b7d13e9167db48065144
+URL: http://pear.php.net/package/System_Command/
+BuildRequires: php-pear-PEAR
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
Requires: php-pear
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
precautions are not taken to escape the shell arguments and reaping
the exit status properly. This class give a formal interface to both,
so that you can run a system command as comfortably as you would run a
-php function, which full pear error handling as results on failure.
+PHP function, which full pear error handling as results on failure.
+
+In PEAR status of this package is: %{_status}.
%description -l pl
U¿ywanie funkcji z poleceñ systemowych mo¿e byæ niebezpieczne, je¶li
nie wykona³o siê odpowiedniego przygotowania parametrów i sprawdzenia
kodu wyj¶cia. Ta klasa daje formalny interfejs do obu rzeczy, co
pozwala na wywo³ywanie poleceñ systemowych w sposób tak wygodny, jak
-wywo³anie funkcji php, która u¿ywa obs³ugi b³êdów PEAR-a w przypadku
+wywo³anie funkcji PHP, która u¿ywa obs³ugi b³êdów PEAR-a w przypadku
niepowodzenia.
+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 install.log
+%{php_pear_dir}/.registry/*.reg
%dir %{php_pear_dir}/%{_class}
%{php_pear_dir}/%{_class}/*.php