1 %include /usr/lib/rpm/macros.php
3 %define _subclass Command
5 %define _pearname %{_class}_%{_subclass}
6 Summary: %{_pearname} - commandline execution interface
7 Summary(pl): %{_pearname} - interfejs do wykonywania poleceñ systemowych
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 1a3000bfcd31b7d13e9167db48065144
15 URL: http://pear.php.net/package/System_Command/
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Running functions from the commandline can be dangerous if the proper
23 precautions are not taken to escape the shell arguments and reaping
24 the exit status properly. This class give a formal interface to both,
25 so that you can run a system command as comfortably as you would run a
26 PHP function, which full pear error handling as results on failure.
28 In PEAR status of this package is: %{_status}.
31 U¿ywanie funkcji z poleceñ systemowych mo¿e byæ niebezpieczne, je¶li
32 nie wykona³o siê odpowiedniego przygotowania parametrów i sprawdzenia
33 kodu wyj¶cia. Ta klasa daje formalny interfejs do obu rzeczy, co
34 pozwala na wywo³ywanie poleceñ systemowych w sposób tak wygodny, jak
35 wywo³anie funkcji PHP, która u¿ywa obs³ugi b³êdów PEAR-a w przypadku
38 Ta klasa ma w PEAR status: %{_status}.
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{php_pear_dir}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %{php_pear_dir}/.registry/*.reg
55 %dir %{php_pear_dir}/%{_class}
56 %{php_pear_dir}/%{_class}/*.php