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