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