]> git.pld-linux.org Git - packages/php-pear-System_Command.git/blob - php-pear-System_Command.spec
7137417bfb9d949e7eb78b8f8de2d7578120df17
[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.5
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:  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 Requires:       php-pear
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Running functions from the commandline can be dangerous if the proper
24 precautions are not taken to escape the shell arguments and reaping
25 the exit status properly. This class give a formal interface to both,
26 so that you can run a system command as comfortably as you would run a
27 PHP function, which full pear error handling as results on failure.
28
29 In PEAR status of this package is: %{_status}.
30
31 %description -l pl
32 U¿ywanie funkcji z poleceñ systemowych mo¿e byæ niebezpieczne, je¶li
33 nie wykona³o siê odpowiedniego przygotowania parametrów i sprawdzenia
34 kodu wyj¶cia. Ta klasa daje formalny interfejs do obu rzeczy, co
35 pozwala na wywo³ywanie poleceñ systemowych w sposób tak wygodny, jak
36 wywo³anie funkcji PHP, która u¿ywa obs³ugi b³êdów PEAR-a w przypadku
37 niepowodzenia.
38
39 Ta klasa ma w PEAR status: %{_status}.
40
41 %prep
42 %pear_package_setup
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_pear_dir}
47 %pear_package_install
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc install.log
55 %{php_pear_dir}/.registry/*.reg
56 %dir %{php_pear_dir}/%{_class}
57 %{php_pear_dir}/%{_class}/*.php
This page took 0.088653 seconds and 3 git commands to generate.