]>
Commit | Line | Data |
---|---|---|
65d43f63 | 1 | %define _status stable |
952735bb | 2 | %define _pearname Console_Getargs |
38ebdc26 | 3 | Summary: %{_pearname} - a command-line arguments parser |
b8c6fb6f | 4 | Summary(pl.UTF-8): %{_pearname} - przetwarzanie argumentów linii poleceń |
806ecdc6 | 5 | Name: php-pear-%{_pearname} |
693ecee3 AG |
6 | Version: 1.4.0 |
7 | Release: 1 | |
806ecdc6 AG |
8 | License: PHP 2.02 |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
693ecee3 | 11 | # Source0-md5: f99266907369af0191ea32f25dc6317e |
806ecdc6 | 12 | URL: http://pear.php.net/package/Console_Getargs/ |
952735bb | 13 | BuildRequires: php-packagexml2cl |
02732ae8 | 14 | BuildRequires: php-pear-PEAR |
aa191aef | 15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
2891fefa | 16 | BuildRequires: rpmbuild(macros) >= 1.300 |
02732ae8 | 17 | Requires: php(core) >= 4.1.0 |
806ecdc6 | 18 | Requires: php-pear |
952735bb | 19 | Obsoletes: php-pear-Console_Getargs-tests |
806ecdc6 AG |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | The Console_Getargs package implements a Command Line arguments parser | |
25 | that your CLI applications can use to parse arguments found in | |
26 | $_SERVER['argv']. It performs some basic arguments validation and is | |
27 | capable to return a formatted help text to the user, based on the | |
28 | configuration it is given. | |
29 | ||
30 | In PEAR status of this package is: %{_status}. | |
31 | ||
4bcf7948 JR |
32 | %description -l pl.UTF-8 |
33 | Pakiet Console_Getargs ma zaimplementowaną obsługę parsowania | |
34 | argumentów linii poleceń, którą można użyć w aplikacjach do | |
35 | przetworzenia argumentów znalezionych w $_SERVER['argv']. Wykonuje | |
36 | podstawowe sprawdzanie poprawności argumentów i jest w stanie zwrócić | |
37 | użytkownikowi sformatowany tekst pomocy na podstawie podanej | |
806ecdc6 AG |
38 | konfiguracji. |
39 | ||
40 | Ta klasa ma w PEAR status: %{_status}. | |
41 | ||
42 | %prep | |
26b2800c | 43 | %pear_package_setup |
952735bb ER |
44 | |
45 | mv docs/%{_pearname}/examples . | |
46 | ||
47 | %build | |
48 | packagexml2cl package.xml > ChangeLog | |
806ecdc6 AG |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
26b2800c ER |
52 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
53 | %pear_package_install | |
806ecdc6 | 54 | |
952735bb ER |
55 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
56 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | ||
806ecdc6 AG |
58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
952735bb | 63 | %doc ChangeLog install.log |
26b2800c | 64 | %{php_pear_dir}/.registry/*.reg |
952735bb | 65 | %{php_pear_dir}/Console/Getargs.php |
26b2800c | 66 | |
952735bb | 67 | %{_examplesdir}/%{name}-%{version} |