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.UTF-8): %{_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: 6c5e9df271f13ce9fedb4147a0954457
15 URL: http://pear.php.net/package/System_Command/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.300
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
28 PHP function, which full pear error handling as results on failure.
30 In PEAR status of this package is: %{_status}.
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
40 Ta klasa ma w PEAR status: %{_status}.
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{php_pear_dir}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{php_pear_dir}/.registry/*.reg
57 %dir %{php_pear_dir}/%{_class}
58 %{php_pear_dir}/%{_class}/*.php