]>
Commit | Line | Data |
---|---|---|
26964c5b PG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class System | |
3 | %define _subclass Command | |
8bbb5a86 | 4 | %define _status stable |
26964c5b | 5 | %define _pearname %{_class}_%{_subclass} |
3663c975 | 6 | Summary: %{_pearname} - commandline execution interface |
dd39b3ed | 7 | Summary(pl.UTF-8): %{_pearname} - interfejs do wykonywania poleceń systemowych |
26964c5b | 8 | Name: php-pear-%{_pearname} |
53cd8ff9 ER |
9 | Version: 1.0.7 |
10 | Release: 1 | |
26964c5b PG |
11 | License: PHP 2.02 |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
53cd8ff9 | 14 | # Source0-md5: 9d0cb3e1c768aa5f0196bcc9b6becc95 |
104d5f12 | 15 | URL: http://pear.php.net/package/System_Command/ |
fd283b9b | 16 | BuildRequires: php-pear-PEAR |
67a87ed8 | 17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
e8af245a | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
58a75a30 | 19 | Requires: php-pear |
26964c5b PG |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Running functions from the commandline can be dangerous if the proper | |
25 | precautions are not taken to escape the shell arguments and reaping | |
26 | the exit status properly. This class give a formal interface to both, | |
27 | so that you can run a system command as comfortably as you would run a | |
bb926c44 | 28 | PHP function, which full pear error handling as results on failure. |
26964c5b | 29 | |
9c6fd153 | 30 | In PEAR status of this package is: %{_status}. |
8bbb5a86 | 31 | |
acedd166 JR |
32 | %description -l pl.UTF-8 |
33 | Używanie funkcji z poleceń systemowych może być niebezpieczne, jeśli | |
34 | nie wykonało się odpowiedniego przygotowania parametrów i sprawdzenia | |
35 | kodu wyjścia. Ta klasa daje formalny interfejs do obu rzeczy, co | |
36 | pozwala na wywoływanie poleceń systemowych w sposób tak wygodny, jak | |
37 | wywołanie funkcji PHP, która używa obsługi błędów PEAR-a w przypadku | |
06fcbd67 | 38 | niepowodzenia. |
26964c5b | 39 | |
8bbb5a86 AG |
40 | Ta klasa ma w PEAR status: %{_status}. |
41 | ||
26964c5b | 42 | %prep |
67a87ed8 | 43 | %pear_package_setup |
26964c5b PG |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
67a87ed8 ER |
47 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
48 | %pear_package_install | |
26964c5b PG |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
67a87ed8 ER |
55 | %doc install.log |
56 | %{php_pear_dir}/.registry/*.reg | |
26964c5b PG |
57 | %dir %{php_pear_dir}/%{_class} |
58 | %{php_pear_dir}/%{_class}/*.php |