]> git.pld-linux.org Git - packages/php-pear-System_Command.git/blobdiff - php-pear-System_Command.spec
- BR php-pear-PEAR
[packages/php-pear-System_Command.git] / php-pear-System_Command.spec
index 4226c879dd5cd76763e726fe69225e7a2d44d6ca..82956e212749c1a416377107e5a2f3360dcb05e0 100644 (file)
@@ -1,17 +1,20 @@
 %include       /usr/lib/rpm/macros.php
 %define                _class          System
 %define                _subclass       Command
+%define                _status         stable
 %define                _pearname       %{_class}_%{_subclass}
-Summary:       %{_class}_%{_subclass} - commandline execution interface
-Summary(pl):   %{_class}_%{_subclass} - interfejs do wykonywania poleceñ systemowych
+Summary:       %{_pearname} - commandline execution interface
+Summary(pl):   %{_pearname} - interfejs do wykonywania poleceñ systemowych
 Name:          php-pear-%{_pearname}
-Version:       1.0
-Release:       2
+Version:       1.0.4
+Release:       1
 License:       PHP 2.02
 Group:         Development/Languages/PHP
 Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
-URL:           http://pear.php.net/
-BuildRequires: rpm-php-pearprov
+# Source0-md5: 1a3000bfcd31b7d13e9167db48065144
+URL:           http://pear.php.net/package/System_Command/
+BuildRequires: php-pear-PEAR
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
 Requires:      php-pear
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -21,29 +24,34 @@ Running functions from the commandline can be dangerous if the proper
 precautions are not taken to escape the shell arguments and reaping
 the exit status properly. This class give a formal interface to both,
 so that you can run a system command as comfortably as you would run a
-php function, which full pear error handling as results on failure.
+PHP function, which full pear error handling as results on failure.
+
+In PEAR status of this package is: %{_status}.
 
 %description -l pl
 U¿ywanie funkcji z poleceñ systemowych mo¿e byæ niebezpieczne, je¶li
 nie wykona³o siê odpowiedniego przygotowania parametrów i sprawdzenia
 kodu wyj¶cia. Ta klasa daje formalny interfejs do obu rzeczy, co
 pozwala na wywo³ywanie poleceñ systemowych w sposób tak wygodny, jak
-wywo³anie funkcji php, która u¿ywa obs³ugi b³êdów PEAR-a w przypadku
+wywo³anie funkcji PHP, która u¿ywa obs³ugi b³êdów PEAR-a w przypadku
 niepowodzenia.
 
+Ta klasa ma w PEAR status: %{_status}.
+
 %prep
-%setup -q -c
+%pear_package_setup
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
-
-install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc install.log
+%{php_pear_dir}/.registry/*.reg
 %dir %{php_pear_dir}/%{_class}
 %{php_pear_dir}/%{_class}/*.php
This page took 0.085066 seconds and 4 git commands to generate.