1 %include /usr/lib/rpm/macros.php
3 %define _pearname Console_Getargs
4 Summary: %{_pearname} - a command-line arguments parser
5 Summary(pl.UTF-8): %{_pearname} - przetwarzanie argumentów linii poleceń
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 # Source0-md5: f99266907369af0191ea32f25dc6317e
13 Patch0: deprecation.patch
14 URL: http://pear.php.net/package/Console_Getargs/
15 BuildRequires: php-packagexml2cl
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.300
19 Requires: php(core) >= 4.1.0
21 Obsoletes: php-pear-Console_Getargs-tests
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 The Console_Getargs package implements a Command Line arguments parser
27 that your CLI applications can use to parse arguments found in
28 $_SERVER['argv']. It performs some basic arguments validation and is
29 capable to return a formatted help text to the user, based on the
30 configuration it is given.
32 In PEAR status of this package is: %{_status}.
34 %description -l pl.UTF-8
35 Pakiet Console_Getargs ma zaimplementowaną obsługę parsowania
36 argumentów linii poleceń, którą można użyć w aplikacjach do
37 przetworzenia argumentów znalezionych w $_SERVER['argv']. Wykonuje
38 podstawowe sprawdzanie poprawności argumentów i jest w stanie zwrócić
39 użytkownikowi sformatowany tekst pomocy na podstawie podanej
42 Ta klasa ma w PEAR status: %{_status}.
47 mv docs/%{_pearname}/examples .
50 packagexml2cl package.xml > ChangeLog
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{php_pear_dir}
57 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %doc ChangeLog install.log
66 %{php_pear_dir}/.registry/*.reg
67 %{php_pear_dir}/Console/Getargs.php
69 %{_examplesdir}/%{name}-%{version}