]> git.pld-linux.org Git - packages/php-pear-System_Command.git/blob - php-pear-System_Command.spec
- rel 2
[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.UTF-8):      %{_pearname} - interfejs do wykonywania poleceń systemowych
8 Name:           php-pear-%{_pearname}
9 Version:        1.0.6
10 Release:        2
11 License:        PHP 2.02
12 Group:          Development/Languages/PHP
13 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5:  ea55ad530f1bf5f16afd89f8d9052abf
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
19 Requires:       php-pear
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
28 PHP function, which full pear error handling as results on failure.
29
30 In PEAR status of this package is: %{_status}.
31
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
38 niepowodzenia.
39
40 Ta klasa ma w PEAR status: %{_status}.
41
42 %prep
43 %pear_package_setup
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{php_pear_dir}
48 %pear_package_install
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc install.log
56 %{php_pear_dir}/.registry/*.reg
57 %dir %{php_pear_dir}/%{_class}
58 %{php_pear_dir}/%{_class}/*.php
This page took 0.042952 seconds and 3 git commands to generate.