]> git.pld-linux.org Git - packages/php-pear-System_Command.git/blob - php-pear-System_Command.spec
- 1.0.4
[packages/php-pear-System_Command.git] / php-pear-System_Command.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          System
3 %define         _subclass       Command
4 %define         _status         stable
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}
9 Version:        1.0.4
10 Release:        1
11 License:        PHP 2.02
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
17 Requires:       php-pear
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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.
27
28 In PEAR status of this package is: %{_status}.
29
30 %description -l pl
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
36 niepowodzenia.
37
38 Ta klasa ma w PEAR status: %{_status}.
39
40 %prep
41 %pear_package_setup
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{php_pear_dir}
46 %pear_package_install
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc install.log
54 %{php_pear_dir}/.registry/*.reg
55 %dir %{php_pear_dir}/%{_class}
56 %{php_pear_dir}/%{_class}/*.php
This page took 0.075831 seconds and 3 git commands to generate.