2 %define pearname System_Command
3 Summary: %{pearname} - commandline execution interface
4 Summary(pl.UTF-8): %{pearname} - interfejs do wykonywania poleceń systemowych
5 Name: php-pear-%{pearname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5: c90211d85422a60c626a15fcc56702fd
12 URL: http://pear.php.net/package/System_Command/
13 BuildRequires: php-pear-PEAR
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.580
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Running functions from the commandline can be dangerous if the proper
22 precautions are not taken to escape the shell arguments and reaping
23 the exit status properly. This class give a formal interface to both,
24 so that you can run a system command as comfortably as you would run a
25 PHP function, which full pear error handling as results on failure.
27 In PEAR status of this package is: %{status}.
29 %description -l pl.UTF-8
30 Używanie funkcji z poleceń systemowych może być niebezpieczne, jeśli
31 nie wykonało się odpowiedniego przygotowania parametrów i sprawdzenia
32 kodu wyjścia. Ta klasa daje formalny interfejs do obu rzeczy, co
33 pozwala na wywoływanie poleceń systemowych w sposób tak wygodny, jak
34 wywołanie funkcji PHP, która używa obsługi błędów PEAR-a w przypadku
37 Ta klasa ma w PEAR status: %{status}.
42 mv .%{php_pear_dir}/data/System_Command/README .
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_pear_dir}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
56 %{php_pear_dir}/.registry/*.reg
57 %dir %{php_pear_dir}/System
58 %{php_pear_dir}/System/*.php