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