]> git.pld-linux.org Git - packages/php-pear-System_Command.git/blob - php-pear-System_Command.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-System_Command.git] / php-pear-System_Command.spec
1 %define         status          stable
2 %define         pearname        System_Command
3 Summary:        %{pearname} - commandline execution interface
4 Summary(pl.UTF-8):      %{pearname} - interfejs do wykonywania poleceń systemowych
5 Name:           php-pear-%{pearname}
6 Version:        1.0.8
7 Release:        1
8 License:        PHP 2.02
9 Group:          Development/Languages/PHP
10 Source0:        http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5:  c90211d85422a60c626a15fcc56702fd
12 URL:            http://pear.php.net/package/System_Command/
13 BuildRequires:  php-pear-PEAR
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  rpmbuild(macros) >= 1.580
16 Requires:       php-pear
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Running functions from the commandline can be dangerous if the proper
22 precautions are not taken to escape the shell arguments and reaping
23 the exit status properly. This class give a formal interface to both,
24 so that you can run a system command as comfortably as you would run a
25 PHP function, which full pear error handling as results on failure.
26
27 In PEAR status of this package is: %{status}.
28
29 %description -l pl.UTF-8
30 Używanie funkcji z poleceń systemowych może być niebezpieczne, jeśli
31 nie wykonało się odpowiedniego przygotowania parametrów i sprawdzenia
32 kodu wyjścia. Ta klasa daje formalny interfejs do obu rzeczy, co
33 pozwala na wywoływanie poleceń systemowych w sposób tak wygodny, jak
34 wywołanie funkcji PHP, która używa obsługi błędów PEAR-a w przypadku
35 niepowodzenia.
36
37 Ta klasa ma w PEAR status: %{status}.
38
39 %prep
40 %pear_package_setup
41
42 mv .%{php_pear_dir}/data/System_Command/README .
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 README
55 %doc install.log
56 %{php_pear_dir}/.registry/*.reg
57 %dir %{php_pear_dir}/System
58 %{php_pear_dir}/System/*.php
This page took 0.082836 seconds and 4 git commands to generate.