]>
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} |
168d81c6 ER |
7 | Version: 1.3.5 |
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 | |
168d81c6 | 12 | # Source0-md5: a727bc63cc5fe4e28ccb37401cdc1525 |
952735bb | 13 | Patch0: deprecation.patch |
806ecdc6 | 14 | URL: http://pear.php.net/package/Console_Getargs/ |
4ab08108 | 15 | BuildRequires: php-pear-PEAR |
952735bb | 16 | BuildRequires: php-packagexml2cl |
aa191aef | 17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
2891fefa | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
6d237fd3 | 19 | Requires: php-common >= 3:4.1.0 |
806ecdc6 | 20 | Requires: php-pear |
952735bb | 21 | Obsoletes: php-pear-Console_Getargs-tests |
806ecdc6 AG |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
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. | |
31 | ||
32 | In PEAR status of this package is: %{_status}. | |
33 | ||
4bcf7948 JR |
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 | |
806ecdc6 AG |
40 | konfiguracji. |
41 | ||
42 | Ta klasa ma w PEAR status: %{_status}. | |
43 | ||
44 | %prep | |
26b2800c | 45 | %pear_package_setup |
952735bb ER |
46 | %patch0 -p1 |
47 | ||
48 | mv docs/%{_pearname}/examples . | |
49 | ||
50 | %build | |
51 | packagexml2cl package.xml > ChangeLog | |
806ecdc6 AG |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
26b2800c ER |
55 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
56 | %pear_package_install | |
806ecdc6 | 57 | |
952735bb ER |
58 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
59 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
60 | ||
806ecdc6 AG |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
952735bb | 66 | %doc ChangeLog install.log |
26b2800c | 67 | %{php_pear_dir}/.registry/*.reg |
952735bb | 68 | %{php_pear_dir}/Console/Getargs.php |
26b2800c | 69 | |
952735bb | 70 | %{_examplesdir}/%{name}-%{version} |