]>
Commit | Line | Data |
---|---|---|
5640f02f ER |
1 | %define status stable |
2 | %define pearname System_Command | |
5640f02f ER |
3 | Summary: %{pearname} - commandline execution interface |
4 | Summary(pl.UTF-8): %{pearname} - interfejs do wykonywania poleceń systemowych | |
5 | Name: php-pear-%{pearname} | |
6 | Version: 1.0.8 | |
53cd8ff9 | 7 | Release: 1 |
26964c5b PG |
8 | License: PHP 2.02 |
9 | Group: Development/Languages/PHP | |
5640f02f ER |
10 | Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz |
11 | # Source0-md5: c90211d85422a60c626a15fcc56702fd | |
104d5f12 | 12 | URL: http://pear.php.net/package/System_Command/ |
fd283b9b | 13 | BuildRequires: php-pear-PEAR |
67a87ed8 | 14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
5640f02f | 15 | BuildRequires: rpmbuild(macros) >= 1.580 |
58a75a30 | 16 | Requires: php-pear |
26964c5b PG |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
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 | |
bb926c44 | 25 | PHP function, which full pear error handling as results on failure. |
26964c5b | 26 | |
5640f02f | 27 | In PEAR status of this package is: %{status}. |
8bbb5a86 | 28 | |
acedd166 JR |
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 | |
06fcbd67 | 35 | niepowodzenia. |
26964c5b | 36 | |
5640f02f | 37 | Ta klasa ma w PEAR status: %{status}. |
8bbb5a86 | 38 | |
26964c5b | 39 | %prep |
67a87ed8 | 40 | %pear_package_setup |
26964c5b | 41 | |
5640f02f ER |
42 | mv .%{php_pear_dir}/data/System_Command/README . |
43 | ||
26964c5b PG |
44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
67a87ed8 ER |
46 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
47 | %pear_package_install | |
26964c5b PG |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
5640f02f | 54 | %doc README |
67a87ed8 ER |
55 | %doc install.log |
56 | %{php_pear_dir}/.registry/*.reg | |
5640f02f ER |
57 | %dir %{php_pear_dir}/System |
58 | %{php_pear_dir}/System/*.php |